Class BlockTermsWriter
- java.lang.Object
-
- org.apache.lucene.codecs.FieldsConsumer
-
- org.apache.lucene.codecs.blockterms.BlockTermsWriter
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class BlockTermsWriter extends FieldsConsumer
Writes terms dict, block-encoding (column stride) each term's metadata for each set of terms between two index terms.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Field Summary
Fields Modifier and Type Field Description protected IndexOutputoutstatic intVERSION_CURRENTstatic intVERSION_START
-
Constructor Summary
Constructors Constructor Description BlockTermsWriter(TermsIndexWriterBase termsIndexWriter, SegmentWriteState state, PostingsWriterBase postingsWriter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidwrite(Fields fields, NormsProducer norms)-
Methods inherited from class org.apache.lucene.codecs.FieldsConsumer
merge
-
-
-
-
Field Detail
-
VERSION_START
public static final int VERSION_START
- See Also:
- Constant Field Values
-
VERSION_CURRENT
public static final int VERSION_CURRENT
- See Also:
- Constant Field Values
-
out
protected IndexOutput out
-
-
Constructor Detail
-
BlockTermsWriter
public BlockTermsWriter(TermsIndexWriterBase termsIndexWriter, SegmentWriteState state, PostingsWriterBase postingsWriter) throws IOException
- Throws:
IOException
-
-
Method Detail
-
write
public void write(Fields fields, NormsProducer norms) throws IOException
- Specified by:
writein classFieldsConsumer- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classFieldsConsumer- Throws:
IOException
-
-