public class IntermediateForm extends Object implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
IntermediateForm()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeWriter()
Close the Lucene index writer associated with the intermediate form,
if created.
|
void |
configure(IndexUpdateConfiguration iconf)
Configure using an index update configuration.
|
Iterator<org.apache.lucene.index.Term> |
deleteTermIterator()
Get an iterator for the delete terms in the intermediate form.
|
org.apache.lucene.store.Directory |
getDirectory()
Get the ram directory of the intermediate form.
|
void |
process(DocumentAndOp doc,
org.apache.lucene.analysis.Analyzer analyzer)
This method is used by the index update mapper and process a document
operation into the current intermediate form.
|
void |
process(IntermediateForm form)
This method is used by the index update combiner and process an
intermediate form into the current intermediate form.
|
void |
readFields(DataInput in) |
String |
toString() |
void |
write(DataOutput out) |
public IntermediateForm()
throws IOException
IOExceptionpublic void configure(IndexUpdateConfiguration iconf)
iconf - the index update configurationpublic org.apache.lucene.store.Directory getDirectory()
public Iterator<org.apache.lucene.index.Term> deleteTermIterator()
public void process(DocumentAndOp doc, org.apache.lucene.analysis.Analyzer analyzer) throws IOException
doc - input document operationanalyzer - the analyzerIOExceptionpublic void process(IntermediateForm form) throws IOException
form - the input intermediate formIOExceptionpublic void closeWriter()
throws IOException
IOExceptionpublic void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2009 The Apache Software Foundation