public class ShardWriter
extends java.lang.Object
Constructor and Description |
---|
ShardWriter(org.apache.hadoop.fs.FileSystem fs,
Shard shard,
java.lang.String tempDir,
IndexUpdateConfiguration iconf)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the shard writer.
|
void |
process(IntermediateForm form)
Process an intermediate form by carrying out, on the Lucene instance of
the shard, the deletes and the inserts (a ram index) in the form.
|
java.lang.String |
toString() |
public ShardWriter(org.apache.hadoop.fs.FileSystem fs, Shard shard, java.lang.String tempDir, IndexUpdateConfiguration iconf) throws java.io.IOException
fs
- shard
- tempDir
- iconf
- java.io.IOException
public void process(IntermediateForm form) throws java.io.IOException
form
- the intermediate form containing deletes and a ram indexjava.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009 The Apache Software Foundation