public class Lucene60PointsWriter extends PointsWriter implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
protected IndexOutput |
dataOut
Output used to write the BKD tree data file
|
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.
|
Constructor and Description |
---|
Lucene60PointsWriter(SegmentWriteState writeState)
Uses the defaults values for
maxPointsInLeafNode (1024) and maxMBSortInHeap (16.0) |
Lucene60PointsWriter(SegmentWriteState writeState,
int maxPointsInLeafNode,
double maxMBSortInHeap)
Full constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
finish()
Called once at the end before close
|
void |
merge(MergeState mergeState)
Default merge implementation to merge incoming points readers by visiting all their points and
adding to this writer
|
void |
writeField(FieldInfo fieldInfo,
PointsReader reader)
Write all values contained in the provided reader
|
mergeOneField
protected final IndexOutput dataOut
protected final java.util.Map<java.lang.String,java.lang.Long> indexFPs
public Lucene60PointsWriter(SegmentWriteState writeState, int maxPointsInLeafNode, double maxMBSortInHeap) throws java.io.IOException
java.io.IOException
public Lucene60PointsWriter(SegmentWriteState writeState) throws java.io.IOException
maxPointsInLeafNode
(1024) and maxMBSortInHeap
(16.0)java.io.IOException
public void writeField(FieldInfo fieldInfo, PointsReader reader) throws java.io.IOException
PointsWriter
writeField
in class PointsWriter
java.io.IOException
public void merge(MergeState mergeState) throws java.io.IOException
PointsWriter
merge
in class PointsWriter
java.io.IOException
public void finish() throws java.io.IOException
PointsWriter
finish
in class PointsWriter
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.