public class IntermediateForm
extends java.lang.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.
|
java.util.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(java.io.DataInput in) |
java.lang.String |
toString() |
void |
write(java.io.DataOutput out) |
public IntermediateForm()
throws java.io.IOException
java.io.IOExceptionpublic void configure(IndexUpdateConfiguration iconf)
iconf - the index update configurationpublic org.apache.lucene.store.Directory getDirectory()
public java.util.Iterator<org.apache.lucene.index.Term> deleteTermIterator()
public void process(DocumentAndOp doc, org.apache.lucene.analysis.Analyzer analyzer) throws java.io.IOException
doc - input document operationanalyzer - the analyzerjava.io.IOExceptionpublic void process(IntermediateForm form) throws java.io.IOException
form - the input intermediate formjava.io.IOExceptionpublic void closeWriter()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void write(java.io.DataOutput out)
throws java.io.IOException
write in interface org.apache.hadoop.io.Writablejava.io.IOExceptionpublic void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in interface org.apache.hadoop.io.Writablejava.io.IOExceptionCopyright © 2009 The Apache Software Foundation