Class Lucene60PointsWriter
- java.lang.Object
-
- org.apache.lucene.codecs.PointsWriter
-
- org.apache.lucene.codecs.lucene60.Lucene60PointsWriter
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
public class Lucene60PointsWriter extends PointsWriter implements java.io.Closeable
Writes dimensional values
-
-
Field Summary
Fields Modifier and Type Field Description protected IndexOutput
dataOut
Output used to write the BKD tree data fileprivate boolean
finished
protected java.util.Map<java.lang.String,java.lang.Long>
indexFPs
Maps field name to file pointer in the data file where the BKD index is located.(package private) double
maxMBSortInHeap
(package private) int
maxPointsInLeafNode
(package private) SegmentWriteState
writeState
-
Constructor Summary
Constructors Constructor Description Lucene60PointsWriter(SegmentWriteState writeState)
Uses the defaults values formaxPointsInLeafNode
(1024) andmaxMBSortInHeap
(16.0)Lucene60PointsWriter(SegmentWriteState writeState, int maxPointsInLeafNode, double maxMBSortInHeap)
Full constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
finish()
Called once at the end before closevoid
merge(MergeState mergeState)
Default merge implementation to merge incoming points readers by visiting all their points and adding to this writervoid
writeField(FieldInfo fieldInfo, PointsReader reader)
Write all values contained in the provided reader-
Methods inherited from class org.apache.lucene.codecs.PointsWriter
mergeOneField
-
-
-
-
Field Detail
-
dataOut
protected final IndexOutput dataOut
Output used to write the BKD tree data file
-
indexFPs
protected final java.util.Map<java.lang.String,java.lang.Long> indexFPs
Maps field name to file pointer in the data file where the BKD index is located.
-
writeState
final SegmentWriteState writeState
-
maxPointsInLeafNode
final int maxPointsInLeafNode
-
maxMBSortInHeap
final double maxMBSortInHeap
-
finished
private boolean finished
-
-
Constructor Detail
-
Lucene60PointsWriter
public Lucene60PointsWriter(SegmentWriteState writeState, int maxPointsInLeafNode, double maxMBSortInHeap) throws java.io.IOException
Full constructor- Throws:
java.io.IOException
-
Lucene60PointsWriter
public Lucene60PointsWriter(SegmentWriteState writeState) throws java.io.IOException
Uses the defaults values formaxPointsInLeafNode
(1024) andmaxMBSortInHeap
(16.0)- Throws:
java.io.IOException
-
-
Method Detail
-
writeField
public void writeField(FieldInfo fieldInfo, PointsReader reader) throws java.io.IOException
Description copied from class:PointsWriter
Write all values contained in the provided reader- Specified by:
writeField
in classPointsWriter
- Throws:
java.io.IOException
-
merge
public void merge(MergeState mergeState) throws java.io.IOException
Description copied from class:PointsWriter
Default merge implementation to merge incoming points readers by visiting all their points and adding to this writer- Overrides:
merge
in classPointsWriter
- Throws:
java.io.IOException
-
finish
public void finish() throws java.io.IOException
Description copied from class:PointsWriter
Called once at the end before close- Specified by:
finish
in classPointsWriter
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
-