public static class DocValuesProducer.SortedSetDocsWithField extends Object implements Bits
DocValuesProducer.getDocsWithField(org.apache.lucene.index.FieldInfo)
that
returns true
if a document has any ordinals.
Codecs can choose to use this (or implement it more efficiently another way), but in most cases a Bits is unnecessary anyway: users can check this as they go.
Bits.MatchAllBits, Bits.MatchNoBits
EMPTY_ARRAY
Constructor and Description |
---|
DocValuesProducer.SortedSetDocsWithField(SortedSetDocValues in,
int maxDoc)
Creates a
Bits returning true if the document has a value |
public DocValuesProducer.SortedSetDocsWithField(SortedSetDocValues in, int maxDoc)
Bits
returning true if the document has a valuepublic boolean get(int index)
Bits
index
.get
in interface Bits
index
- index, should be non-negative and < Bits.length()
.
The result of passing negative or out of bounds values is undefined
by this interface, just don't do it!true
if the bit is set, false
otherwise.Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.