public static final class PackedInts.NullReader extends PackedInts.Reader
PackedInts.Reader
which has all its values equal to 0 (bitsPerValue = 0).Constructor and Description |
---|
NullReader(int valueCount)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
get(int index)
Returns the numeric value for the specified document ID.
|
int |
get(int index,
long[] arr,
int off,
int len)
Bulk get: read at least one and at most
len longs starting
from index into arr[off:off+len] and return
the actual number of values that have been read. |
long |
ramBytesUsed()
Return the memory usage of this object in bytes.
|
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getChildResources
public long get(int index)
NumericDocValues
get
in class NumericDocValues
index
- document ID to lookuppublic int get(int index, long[] arr, int off, int len)
PackedInts.Reader
len
longs starting
from index
into arr[off:off+len]
and return
the actual number of values that have been read.get
in class PackedInts.Reader
public int size()
size
in class PackedInts.Reader
public long ramBytesUsed()
Accountable
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.