Package org.apache.lucene.index
Class FieldInfos
- java.lang.Object
 - 
- org.apache.lucene.index.FieldInfos
 
 
- 
- 
Constructor Summary
Constructors Constructor Description FieldInfos(FieldInfo[] infos)Constructs a new FieldInfos from an array of FieldInfo objects 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldInfofieldInfo(int fieldNumber)Return the fieldinfo object referenced by the fieldNumber.FieldInfofieldInfo(java.lang.String fieldName)Return the fieldinfo object referenced by the field namebooleanhasDocValues()Returns true if any fields have DocValuesbooleanhasFreq()Returns true if any fields have freqsbooleanhasNorms()Returns true if any fields have normsbooleanhasOffsets()Returns true if any fields have offsetsbooleanhasPayloads()Returns true if any fields have payloadsbooleanhasProx()Returns true if any fields have positionsbooleanhasVectors()Returns true if any fields have vectorsjava.util.Iterator<FieldInfo>iterator()Returns an iterator over all the fieldinfo objects present, ordered by ascending field numberintsize()Returns the number of fields 
 - 
 
- 
- 
Constructor Detail
- 
FieldInfos
public FieldInfos(FieldInfo[] infos)
Constructs a new FieldInfos from an array of FieldInfo objects 
 - 
 
- 
Method Detail
- 
hasFreq
public boolean hasFreq()
Returns true if any fields have freqs 
- 
hasProx
public boolean hasProx()
Returns true if any fields have positions 
- 
hasPayloads
public boolean hasPayloads()
Returns true if any fields have payloads 
- 
hasOffsets
public boolean hasOffsets()
Returns true if any fields have offsets 
- 
hasVectors
public boolean hasVectors()
Returns true if any fields have vectors 
- 
hasNorms
public boolean hasNorms()
Returns true if any fields have norms 
- 
hasDocValues
public boolean hasDocValues()
Returns true if any fields have DocValues 
- 
size
public int size()
Returns the number of fields 
- 
iterator
public java.util.Iterator<FieldInfo> iterator()
Returns an iterator over all the fieldinfo objects present, ordered by ascending field number- Specified by:
 iteratorin interfacejava.lang.Iterable<FieldInfo>
 
- 
fieldInfo
public FieldInfo fieldInfo(java.lang.String fieldName)
Return the fieldinfo object referenced by the field name- Returns:
 - the FieldInfo object or null when the given fieldName doesn't exist.
 
 
- 
fieldInfo
public FieldInfo fieldInfo(int fieldNumber)
Return the fieldinfo object referenced by the fieldNumber.- Parameters:
 fieldNumber- field's number. if this is negative, this method always returns null.- Returns:
 - the FieldInfo object or null when the given fieldNumber doesn't exist.
 
 
 - 
 
 -