Package org.apache.lucene.index
Class DocValuesUpdate
- java.lang.Object
-
- org.apache.lucene.index.DocValuesUpdate
-
- Direct Known Subclasses:
DocValuesUpdate.BinaryDocValuesUpdate,DocValuesUpdate.NumericDocValuesUpdate
abstract class DocValuesUpdate extends java.lang.ObjectAn in-place update to a DocValues field.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classDocValuesUpdate.BinaryDocValuesUpdateAn in-place update to a binary DocValues field(package private) static classDocValuesUpdate.NumericDocValuesUpdateAn in-place update to a numeric DocValues field
-
Field Summary
Fields Modifier and Type Field Description (package private) intdocIDUpto(package private) java.lang.Stringfield(package private) booleanhasValueprivate static intRAW_SIZE_IN_BYTES(package private) Termterm(package private) DocValuesTypetype
-
Constructor Summary
Constructors Modifier Constructor Description protectedDocValuesUpdate(DocValuesType type, Term term, java.lang.String field, int docIDUpto, boolean hasValue)Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) booleanhasValue()(package private) intsizeInBytes()java.lang.StringtoString()(package private) abstract longvalueSizeInBytes()protected abstract java.lang.StringvalueToString()(package private) abstract voidwriteTo(DataOutput output)
-
-
-
Field Detail
-
RAW_SIZE_IN_BYTES
private static final int RAW_SIZE_IN_BYTES
-
type
final DocValuesType type
-
term
final Term term
-
field
final java.lang.String field
-
docIDUpto
final int docIDUpto
-
hasValue
final boolean hasValue
-
-
Constructor Detail
-
DocValuesUpdate
protected DocValuesUpdate(DocValuesType type, Term term, java.lang.String field, int docIDUpto, boolean hasValue)
Constructor.- Parameters:
term- theTermwhich determines the documents that will be updatedfield- theNumericDocValuesFieldto update
-
-
Method Detail
-
valueSizeInBytes
abstract long valueSizeInBytes()
-
sizeInBytes
final int sizeInBytes()
-
valueToString
protected abstract java.lang.String valueToString()
-
writeTo
abstract void writeTo(DataOutput output) throws java.io.IOException
- Throws:
java.io.IOException
-
hasValue
boolean hasValue()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-