Class ShardUtils

java.lang.Object
org.elasticsearch.index.shard.ShardUtils

public final class ShardUtils extends Object
  • Method Details

    • extractShardId

      @Nullable public static ShardId extractShardId(org.apache.lucene.index.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(org.apache.lucene.index.DirectoryReader reader)
      Tries to extract the shard id from a reader if possible, when its not possible, will return null.