Package org.apache.lucene.util
Class LongValues
- java.lang.Object
-
- org.apache.lucene.index.NumericDocValues
-
- org.apache.lucene.util.LongValues
-
- Direct Known Subclasses:
AppendingDeltaPackedLongBuffer
,AppendingPackedLongBuffer
,BlockPackedReader
,MonotonicAppendingLongBuffer
,MonotonicBlockPackedReader
,PagedGrowableWriter
,PagedMutable
public abstract class LongValues extends NumericDocValues
Abstraction over an array of longs. This class extends NumericDocValues so that we don't need to add another level of abstraction every time we want eg. to use thePackedInts
utility classes to represent aNumericDocValues
instance.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.index.NumericDocValues
EMPTY
-
-
Constructor Summary
Constructors Constructor Description LongValues()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description long
get(int idx)
Returns the numeric value for the specified document ID.abstract long
get(long index)
Get value atindex
.
-
-
-
Method Detail
-
get
public abstract long get(long index)
Get value atindex
.
-
get
public long get(int idx)
Description copied from class:NumericDocValues
Returns the numeric value for the specified document ID.- Specified by:
get
in classNumericDocValues
- Parameters:
idx
- document ID to lookup- Returns:
- numeric value
-
-