public class ShardSearchTransportRequest extends TransportRequest implements ShardSearchRequest, IndicesRequest
ShardSearchLocalRequest
but gets sent over the transport and holds also the indices coming from the original request that generated it, plus its headers and context.TransportRequest.Empty
IndicesRequest.Replaceable
headers
Constructor and Description |
---|
ShardSearchTransportRequest() |
ShardSearchTransportRequest(SearchRequest searchRequest,
ShardRouting shardRouting,
int numberOfShards,
String[] filteringAliases,
long nowInMillis) |
Modifier and Type | Method and Description |
---|---|
BytesReference |
cacheKey()
Returns the cache key for this shard search request, based on its content
|
BytesReference |
extraSource() |
String[] |
filteringAliases() |
String |
index() |
String[] |
indices()
Returns the array of indices that the action relates to
|
IndicesOptions |
indicesOptions()
Returns the indices options used to resolve indices.
|
boolean |
isProfile()
Returns true if this shard search is being profiled or not
|
long |
nowInMillis() |
int |
numberOfShards() |
void |
readFrom(StreamInput in) |
Boolean |
requestCache() |
Scroll |
scroll() |
SearchType |
searchType() |
void |
setProfile(boolean profile)
Sets if this shard search needs to be profiled or not
|
int |
shardId() |
BytesReference |
source() |
void |
source(BytesReference source) |
Template |
template() |
BytesReference |
templateSource() |
String[] |
types() |
void |
writeTo(StreamOutput out) |
createTask, getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copyContextAndHeadersFrom
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContext
copyHeadersFrom, getHeader, getHeaders, hasHeader, putHeader
public ShardSearchTransportRequest()
public ShardSearchTransportRequest(SearchRequest searchRequest, ShardRouting shardRouting, int numberOfShards, String[] filteringAliases, long nowInMillis)
public String[] indices()
IndicesRequest
indices
in interface IndicesRequest
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public String index()
index
in interface ShardSearchRequest
public int shardId()
shardId
in interface ShardSearchRequest
public String[] types()
types
in interface ShardSearchRequest
public BytesReference source()
source
in interface ShardSearchRequest
public void source(BytesReference source)
source
in interface ShardSearchRequest
public BytesReference extraSource()
extraSource
in interface ShardSearchRequest
public int numberOfShards()
numberOfShards
in interface ShardSearchRequest
public SearchType searchType()
searchType
in interface ShardSearchRequest
public String[] filteringAliases()
filteringAliases
in interface ShardSearchRequest
public long nowInMillis()
nowInMillis
in interface ShardSearchRequest
public Template template()
template
in interface ShardSearchRequest
public BytesReference templateSource()
templateSource
in interface ShardSearchRequest
public Boolean requestCache()
requestCache
in interface ShardSearchRequest
public Scroll scroll()
scroll
in interface ShardSearchRequest
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class TransportMessage<TransportRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class TransportMessage<TransportRequest>
IOException
public BytesReference cacheKey() throws IOException
ShardSearchRequest
cacheKey
in interface ShardSearchRequest
IOException
public void setProfile(boolean profile)
ShardSearchRequest
setProfile
in interface ShardSearchRequest
profile
- True if the shard should be profiledpublic boolean isProfile()
ShardSearchRequest
isProfile
in interface ShardSearchRequest
Copyright © 2009–2016. All rights reserved.