Module org.apache.lucene.codecs
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 BytesRef
BLOCK_COUNT
static BytesRef
BLOCK_DOC_ID
static BytesRef
BLOCK_FP
static BytesRef
BLOCK_VALUE
static BytesRef
BYTES_PER_DIM
private IndexOutput
dataOut
static BytesRef
DOC_COUNT
static BytesRef
END
static BytesRef
FIELD_COUNT
static BytesRef
FIELD_FP
static BytesRef
FIELD_FP_NAME
static BytesRef
INDEX_COUNT
(package private) java.util.Map<java.lang.String,java.lang.Long>
indexFPs
static BytesRef
MAX_LEAF_POINTS
static BytesRef
MAX_VALUE
static BytesRef
MIN_VALUE
static BytesRef
NUM_DATA_DIMS
static BytesRef
NUM_INDEX_DIMS
static BytesRef
POINT_COUNT
(package private) BytesRefBuilder
scratch
static BytesRef
SPLIT_COUNT
static BytesRef
SPLIT_DIM
static BytesRef
SPLIT_VALUE
(package private) SegmentWriteState
writeState
-
Constructor Summary
Constructors Constructor Description SimpleTextPointsWriter(SegmentWriteState writeState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
finish()
Called once at the end before closeprivate void
newline(IndexOutput out)
private void
write(IndexOutput out, java.lang.String s)
private void
write(IndexOutput out, BytesRef b)
void
writeField(FieldInfo fieldInfo, PointsReader reader)
Write all values contained in the provided reader-
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:PointsWriter
Write all values contained in the provided reader- Specified by:
writeField
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
- Throws:
java.io.IOException
-
write
private void write(IndexOutput out, java.lang.String s) 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
-
-