public final class ChunkCacheKey extends Object implements IndexScopedKey
Modifier and Type | Class and Description |
---|---|
static class |
ChunkCacheKey.Externalizer |
Constructor and Description |
---|
ChunkCacheKey(String indexName,
String fileName,
int chunkId,
int bufferSize,
int affinitySegmentId) |
Modifier and Type | Method and Description |
---|---|
Object |
accept(KeyVisitor visitor) |
boolean |
equals(Object obj) |
int |
getAffinitySegmentId()
This numeric id is used exclusively for storage affinity in Infinispan.
|
int |
getBufferSize()
Get the bufferSize.
|
int |
getChunkId()
Get the chunkId.
|
String |
getFileName()
Get the fileName.
|
String |
getIndexName()
Get the indexName.
|
int |
hashCode() |
String |
toString()
Changing the encoding could break backwards compatibility
|
public int getChunkId()
public int getBufferSize()
public String getIndexName()
getIndexName
in interface IndexScopedKey
public int getAffinitySegmentId()
IndexScopedKey
getAffinitySegmentId
in interface AffinityTaggedKey
getAffinitySegmentId
in interface IndexScopedKey
BuildContext.affinityLocationIntoSegment(int)
, or -1 when not explicitly set.public Object accept(KeyVisitor visitor) throws Exception
accept
in interface IndexScopedKey
Exception
public String getFileName()
public String toString()
toString
in class Object
LuceneKey2StringMapper.getKeyMapping(String)
Copyright © 2022 JBoss, a division of Red Hat. All rights reserved.