public abstract class Fields extends Object
| Modifier and Type | Field and Description |
|---|---|
static Fields[] |
EMPTY_ARRAY |
| Constructor and Description |
|---|
Fields() |
| Modifier and Type | Method and Description |
|---|---|
long |
getUniqueTermCount()
Returns the number of terms for all fields, or -1 if this
measure isn't stored by the codec.
|
abstract FieldsEnum |
iterator()
Returns an iterator that will step through all fields
names.
|
abstract int |
size()
Returns the number of terms for all fields, or -1 if this
measure isn't stored by the codec.
|
abstract Terms |
terms(String field)
Get the
Terms for this field. |
public static final Fields[] EMPTY_ARRAY
public abstract FieldsEnum iterator() throws IOException
IOExceptionpublic abstract Terms terms(String field) throws IOException
Terms for this field. This will return
null if the field does not exist.IOExceptionpublic abstract int size()
throws IOException
IOExceptionpublic long getUniqueTermCount()
throws IOException
IOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.