Package org.infinispan.lucene
Interface IndexScopedKey
-
- All Superinterfaces:
AffinityTaggedKey
- All Known Implementing Classes:
ChunkCacheKey
,FileCacheKey
,FileListCacheKey
,FileReadLockKey
public interface IndexScopedKey extends AffinityTaggedKey
Mostly used for internal abstraction: common type for all keys which need name scoping for different indexes.- Since:
- 5.2
- Author:
- Sanne Grinovero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
accept(KeyVisitor<T> visitor)
int
getAffinitySegmentId()
This numeric id is used exclusively for storage affinity in Infinispan.String
getIndexName()
Different indexes are required to use different names
-
-
-
Method Detail
-
getIndexName
String getIndexName()
Different indexes are required to use different names- Returns:
-
getAffinitySegmentId
int getAffinitySegmentId()
This numeric id is used exclusively for storage affinity in Infinispan. It is not included in the equals and hashcode implementations!- Specified by:
getAffinitySegmentId
in interfaceAffinityTaggedKey
- Returns:
- the segment id as defined in
BuildContext.affinityLocationIntoSegment(int)
, or -1 when not explicitly set.
-
accept
<T> T accept(KeyVisitor<T> visitor) throws Exception
- Throws:
Exception
-
-