org.elasticsearch.action.get
Class MultiGetShardRequest

java.lang.Object
  extended by org.elasticsearch.action.support.single.shard.SingleShardOperationRequest
      extended by org.elasticsearch.action.get.MultiGetShardRequest
All Implemented Interfaces:
ActionRequest, Streamable

public class MultiGetShardRequest
extends SingleShardOperationRequest


Field Summary
 
Fields inherited from class org.elasticsearch.action.support.single.shard.SingleShardOperationRequest
index
 
Method Summary
 void add(int location, String type, String id, String[] fields)
           
 String preference()
           
 MultiGetShardRequest preference(String preference)
          Sets the preference to execute the search.
 void readFrom(StreamInput in)
           
 boolean realtime()
           
 MultiGetShardRequest realtime(Boolean realtime)
           
 boolean refresh()
           
 MultiGetShardRequest refresh(boolean refresh)
           
 int shardId()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class org.elasticsearch.action.support.single.shard.SingleShardOperationRequest
beforeLocalFork, index, listenerThreaded, listenerThreaded, operationThreaded, operationThreaded, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

shardId

public int shardId()

preference

public MultiGetShardRequest preference(String preference)
Sets the preference to execute the search. Defaults to randomize across shards. Can be set to _local to prefer local shards, _primary to execute only on primary shards, or a custom value, which guarantees that the same order will be used across different requests.


preference

public String preference()

realtime

public boolean realtime()

realtime

public MultiGetShardRequest realtime(Boolean realtime)

refresh

public boolean refresh()

refresh

public MultiGetShardRequest refresh(boolean refresh)

add

public void add(int location,
                @Nullable
                String type,
                String id,
                String[] fields)

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Overrides:
readFrom in class SingleShardOperationRequest
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Overrides:
writeTo in class SingleShardOperationRequest
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.