public class ShardWriter extends Object
| Constructor and Description |
|---|
ShardWriter(org.apache.hadoop.fs.FileSystem fs,
Shard shard,
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.
|
String |
toString() |
public ShardWriter(org.apache.hadoop.fs.FileSystem fs,
Shard shard,
String tempDir,
IndexUpdateConfiguration iconf)
throws IOException
fs - shard - tempDir - iconf - IOExceptionpublic void process(IntermediateForm form) throws IOException
form - the intermediate form containing deletes and a ram indexIOExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2009 The Apache Software Foundation