|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.lucene.index.FieldInfos
public class FieldInfos
Collection of FieldInfo
s (accessible by number or by name).
Constructor Summary | |
---|---|
FieldInfos(FieldInfo[] infos)
Constructs a new FieldInfos from an array of FieldInfo objects |
Method Summary | |
---|---|
FieldInfo |
fieldInfo(int fieldNumber)
Return the fieldinfo object referenced by the fieldNumber. |
FieldInfo |
fieldInfo(String fieldName)
Return the fieldinfo object referenced by the field name |
boolean |
hasDocValues()
Returns true if any fields have DocValues |
boolean |
hasFreq()
Returns true if any fields have freqs |
boolean |
hasNorms()
Returns true if any fields have norms |
boolean |
hasOffsets()
Returns true if any fields have offsets |
boolean |
hasPayloads()
Returns true if any fields have payloads |
boolean |
hasProx()
Returns true if any fields have positions |
boolean |
hasVectors()
Returns true if any fields have vectors |
Iterator<FieldInfo> |
iterator()
Returns an iterator over all the fieldinfo objects present, ordered by ascending field number |
int |
size()
Returns the number of fields |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldInfos(FieldInfo[] infos)
Method Detail |
---|
public boolean hasFreq()
public boolean hasProx()
public boolean hasPayloads()
public boolean hasOffsets()
public boolean hasVectors()
public boolean hasNorms()
public boolean hasDocValues()
public int size()
public Iterator<FieldInfo> iterator()
iterator
in interface Iterable<FieldInfo>
public FieldInfo fieldInfo(String fieldName)
public FieldInfo fieldInfo(int fieldNumber)
fieldNumber
- field's number. if this is negative, this method
always returns null.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |