Class BlockTermsWriter
java.lang.Object
org.apache.lucene.codecs.FieldsConsumer
org.apache.lucene.codecs.blockterms.BlockTermsWriter
- All Implemented Interfaces:
Closeable
,AutoCloseable
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
-
Constructor Summary
ConstructorDescriptionBlockTermsWriter
(TermsIndexWriterBase termsIndexWriter, SegmentWriteState state, PostingsWriterBase postingsWriter) -
Method Summary
Methods inherited from class org.apache.lucene.codecs.FieldsConsumer
merge
-
Field Details
-
VERSION_START
public static final int VERSION_START- See Also:
-
VERSION_CURRENT
public static final int VERSION_CURRENT- See Also:
-
out
-
-
Constructor Details
-
BlockTermsWriter
public BlockTermsWriter(TermsIndexWriterBase termsIndexWriter, SegmentWriteState state, PostingsWriterBase postingsWriter) throws IOException - Throws:
IOException
-
-
Method Details
-
write
- Specified by:
write
in classFieldsConsumer
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classFieldsConsumer
- Throws:
IOException
-