Package org.elasticsearch.gateway
Class AsyncShardFetch.FetchResult<T extends BaseNodeResponse>
org.elasticsearch.gateway.AsyncShardFetch.FetchResult<T>
- Enclosing class:
- AsyncShardFetch<T extends BaseNodeResponse>
The result of a fetch operation. Make sure to first check
hasData()
before
fetching the actual data.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<DiscoveryNode,T>
getData()
Returns the actual data, note, make sure to checkhasData()
first and only use this when there is an actual data.boolean
hasData()
Does the result actually contain data? If not, then there are on going fetch operations happening, and it should wait for it.void
processAllocation(RoutingAllocation allocation)
Process any changes needed to the allocation based on this fetch result.Methods inherited from class java.lang.
, , , , , , , , , ,
-
Constructor Details
-
FetchResult
-
-
Method Details
-
hasData
public boolean hasData()Does the result actually contain data? If not, then there are on going fetch operations happening, and it should wait for it. -
getData
Returns the actual data, note, make sure to checkhasData()
first and only use this when there is an actual data. -
processAllocation
Process any changes needed to the allocation based on this fetch result.
-