Class Lucene86PointsWriter
- java.lang.Object
-
- org.apache.lucene.codecs.PointsWriter
-
- org.apache.lucene.codecs.lucene86.Lucene86PointsWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class Lucene86PointsWriter extends PointsWriter implements java.io.Closeable
Writes dimensional values
-
-
Field Summary
Fields Modifier and Type Field Description protected IndexOutputdataOutOutputs used to write the BKD tree data files.private booleanfinishedprotected IndexOutputindexOutOutputs used to write the BKD tree data files.(package private) doublemaxMBSortInHeap(package private) intmaxPointsInLeafNodeprotected IndexOutputmetaOutOutputs used to write the BKD tree data files.(package private) SegmentWriteStatewriteState
-
Constructor Summary
Constructors Constructor Description Lucene86PointsWriter(SegmentWriteState writeState)Uses the defaults values formaxPointsInLeafNode(1024) andmaxMBSortInHeap(16.0)Lucene86PointsWriter(SegmentWriteState writeState, int maxPointsInLeafNode, double maxMBSortInHeap)Full constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidfinish()Called once at the end before closevoidmerge(MergeState mergeState)Default merge implementation to merge incoming points readers by visiting all their points and adding to this writervoidwriteField(FieldInfo fieldInfo, PointsReader reader)Write all values contained in the provided reader-
Methods inherited from class org.apache.lucene.codecs.PointsWriter
mergeOneField
-
-
-
-
Field Detail
-
metaOut
protected final IndexOutput metaOut
Outputs used to write the BKD tree data files.
-
indexOut
protected final IndexOutput indexOut
Outputs used to write the BKD tree data files.
-
dataOut
protected final IndexOutput dataOut
Outputs used to write the BKD tree data files.
-
writeState
final SegmentWriteState writeState
-
maxPointsInLeafNode
final int maxPointsInLeafNode
-
maxMBSortInHeap
final double maxMBSortInHeap
-
finished
private boolean finished
-
-
Constructor Detail
-
Lucene86PointsWriter
public Lucene86PointsWriter(SegmentWriteState writeState, int maxPointsInLeafNode, double maxMBSortInHeap) throws java.io.IOException
Full constructor- Throws:
java.io.IOException
-
Lucene86PointsWriter
public Lucene86PointsWriter(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:PointsWriterWrite all values contained in the provided reader- Specified by:
writeFieldin classPointsWriter- Throws:
java.io.IOException
-
merge
public void merge(MergeState mergeState) throws java.io.IOException
Description copied from class:PointsWriterDefault merge implementation to merge incoming points readers by visiting all their points and adding to this writer- Overrides:
mergein classPointsWriter- Throws:
java.io.IOException
-
finish
public void finish() throws java.io.IOExceptionDescription copied from class:PointsWriterCalled once at the end before close- Specified by:
finishin classPointsWriter- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
-