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.EmptyIndicesRequest.Replaceableheaders| 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, getDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcopyContextAndHeadersFromcontextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, putInContextcopyHeadersFrom, getHeader, getHeaders, hasHeader, putHeaderpublic ShardSearchTransportRequest()
public ShardSearchTransportRequest(SearchRequest searchRequest, ShardRouting shardRouting, int numberOfShards, String[] filteringAliases, long nowInMillis)
public String[] indices()
IndicesRequestindices in interface IndicesRequestpublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic String index()
index in interface ShardSearchRequestpublic int shardId()
shardId in interface ShardSearchRequestpublic String[] types()
types in interface ShardSearchRequestpublic BytesReference source()
source in interface ShardSearchRequestpublic void source(BytesReference source)
source in interface ShardSearchRequestpublic BytesReference extraSource()
extraSource in interface ShardSearchRequestpublic int numberOfShards()
numberOfShards in interface ShardSearchRequestpublic SearchType searchType()
searchType in interface ShardSearchRequestpublic String[] filteringAliases()
filteringAliases in interface ShardSearchRequestpublic long nowInMillis()
nowInMillis in interface ShardSearchRequestpublic Template template()
template in interface ShardSearchRequestpublic BytesReference templateSource()
templateSource in interface ShardSearchRequestpublic Boolean requestCache()
requestCache in interface ShardSearchRequestpublic Scroll scroll()
scroll in interface ShardSearchRequestpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class TransportMessage<TransportRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class TransportMessage<TransportRequest>IOExceptionpublic BytesReference cacheKey() throws IOException
ShardSearchRequestcacheKey in interface ShardSearchRequestIOExceptionpublic void setProfile(boolean profile)
ShardSearchRequestsetProfile in interface ShardSearchRequestprofile - True if the shard should be profiledpublic boolean isProfile()
ShardSearchRequestisProfile in interface ShardSearchRequestCopyright © 2009–2017. All rights reserved.