private static class SimpleTextTermVectorsReader.SimpleTVFields extends Fields
Modifier and Type | Field and Description |
---|---|
private java.util.SortedMap<java.lang.String,SimpleTextTermVectorsReader.SimpleTVTerms> |
fields |
EMPTY_ARRAY
Constructor and Description |
---|
SimpleTVFields(java.util.SortedMap<java.lang.String,SimpleTextTermVectorsReader.SimpleTVTerms> 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.SortedMap<java.lang.String,SimpleTextTermVectorsReader.SimpleTVTerms> fields
SimpleTVFields(java.util.SortedMap<java.lang.String,SimpleTextTermVectorsReader.SimpleTVTerms> fields)
public java.util.Iterator<java.lang.String> iterator()
Fields
public Terms terms(java.lang.String field) throws java.io.IOException
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.