|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.action.support.broadcast.BroadcastOperationResponse org.elasticsearch.action.terms.TermsResponse
public class TermsResponse
The response of terms request. Includes a list of FieldTermsFreq
which include
the field and all its term / doc freq pair.
Method Summary | |
---|---|
long |
deletedDocs()
The number of deleted docs. |
FieldTermsFreq |
field(java.lang.String fieldName)
The FieldTermsFreq for the specified field name, null if
there is none. |
FieldTermsFreq[] |
fields()
All the FieldTermsFreq . |
java.util.Map<java.lang.String,FieldTermsFreq> |
fieldsAsMap()
The pair of field name to FieldTermsFreq as map for simpler usage. |
java.util.Iterator<FieldTermsFreq> |
iterator()
Iterates over the FieldTermsFreq . |
long |
maxDoc()
The total maximum number of documents (including deletions). |
long |
numDocs()
The total number of documents. |
void |
readFrom(StreamInput in)
|
void |
writeTo(StreamOutput out)
|
Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationResponse |
---|
failedShards, shardFailures, successfulShards, totalShards |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public long numDocs()
public long maxDoc()
public long deletedDocs()
public java.util.Iterator<FieldTermsFreq> iterator()
FieldTermsFreq
.
iterator
in interface java.lang.Iterable<FieldTermsFreq>
public FieldTermsFreq field(java.lang.String fieldName)
FieldTermsFreq
for the specified field name, null if
there is none.
fieldName
- The field name to return the field terms freq for
public FieldTermsFreq[] fields()
FieldTermsFreq
.
public java.util.Map<java.lang.String,FieldTermsFreq> fieldsAsMap()
FieldTermsFreq
as map for simpler usage.
public void readFrom(StreamInput in) throws java.io.IOException
readFrom
in interface Streamable
readFrom
in class BroadcastOperationResponse
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
writeTo
in interface Streamable
writeTo
in class BroadcastOperationResponse
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |