org.elasticsearch.search.dfs
Class DfsSearchResult

java.lang.Object
  extended by org.elasticsearch.search.dfs.DfsSearchResult
All Implemented Interfaces:
Streamable, SearchPhaseResult

public class DfsSearchResult
extends Object
implements SearchPhaseResult


Constructor Summary
DfsSearchResult()
           
DfsSearchResult(long id, SearchShardTarget shardTarget)
           
 
Method Summary
 int[] freqs()
           
 long id()
           
 int maxDoc()
           
 DfsSearchResult maxDoc(int maxDoc)
           
static DfsSearchResult readDfsSearchResult(StreamInput in)
           
 void readFrom(StreamInput in)
           
 SearchShardTarget shardTarget()
           
 void shardTarget(SearchShardTarget shardTarget)
           
 org.apache.lucene.index.Term[] terms()
           
 DfsSearchResult termsAndFreqs(org.apache.lucene.index.Term[] terms, int[] freqs)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DfsSearchResult

public DfsSearchResult()

DfsSearchResult

public DfsSearchResult(long id,
                       SearchShardTarget shardTarget)
Method Detail

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.