public final class ShardCoreKeyMap extends Object
Constructor and Description |
---|
ShardCoreKeyMap() |
Modifier and Type | Method and Description |
---|---|
void |
add(org.apache.lucene.index.LeafReader reader)
Register a
LeafReader . |
Set<Object> |
getCoreKeysForIndex(String index)
Get the set of core cache keys associated with the given index.
|
ShardId |
getShardId(Object coreKey)
Return the
ShardId that holds the given segment, or null
if this segment is not tracked. |
int |
size()
Return the number of tracked segments.
|
public void add(org.apache.lucene.index.LeafReader reader)
LeafReader
. This is necessary so that the core cache
key of this reader can be found later using getShardId(Object)
.public ShardId getShardId(Object coreKey)
ShardId
that holds the given segment, or null
if this segment is not tracked.public Set<Object> getCoreKeysForIndex(String index)
public int size()
Copyright © 2009–2016. All rights reserved.