Package org.infinispan.lucene
Class FileListCacheKey
- java.lang.Object
-
- org.infinispan.lucene.FileListCacheKey
-
- All Implemented Interfaces:
AffinityTaggedKey,IndexScopedKey
public final class FileListCacheKey extends Object implements IndexScopedKey
Cache key for a list with current files in cache- Since:
- 4.0
- Author:
- Lukasz Moren, Sanne Grinovero
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileListCacheKey.Externalizer
-
Constructor Summary
Constructors Constructor Description FileListCacheKey(String indexName, int affinitySegmentId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectaccept(KeyVisitor visitor)booleanequals(Object obj)intgetAffinitySegmentId()This numeric id is used exclusively for storage affinity in Infinispan.StringgetIndexName()Get the indexName.inthashCode()StringtoString()Changing the encoding could break backwards compatibility
-
-
-
Constructor Detail
-
FileListCacheKey
public FileListCacheKey(String indexName, int affinitySegmentId)
-
-
Method Detail
-
getIndexName
public String getIndexName()
Get the indexName.- Specified by:
getIndexNamein interfaceIndexScopedKey- Returns:
- the indexName.
-
getAffinitySegmentId
public int getAffinitySegmentId()
Description copied from interface:IndexScopedKeyThis numeric id is used exclusively for storage affinity in Infinispan. It is not included in the equals and hashcode implementations!- Specified by:
getAffinitySegmentIdin interfaceAffinityTaggedKey- Specified by:
getAffinitySegmentIdin interfaceIndexScopedKey- Returns:
- the segment id as defined in
BuildContext.affinityLocationIntoSegment(int), or -1 when not explicitly set.
-
accept
public Object accept(KeyVisitor visitor) throws Exception
- Specified by:
acceptin interfaceIndexScopedKey- Throws:
Exception
-
toString
public String toString()
Changing the encoding could break backwards compatibility- Overrides:
toStringin classObject- See Also:
LuceneKey2StringMapper.getKeyMapping(String)
-
-