|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.lucene.index.Fields
public abstract class Fields
Flex API for access to fields and terms
| Field Summary | |
|---|---|
static Fields[] |
EMPTY_ARRAY
Zero-length Fields array. |
| Constructor Summary | |
|---|---|
protected |
Fields()
Sole constructor. |
| Method Summary | |
|---|---|
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 Iterator<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(String field)
Get the Terms for this field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Fields[] EMPTY_ARRAY
Fields array.
| Constructor Detail |
|---|
protected Fields()
| Method Detail |
|---|
public abstract Iterator<String> iterator()
iterator in interface Iterable<String>
public 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()
iterator() will return as many field names.
@Deprecated
public long getUniqueTermCount()
throws IOException
IOExceptionTerms.size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||