Class SimpleTextPointsWriter
- java.lang.Object
-
- org.apache.lucene.codecs.PointsWriter
-
- org.apache.lucene.codecs.simpletext.SimpleTextPointsWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
class SimpleTextPointsWriter extends PointsWriter
-
-
Field Summary
Fields Modifier and Type Field Description static BytesRefBLOCK_COUNTstatic BytesRefBLOCK_DOC_IDstatic BytesRefBLOCK_FPstatic BytesRefBLOCK_VALUEstatic BytesRefBYTES_PER_DIMprivate IndexOutputdataOutstatic BytesRefDOC_COUNTstatic BytesRefENDstatic BytesRefFIELD_COUNTstatic BytesRefFIELD_FPstatic BytesRefFIELD_FP_NAMEstatic BytesRefINDEX_COUNT(package private) java.util.Map<java.lang.String,java.lang.Long>indexFPsstatic BytesRefMAX_LEAF_POINTSstatic BytesRefMAX_VALUEstatic BytesRefMIN_VALUEstatic BytesRefNUM_DATA_DIMSstatic BytesRefNUM_INDEX_DIMSstatic BytesRefPOINT_COUNT(package private) BytesRefBuilderscratchstatic BytesRefSPLIT_COUNTstatic BytesRefSPLIT_DIMstatic BytesRefSPLIT_VALUE(package private) SegmentWriteStatewriteState
-
Constructor Summary
Constructors Constructor Description SimpleTextPointsWriter(SegmentWriteState writeState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidfinish()Called once at the end before closeprivate voidnewline(IndexOutput out)private voidwrite(IndexOutput out, java.lang.String s)private voidwrite(IndexOutput out, BytesRef b)voidwriteField(FieldInfo fieldInfo, PointsReader reader)Write all values contained in the provided readerprivate voidwriteInt(IndexOutput out, int x)private voidwriteLong(IndexOutput out, long x)-
Methods inherited from class org.apache.lucene.codecs.PointsWriter
merge, mergeOneField
-
-
-
-
Field Detail
-
NUM_DATA_DIMS
public static final BytesRef NUM_DATA_DIMS
-
NUM_INDEX_DIMS
public static final BytesRef NUM_INDEX_DIMS
-
BYTES_PER_DIM
public static final BytesRef BYTES_PER_DIM
-
MAX_LEAF_POINTS
public static final BytesRef MAX_LEAF_POINTS
-
INDEX_COUNT
public static final BytesRef INDEX_COUNT
-
BLOCK_COUNT
public static final BytesRef BLOCK_COUNT
-
BLOCK_DOC_ID
public static final BytesRef BLOCK_DOC_ID
-
BLOCK_FP
public static final BytesRef BLOCK_FP
-
BLOCK_VALUE
public static final BytesRef BLOCK_VALUE
-
SPLIT_COUNT
public static final BytesRef SPLIT_COUNT
-
SPLIT_DIM
public static final BytesRef SPLIT_DIM
-
SPLIT_VALUE
public static final BytesRef SPLIT_VALUE
-
FIELD_COUNT
public static final BytesRef FIELD_COUNT
-
FIELD_FP_NAME
public static final BytesRef FIELD_FP_NAME
-
FIELD_FP
public static final BytesRef FIELD_FP
-
MIN_VALUE
public static final BytesRef MIN_VALUE
-
MAX_VALUE
public static final BytesRef MAX_VALUE
-
POINT_COUNT
public static final BytesRef POINT_COUNT
-
DOC_COUNT
public static final BytesRef DOC_COUNT
-
END
public static final BytesRef END
-
dataOut
private IndexOutput dataOut
-
scratch
final BytesRefBuilder scratch
-
writeState
final SegmentWriteState writeState
-
indexFPs
final java.util.Map<java.lang.String,java.lang.Long> indexFPs
-
-
Constructor Detail
-
SimpleTextPointsWriter
public SimpleTextPointsWriter(SegmentWriteState writeState) throws java.io.IOException
- 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
-
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- Throws:
java.io.IOException
-
write
private void write(IndexOutput out, java.lang.String s) throws java.io.IOException
- Throws:
java.io.IOException
-
writeInt
private void writeInt(IndexOutput out, int x) throws java.io.IOException
- Throws:
java.io.IOException
-
writeLong
private void writeLong(IndexOutput out, long x) throws java.io.IOException
- Throws:
java.io.IOException
-
write
private void write(IndexOutput out, BytesRef b) throws java.io.IOException
- Throws:
java.io.IOException
-
newline
private void newline(IndexOutput out) throws java.io.IOException
- Throws:
java.io.IOException
-
-