Class Lucene86PointsFormat
- java.lang.Object
-
- org.apache.lucene.codecs.PointsFormat
-
- org.apache.lucene.codecs.lucene86.Lucene86PointsFormat
-
public final class Lucene86PointsFormat extends PointsFormat
Lucene 8.6 point format, which encodes dimensional values in a block KD-tree structure for fast 1D range and N dimensional shape intersection filtering. See this paper for details.Data is stored across three files
- A .kdm file that records metadata about the fields, such as numbers of dimensions or numbers of bytes per dimension.
- A .kdi file that stores inner nodes of the tree.
- A .kdm file that stores leaf nodes, where most of the data lives.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String
DATA_CODEC_NAME
static java.lang.String
DATA_EXTENSION
Filename extension for the leaf blocks(package private) static java.lang.String
INDEX_CODEC_NAME
static java.lang.String
INDEX_EXTENSION
Filename extension for the index per field(package private) static java.lang.String
META_CODEC_NAME
static java.lang.String
META_EXTENSION
Filename extension for the meta per field(package private) static int
VERSION_CURRENT
(package private) static int
VERSION_START
-
Fields inherited from class org.apache.lucene.codecs.PointsFormat
EMPTY
-
-
Constructor Summary
Constructors Constructor Description Lucene86PointsFormat()
Sole constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PointsReader
fieldsReader(SegmentReadState state)
Reads a segment.PointsWriter
fieldsWriter(SegmentWriteState state)
Writes a new segment
-
-
-
Field Detail
-
DATA_CODEC_NAME
static final java.lang.String DATA_CODEC_NAME
- See Also:
- Constant Field Values
-
INDEX_CODEC_NAME
static final java.lang.String INDEX_CODEC_NAME
- See Also:
- Constant Field Values
-
META_CODEC_NAME
static final java.lang.String META_CODEC_NAME
- See Also:
- Constant Field Values
-
DATA_EXTENSION
public static final java.lang.String DATA_EXTENSION
Filename extension for the leaf blocks- See Also:
- Constant Field Values
-
INDEX_EXTENSION
public static final java.lang.String INDEX_EXTENSION
Filename extension for the index per field- See Also:
- Constant Field Values
-
META_EXTENSION
public static final java.lang.String META_EXTENSION
Filename extension for the meta per field- See Also:
- Constant Field Values
-
VERSION_START
static final int VERSION_START
- See Also:
- Constant Field Values
-
VERSION_CURRENT
static final int VERSION_CURRENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
fieldsWriter
public PointsWriter fieldsWriter(SegmentWriteState state) throws java.io.IOException
Description copied from class:PointsFormat
Writes a new segment- Specified by:
fieldsWriter
in classPointsFormat
- Throws:
java.io.IOException
-
fieldsReader
public PointsReader fieldsReader(SegmentReadState state) throws java.io.IOException
Description copied from class:PointsFormat
Reads a segment. NOTE: by the time this call returns, it must hold open any files it will need to use; else, those files may be deleted. Additionally, required files may be deleted during the execution of this call before there is a chance to open them. Under these circumstances an IOException should be thrown by the implementation. IOExceptions are expected and will automatically cause a retry of the segment opening logic with the newly revised segments.- Specified by:
fieldsReader
in classPointsFormat
- Throws:
java.io.IOException
-
-