Package org.apache.lucene.index
Class DocValuesUpdate.BinaryDocValuesUpdate
- java.lang.Object
-
- org.apache.lucene.index.DocValuesUpdate
-
- org.apache.lucene.index.DocValuesUpdate.BinaryDocValuesUpdate
-
- Enclosing class:
- DocValuesUpdate
static final class DocValuesUpdate.BinaryDocValuesUpdate extends DocValuesUpdate
An in-place update to a binary DocValues field
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.lucene.index.DocValuesUpdate
DocValuesUpdate.BinaryDocValuesUpdate, DocValuesUpdate.NumericDocValuesUpdate
-
-
Field Summary
Fields Modifier and Type Field Description private static long
RAW_VALUE_SIZE_IN_BYTES
private BytesRef
value
-
Constructor Summary
Constructors Modifier Constructor Description (package private)
BinaryDocValuesUpdate(Term term, java.lang.String field, BytesRef value)
private
BinaryDocValuesUpdate(Term term, java.lang.String field, BytesRef value, int docIDUpTo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) BytesRef
getValue()
(package private) DocValuesUpdate.BinaryDocValuesUpdate
prepareForApply(int docIDUpto)
(package private) static BytesRef
readFrom(DataInput in, BytesRef scratch)
(package private) long
valueSizeInBytes()
protected java.lang.String
valueToString()
(package private) void
writeTo(DataOutput out)
-
Methods inherited from class org.apache.lucene.index.DocValuesUpdate
hasValue, sizeInBytes, toString
-
-
-
-
Field Detail
-
value
private final BytesRef value
-
RAW_VALUE_SIZE_IN_BYTES
private static final long RAW_VALUE_SIZE_IN_BYTES
-
-
Method Detail
-
prepareForApply
DocValuesUpdate.BinaryDocValuesUpdate prepareForApply(int docIDUpto)
-
valueSizeInBytes
long valueSizeInBytes()
- Specified by:
valueSizeInBytes
in classDocValuesUpdate
-
valueToString
protected java.lang.String valueToString()
- Specified by:
valueToString
in classDocValuesUpdate
-
getValue
BytesRef getValue()
-
writeTo
void writeTo(DataOutput out) throws java.io.IOException
- Specified by:
writeTo
in classDocValuesUpdate
- Throws:
java.io.IOException
-
-