final class FieldUpdatesBuffer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
FieldUpdatesBuffer.BufferedUpdate
Struct like class that is used to iterate over all updates in this buffer
|
(package private) class |
FieldUpdatesBuffer.BufferedUpdateIterator
An iterator that iterates over all updates in insertion order
|
Modifier and Type | Field and Description |
---|---|
private Counter |
bytesUsed |
private BytesRefArray |
byteValues |
private int[] |
docsUpTo |
private java.lang.String[] |
fields |
private FixedBitSet |
hasValues |
private boolean |
isNumeric |
private long |
maxNumeric |
private long |
minNumeric |
private long[] |
numericValues |
private int |
numUpdates |
private static long |
SELF_SHALLOW_SIZE |
private static long |
STRING_SHALLOW_SIZE |
private BytesRefArray |
termValues |
Modifier | Constructor and Description |
---|---|
(package private) |
FieldUpdatesBuffer(Counter bytesUsed,
DocValuesUpdate.BinaryDocValuesUpdate initialValue,
int docUpTo) |
(package private) |
FieldUpdatesBuffer(Counter bytesUsed,
DocValuesUpdate.NumericDocValuesUpdate initialValue,
int docUpTo) |
private |
FieldUpdatesBuffer(Counter bytesUsed,
DocValuesUpdate initialValue,
int docUpTo,
boolean isNumeric) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
add(java.lang.String field,
int docUpTo,
int ord,
boolean hasValue) |
(package private) void |
addNoValue(Term term,
int docUpTo) |
(package private) void |
addUpdate(Term term,
BytesRef value,
int docUpTo) |
(package private) void |
addUpdate(Term term,
long value,
int docUpTo) |
private int |
append(Term term) |
private static int |
getArrayIndex(int arrayLength,
int index) |
(package private) long |
getMaxNumeric() |
(package private) long |
getMinNumeric() |
(package private) long |
getNumericValue(int idx) |
(package private) boolean |
hasSingleValue() |
(package private) boolean |
isNumeric() |
(package private) FieldUpdatesBuffer.BufferedUpdateIterator |
iterator() |
private static long |
sizeOfString(java.lang.String string) |
private static final long SELF_SHALLOW_SIZE
private static final long STRING_SHALLOW_SIZE
private final Counter bytesUsed
private int numUpdates
private final BytesRefArray termValues
private final BytesRefArray byteValues
private int[] docsUpTo
private long[] numericValues
private FixedBitSet hasValues
private long maxNumeric
private long minNumeric
private java.lang.String[] fields
private final boolean isNumeric
private FieldUpdatesBuffer(Counter bytesUsed, DocValuesUpdate initialValue, int docUpTo, boolean isNumeric)
FieldUpdatesBuffer(Counter bytesUsed, DocValuesUpdate.NumericDocValuesUpdate initialValue, int docUpTo)
FieldUpdatesBuffer(Counter bytesUsed, DocValuesUpdate.BinaryDocValuesUpdate initialValue, int docUpTo)
private static long sizeOfString(java.lang.String string)
long getMaxNumeric()
long getMinNumeric()
void add(java.lang.String field, int docUpTo, int ord, boolean hasValue)
void addUpdate(Term term, long value, int docUpTo)
void addNoValue(Term term, int docUpTo)
private int append(Term term)
FieldUpdatesBuffer.BufferedUpdateIterator iterator()
boolean isNumeric()
boolean hasSingleValue()
long getNumericValue(int idx)
private static int getArrayIndex(int arrayLength, int index)