Package org.elasticsearch.index.shard
Class ShardUtils
- java.lang.Object
-
- org.elasticsearch.index.shard.ShardUtils
-
public final class ShardUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ShardIdextractShardId(DirectoryReader reader)Tries to extract the shard id from a reader if possible, when its not possible, will return null.static ShardIdextractShardId(LeafReader reader)Tries to extract the shard id from a reader if possible, when its not possible, will return null.
-
-
-
Method Detail
-
extractShardId
@Nullable public static ShardId extractShardId(LeafReader reader)
Tries to extract the shard id from a reader if possible, when its not possible, will return null.
-
extractShardId
@Nullable public static ShardId extractShardId(DirectoryReader reader)
Tries to extract the shard id from a reader if possible, when its not possible, will return null.
-
-