public final class Lucene54DocValuesFormat extends DocValuesFormat
Encodes the five per-document value types (Numeric,Binary,Sorted,SortedSet,SortedNumeric) with these strategies:
DirectWriter.
SmallFloat),
a lookup table is written instead. Each per-document entry is instead the ordinal
to this table, and those ordinals are compressed with bitpacking (DirectWriter).
docID * length).
Files:
| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
ALL_LIVE
placeholder for missing offset that means there are no missing values
|
(package private) static int |
ALL_MISSING
placeholder for missing offset that means all values are missing
|
(package private) static byte |
BINARY |
(package private) static int |
BINARY_FIXED_UNCOMPRESSED
Uncompressed binary, written directly (fixed length).
|
(package private) static int |
BINARY_PREFIX_COMPRESSED
Compressed binary with shared prefixes
|
(package private) static int |
BINARY_VARIABLE_UNCOMPRESSED
Uncompressed binary, written directly (variable length).
|
(package private) static int |
BLOCK_INTERVAL_COUNT |
(package private) static int |
BLOCK_INTERVAL_MASK |
(package private) static int |
BLOCK_INTERVAL_SHIFT |
(package private) static int |
CONST_COMPRESSED
Compressed with constant value (uses only missing bitset)
|
(package private) static java.lang.String |
DATA_CODEC |
(package private) static java.lang.String |
DATA_EXTENSION |
(package private) static int |
DELTA_COMPRESSED
Compressed using packed blocks of ints.
|
(package private) static int |
DIRECT_MONOTONIC_BLOCK_SHIFT |
(package private) static int |
GCD_COMPRESSED
Compressed by computing the GCD.
|
(package private) static int |
INTERVAL_COUNT |
(package private) static int |
INTERVAL_MASK |
(package private) static int |
INTERVAL_SHIFT |
(package private) static java.lang.String |
META_CODEC |
(package private) static java.lang.String |
META_EXTENSION |
(package private) static int |
MONOTONIC_BLOCK_SIZE |
(package private) static int |
MONOTONIC_COMPRESSED
Compressed with monotonically increasing values
|
(package private) static byte |
NUMERIC |
(package private) static int |
REVERSE_INTERVAL_COUNT |
(package private) static int |
REVERSE_INTERVAL_MASK |
(package private) static int |
REVERSE_INTERVAL_SHIFT |
(package private) static byte |
SORTED |
(package private) static byte |
SORTED_NUMERIC |
(package private) static byte |
SORTED_SET |
(package private) static int |
SORTED_SET_TABLE
Compressed giving IDs to unique sets of values:
docId -> setId -> ords |
(package private) static int |
SORTED_SINGLE_VALUED
Single-valued sorted set values, encoded as sorted values, so no level
of indirection:
docId -> ord. |
(package private) static int |
SORTED_WITH_ADDRESSES
Standard storage for sorted set values with 1 level of indirection:
docId -> address -> ord. |
(package private) static int |
SPARSE_COMPRESSED
Compressed with sparse arrays.
|
(package private) static int |
TABLE_COMPRESSED
Compressed by giving IDs to unique values.
|
(package private) static int |
VERSION_CURRENT |
(package private) static int |
VERSION_START |
| Constructor and Description |
|---|
Lucene54DocValuesFormat()
Sole Constructor
|
| Modifier and Type | Method and Description |
|---|---|
DocValuesConsumer |
fieldsConsumer(SegmentWriteState state)
Returns a
DocValuesConsumer to write docvalues to the
index. |
DocValuesProducer |
fieldsProducer(SegmentReadState state)
Returns a
DocValuesProducer to read docvalues from the index. |
availableDocValuesFormats, forName, getName, reloadDocValuesFormats, toStringstatic final java.lang.String DATA_CODEC
static final java.lang.String DATA_EXTENSION
static final java.lang.String META_CODEC
static final java.lang.String META_EXTENSION
static final int VERSION_START
static final int VERSION_CURRENT
static final byte NUMERIC
static final byte BINARY
static final byte SORTED
static final byte SORTED_SET
static final byte SORTED_NUMERIC
static final int INTERVAL_SHIFT
static final int INTERVAL_COUNT
static final int INTERVAL_MASK
static final int REVERSE_INTERVAL_SHIFT
static final int REVERSE_INTERVAL_COUNT
static final int REVERSE_INTERVAL_MASK
static final int BLOCK_INTERVAL_SHIFT
static final int BLOCK_INTERVAL_COUNT
static final int BLOCK_INTERVAL_MASK
static final int DELTA_COMPRESSED
static final int GCD_COMPRESSED
static final int TABLE_COMPRESSED
static final int MONOTONIC_COMPRESSED
static final int CONST_COMPRESSED
static final int SPARSE_COMPRESSED
static final int BINARY_FIXED_UNCOMPRESSED
static final int BINARY_VARIABLE_UNCOMPRESSED
static final int BINARY_PREFIX_COMPRESSED
static final int SORTED_WITH_ADDRESSES
docId -> address -> ord.static final int SORTED_SINGLE_VALUED
docId -> ord.static final int SORTED_SET_TABLE
docId -> setId -> ordsstatic final int ALL_LIVE
static final int ALL_MISSING
static final int MONOTONIC_BLOCK_SIZE
static final int DIRECT_MONOTONIC_BLOCK_SHIFT
public DocValuesConsumer fieldsConsumer(SegmentWriteState state) throws java.io.IOException
DocValuesFormatDocValuesConsumer to write docvalues to the
index.fieldsConsumer in class DocValuesFormatjava.io.IOExceptionpublic DocValuesProducer fieldsProducer(SegmentReadState state) throws java.io.IOException
DocValuesFormatDocValuesProducer to read docvalues from the index.
NOTE: by the time this call returns, it must hold open any files it will need to use; else, those files may be deleted. Additionally, required files may be deleted during the execution of this call before there is a chance to open them. Under these circumstances an IOException should be thrown by the implementation. IOExceptions are expected and will automatically cause a retry of the segment opening logic with the newly revised segments.
fieldsProducer in class DocValuesFormatjava.io.IOException