public class IntermediateForm extends Object implements Writable
| 构造器和说明 |
|---|
IntermediateForm()
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
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<Term> |
deleteTermIterator()
Get an iterator for the delete terms in the intermediate form.
|
Directory |
getDirectory()
Get the ram directory of the intermediate form.
|
void |
process(DocumentAndOp doc,
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)
Deserialize the fields of this object from
in. |
String |
toString() |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
public IntermediateForm()
throws IOException
IOExceptionpublic void configure(IndexUpdateConfiguration iconf)
iconf - the index update configurationpublic Directory getDirectory()
public Iterator<Term> deleteTermIterator()
public void process(DocumentAndOp doc, 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
Writableout.write 在接口中 Writableout - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields 在接口中 Writablein - DataInput to deseriablize this object from.IOExceptionCopyright © 2009 The Apache Software Foundation