Class FieldsIndexWriter
- java.lang.Object
-
- org.apache.lucene.codecs.compressing.FieldsIndexWriter
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public final class FieldsIndexWriter extends Object implements Closeable
Efficient index format for block-basedCodec
s.For each block of compressed stored fields, this stores the first document of the block and the start pointer of the block in a
DirectMonotonicWriter
. At read time, the docID is binary-searched in theDirectMonotonicReader
that records doc IDS, and the returned index is used to look up the start pointer in theDirectMonotonicReader
that records start pointers.- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Field Summary
Fields Modifier and Type Field Description static String
FIELDS_INDEX_EXTENSION_SUFFIX
Extension of stored fields index file.static String
FIELDS_META_EXTENSION_SUFFIX
Extension of stored fields meta file.
-
-
-
Field Detail
-
FIELDS_INDEX_EXTENSION_SUFFIX
public static final String FIELDS_INDEX_EXTENSION_SUFFIX
Extension of stored fields index file.- See Also:
- Constant Field Values
-
FIELDS_META_EXTENSION_SUFFIX
public static final String FIELDS_META_EXTENSION_SUFFIX
Extension of stored fields meta file.- See Also:
- Constant Field Values
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-