public final class DocValues extends Object
Modifier and Type | Field and Description |
---|---|
static BinaryDocValues |
EMPTY_BINARY
An empty BinaryDocValues which returns
BytesRef.EMPTY_BYTES for every document |
static NumericDocValues |
EMPTY_NUMERIC
An empty NumericDocValues which returns zero for every document
|
static SortedDocValues |
EMPTY_SORTED
An empty SortedDocValues which returns
BytesRef.EMPTY_BYTES for every document |
static SortedSetDocValues |
EMPTY_SORTED_SET
An empty SortedDocValues which returns
SortedSetDocValues.NO_MORE_ORDS for every document |
Modifier and Type | Method and Description |
---|---|
static Bits |
docsWithValue(SortedDocValues dv,
int maxDoc)
Returns a Bits representing all documents from
dv that have a value. |
static Bits |
docsWithValue(SortedSetDocValues dv,
int maxDoc)
Returns a Bits representing all documents from
dv that have a value. |
static SortedSetDocValues |
singleton(SortedDocValues dv)
Returns a multi-valued view over the provided SortedDocValues
|
static SortedDocValues |
unwrapSingleton(SortedSetDocValues dv)
Returns a single-valued view of the SortedSetDocValues, if it was previously
wrapped with
singleton(org.apache.lucene.index.SortedDocValues) , or null. |
public static final BinaryDocValues EMPTY_BINARY
BytesRef.EMPTY_BYTES
for every documentpublic static final NumericDocValues EMPTY_NUMERIC
public static final SortedDocValues EMPTY_SORTED
BytesRef.EMPTY_BYTES
for every documentpublic static final SortedSetDocValues EMPTY_SORTED_SET
SortedSetDocValues.NO_MORE_ORDS
for every documentpublic static SortedSetDocValues singleton(SortedDocValues dv)
public static SortedDocValues unwrapSingleton(SortedSetDocValues dv)
singleton(org.apache.lucene.index.SortedDocValues)
, or null.public static Bits docsWithValue(SortedDocValues dv, int maxDoc)
dv
that have a value.public static Bits docsWithValue(SortedSetDocValues dv, int maxDoc)
dv
that have a value.Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.