public final class DocValues extends Object
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(SortedNumericDocValues 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 BinaryDocValues |
emptyBinary()
An empty BinaryDocValues which returns
BytesRef.EMPTY_BYTES for every document |
static NumericDocValues |
emptyNumeric()
An empty NumericDocValues which returns zero for every document
|
static SortedDocValues |
emptySorted()
An empty SortedDocValues which returns
BytesRef.EMPTY_BYTES for every document |
static SortedNumericDocValues |
emptySortedNumeric(int maxDoc)
An empty SortedNumericDocValues which returns zero values for every document
|
static RandomAccessOrds |
emptySortedSet()
An empty SortedDocValues which returns
SortedSetDocValues.NO_MORE_ORDS for every document |
static BinaryDocValues |
getBinary(AtomicReader in,
String field)
Returns BinaryDocValues for the reader, or
emptyBinary() if it has none. |
static Bits |
getDocsWithField(AtomicReader in,
String field)
Returns Bits for the reader, or
Bits matching nothing if it has none. |
static NumericDocValues |
getNumeric(AtomicReader in,
String field)
Returns NumericDocValues for the reader, or
emptyNumeric() if it has none. |
static SortedDocValues |
getSorted(AtomicReader in,
String field)
Returns SortedDocValues for the reader, or
emptySorted() if it has none. |
static SortedNumericDocValues |
getSortedNumeric(AtomicReader in,
String field)
Returns SortedNumericDocValues for the reader, or
emptySortedNumeric(int) if it has none. |
static SortedSetDocValues |
getSortedSet(AtomicReader in,
String field)
Returns SortedSetDocValues for the reader, or
emptySortedSet() if it has none. |
static SortedNumericDocValues |
singleton(NumericDocValues dv,
Bits docsWithField)
Returns a multi-valued view over the provided NumericDocValues
|
static RandomAccessOrds |
singleton(SortedDocValues dv)
Returns a multi-valued view over the provided SortedDocValues
|
static NumericDocValues |
unwrapSingleton(SortedNumericDocValues dv)
Returns a single-valued view of the SortedNumericDocValues, if it was previously
wrapped with
singleton(NumericDocValues, Bits) , or null. |
static SortedDocValues |
unwrapSingleton(SortedSetDocValues dv)
Returns a single-valued view of the SortedSetDocValues, if it was previously
wrapped with
singleton(SortedDocValues) , or null. |
static Bits |
unwrapSingletonBits(SortedNumericDocValues dv)
Returns the documents with a value for the SortedNumericDocValues, if it was previously
wrapped with
singleton(NumericDocValues, Bits) , or null. |
public static final BinaryDocValues emptyBinary()
BytesRef.EMPTY_BYTES
for every documentpublic static final NumericDocValues emptyNumeric()
public static final SortedDocValues emptySorted()
BytesRef.EMPTY_BYTES
for every documentpublic static final SortedNumericDocValues emptySortedNumeric(int maxDoc)
public static final RandomAccessOrds emptySortedSet()
SortedSetDocValues.NO_MORE_ORDS
for every documentpublic static RandomAccessOrds singleton(SortedDocValues dv)
public static SortedDocValues unwrapSingleton(SortedSetDocValues dv)
singleton(SortedDocValues)
, or null.public static NumericDocValues unwrapSingleton(SortedNumericDocValues dv)
singleton(NumericDocValues, Bits)
, or null.public static Bits unwrapSingletonBits(SortedNumericDocValues dv)
singleton(NumericDocValues, Bits)
, or null.public static SortedNumericDocValues singleton(NumericDocValues dv, Bits docsWithField)
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.public static Bits docsWithValue(SortedNumericDocValues dv, int maxDoc)
dv
that have a value.public static NumericDocValues getNumeric(AtomicReader in, String field) throws IOException
emptyNumeric()
if it has none.IOException
public static BinaryDocValues getBinary(AtomicReader in, String field) throws IOException
emptyBinary()
if it has none.IOException
public static SortedDocValues getSorted(AtomicReader in, String field) throws IOException
emptySorted()
if it has none.IOException
public static SortedNumericDocValues getSortedNumeric(AtomicReader in, String field) throws IOException
emptySortedNumeric(int)
if it has none.IOException
public static SortedSetDocValues getSortedSet(AtomicReader in, String field) throws IOException
emptySortedSet()
if it has none.IOException
public static Bits getDocsWithField(AtomicReader in, String field) throws IOException
Bits
matching nothing if it has none.IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.