public class BlockTermsWriter extends FieldsConsumer
| Modifier and Type | Field and Description |
|---|---|
protected IndexOutput |
out |
static int |
VERSION_CURRENT |
static int |
VERSION_START |
| Constructor and Description |
|---|
BlockTermsWriter(TermsIndexWriterBase termsIndexWriter,
SegmentWriteState state,
PostingsWriterBase postingsWriter) |
| Modifier and Type | Method and Description |
|---|---|
TermsConsumer |
addField(FieldInfo field)
Add a new field
|
void |
close()
Called when we are done adding everything.
|
protected void |
writeHeader(IndexOutput out) |
protected void |
writeTrailer(long dirStart) |
mergepublic static final int VERSION_START
public static final int VERSION_CURRENT
protected final IndexOutput out
public BlockTermsWriter(TermsIndexWriterBase termsIndexWriter, SegmentWriteState state, PostingsWriterBase postingsWriter) throws IOException
IOExceptionprotected void writeHeader(IndexOutput out) throws IOException
IOExceptionpublic TermsConsumer addField(FieldInfo field) throws IOException
FieldsConsumeraddField in class FieldsConsumerIOExceptionpublic void close()
throws IOException
FieldsConsumerclose in interface Closeableclose in class FieldsConsumerIOExceptionprotected void writeTrailer(long dirStart)
throws IOException
IOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.