private class MemoryIndex.MemoryIndexReader.MemoryFields extends Fields
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,MemoryIndex.Info> |
fields |
EMPTY_ARRAY
Constructor and Description |
---|
MemoryFields(java.util.Map<java.lang.String,MemoryIndex.Info> fields) |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<java.lang.String> |
iterator()
Returns an iterator that will step through all fields
names.
|
int |
size()
Returns the number of fields or -1 if the number of
distinct field names is unknown.
|
Terms |
terms(java.lang.String field)
Get the
Terms for this field. |
private final java.util.Map<java.lang.String,MemoryIndex.Info> fields
public MemoryFields(java.util.Map<java.lang.String,MemoryIndex.Info> fields)
public java.util.Iterator<java.lang.String> iterator()
Fields
public Terms terms(java.lang.String field)
Fields
Terms
for this field. This will return
null if the field does not exist.public int size()
Fields
Fields.iterator()
will return as many field names.