org.elasticsearch.action.get
Class MultiGetShardRequest
java.lang.Object
org.elasticsearch.action.support.single.shard.SingleShardOperationRequest
org.elasticsearch.action.get.MultiGetShardRequest
- All Implemented Interfaces:
- ActionRequest, Streamable
public class MultiGetShardRequest
- extends SingleShardOperationRequest
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.