Class ShardUtils

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

public final class ShardUtils
extends java.lang.Object
  • Method Summary

    Modifier and Type Method Description
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.