public abstract class Fields
extends java.lang.Object
implements java.lang.Iterable<java.lang.String>
| Modifier and Type | Field and Description |
|---|---|
static Fields[] |
EMPTY_ARRAY
Zero-length
Fields array. |
| Modifier and Type | Method and Description |
|---|---|
long |
getUniqueTermCount()
Deprecated.
iterate fields and add their size() instead.
this method is only provided as a transition mechanism
to access this statistic for 3.x indexes, which do not
have this statistic per-field.
|
abstract java.util.Iterator<java.lang.String> |
iterator()
Returns an iterator that will step through all fields
names.
|
abstract int |
size()
Returns the number of fields or -1 if the number of
distinct field names is unknown.
|
abstract Terms |
terms(java.lang.String field)
Get the
Terms for this field. |
public static final Fields[] EMPTY_ARRAY
Fields array.public abstract java.util.Iterator<java.lang.String> iterator()
iterator in interface java.lang.Iterable<java.lang.String>public abstract Terms terms(java.lang.String field) throws java.io.IOException
Terms for this field. This will return
null if the field does not exist.java.io.IOExceptionpublic abstract int size()
iterator() will return as many field names.@Deprecated
public long getUniqueTermCount()
throws java.io.IOException
java.io.IOExceptionTerms.size()Copyright © 2010 - 2024 Adobe. All Rights Reserved