org.elasticsearch.search.dfs
Class DfsSearchResult
java.lang.Object
org.elasticsearch.search.dfs.DfsSearchResult
- All Implemented Interfaces:
- Streamable, SearchPhaseResult
public class DfsSearchResult
- extends Object
- implements SearchPhaseResult
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DfsSearchResult
public DfsSearchResult()
DfsSearchResult
public DfsSearchResult(long id,
SearchShardTarget shardTarget)
id
public long id()
- Specified by:
id
in interface SearchPhaseResult
shardTarget
public SearchShardTarget shardTarget()
- Specified by:
shardTarget
in interface SearchPhaseResult
shardTarget
public void shardTarget(SearchShardTarget shardTarget)
- Specified by:
shardTarget
in interface SearchPhaseResult
maxDoc
public DfsSearchResult maxDoc(int maxDoc)
maxDoc
public int maxDoc()
termsAndFreqs
public DfsSearchResult termsAndFreqs(org.apache.lucene.index.Term[] terms,
int[] freqs)
terms
public org.apache.lucene.index.Term[] terms()
freqs
public int[] freqs()
readDfsSearchResult
public static DfsSearchResult readDfsSearchResult(StreamInput in)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
readFrom
public void readFrom(StreamInput in)
throws IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
IOException
writeTo
public void writeTo(StreamOutput out)
throws IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.