Package org.elasticsearch.index.shard
Class ShardUtils
java.lang.Object
org.elasticsearch.index.shard.ShardUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic ShardIdextractShardId(org.apache.lucene.index.DirectoryReader reader)Tries to extract the shard id from a reader if possible, when its not possible, will return null.static ShardIdextractShardId(org.apache.lucene.index.LeafReader reader)Tries to extract the shard id from a reader if possible, when its not possible, will return null.
-
Method Details
-
extractShardId
Tries to extract the shard id from a reader if possible, when its not possible, will return null. -
extractShardId
Tries to extract the shard id from a reader if possible, when its not possible, will return null.
-