public class ShardUtils extends Object
| Constructor and Description |
|---|
ShardUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ShardId |
extractShardId(org.apache.lucene.index.AtomicReader 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.IndexReader reader) |
@Nullable public static ShardId extractShardId(org.apache.lucene.index.AtomicReader reader)
SegmentReader
and the directory backing it to be Store.StoreDirectory.
This will be the case in almost all cases, except for percolator currently.public static ShardId extractShardId(org.apache.lucene.index.IndexReader reader)
Copyright © 2009–2016. All rights reserved.