public class FieldInfos extends java.lang.Object implements java.lang.Iterable<FieldInfo>
FieldInfo
s (accessible by number or by name).Modifier and Type | Class and Description |
---|---|
(package private) static class |
FieldInfos.Builder |
(package private) static class |
FieldInfos.FieldDimensions |
(package private) static class |
FieldInfos.FieldNumbers |
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<java.lang.String,FieldInfo> |
byName |
private java.util.SortedMap<java.lang.Integer,FieldInfo> |
byNumberMap |
private FieldInfo[] |
byNumberTable |
private boolean |
hasDocValues |
private boolean |
hasFreq |
private boolean |
hasNorms |
private boolean |
hasOffsets |
private boolean |
hasPayloads |
private boolean |
hasPointValues |
private boolean |
hasProx |
private boolean |
hasVectors |
private java.util.Collection<FieldInfo> |
values |
Constructor and Description |
---|
FieldInfos(FieldInfo[] infos)
Constructs a new FieldInfos from an array of FieldInfo objects
|
Modifier and Type | Method and Description |
---|---|
FieldInfo |
fieldInfo(int fieldNumber)
Return the fieldinfo object referenced by the fieldNumber.
|
FieldInfo |
fieldInfo(java.lang.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 |
hasPointValues()
Returns true if any fields have PointValues
|
boolean |
hasProx()
Returns true if any fields have positions
|
boolean |
hasVectors()
Returns true if any fields have vectors
|
java.util.Iterator<FieldInfo> |
iterator()
Returns an iterator over all the fieldinfo objects present,
ordered by ascending field number
|
int |
size()
Returns the number of fields
|
private final boolean hasFreq
private final boolean hasProx
private final boolean hasPayloads
private final boolean hasOffsets
private final boolean hasVectors
private final boolean hasNorms
private final boolean hasDocValues
private final boolean hasPointValues
private final FieldInfo[] byNumberTable
private final java.util.SortedMap<java.lang.Integer,FieldInfo> byNumberMap
private final java.util.HashMap<java.lang.String,FieldInfo> byName
private final java.util.Collection<FieldInfo> values
public FieldInfos(FieldInfo[] infos)
public boolean hasFreq()
public boolean hasProx()
public boolean hasPayloads()
public boolean hasOffsets()
public boolean hasVectors()
public boolean hasNorms()
public boolean hasDocValues()
public boolean hasPointValues()
public int size()
public java.util.Iterator<FieldInfo> iterator()
iterator
in interface java.lang.Iterable<FieldInfo>
public FieldInfo fieldInfo(java.lang.String fieldName)
public FieldInfo fieldInfo(int fieldNumber)
fieldNumber
- field's number.java.lang.IllegalArgumentException
- if fieldNumber is negative