java.lang.Object
org.apache.lucene.index.DocValuesUpdate
- Direct Known Subclasses:
DocValuesUpdate.BinaryDocValuesUpdate
,DocValuesUpdate.NumericDocValuesUpdate
An in-place update to a DocValues field.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class
An in-place update to a binary DocValues field(package private) static final class
An in-place update to a numeric DocValues field -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final int
(package private) final String
(package private) final boolean
private static final int
(package private) final Term
(package private) final DocValuesType
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DocValuesUpdate
(DocValuesType type, Term term, String field, int docIDUpTo, boolean hasValue) Constructor. -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
hasValue()
(package private) final long
toString()
(package private) abstract long
protected abstract String
(package private) abstract void
writeTo
(DataOutput output)
-
Field Details
-
RAW_SIZE_IN_BYTES
private static final int RAW_SIZE_IN_BYTES -
type
-
term
-
field
-
docIDUpTo
final int docIDUpTo -
hasValue
final boolean hasValue
-
-
Constructor Details
-
DocValuesUpdate
protected DocValuesUpdate(DocValuesType type, Term term, String field, int docIDUpTo, boolean hasValue) Constructor.- Parameters:
term
- theTerm
which determines the documents that will be updatedfield
- theNumericDocValuesField
to update
-
-
Method Details
-
valueSizeInBytes
abstract long valueSizeInBytes() -
sizeInBytes
final long sizeInBytes() -
valueToString
-
writeTo
- Throws:
IOException
-
hasValue
boolean hasValue() -
toString
-