
org.infinispan.lucene.IndexScopedKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-embedded-query
Show all versions of infinispan-embedded-query
Infinispan Embedded Query All-in-One module
The newest version!
package org.infinispan.lucene;
import org.infinispan.distribution.ch.AffinityTaggedKey;
/**
* Mostly used for internal abstraction: common type for all keys which need name scoping for different indexes.
*
* @author Sanne Grinovero
* @since 5.2
*/
public interface IndexScopedKey extends AffinityTaggedKey {
/**
* Different indexes are required to use different names
* @return
*/
String getIndexName();
/**
* This numeric id is used exclusively for storage affinity in Infinispan.
* It is not included in the equals and hashcode implementations!
* @return the segment id as defined in {@link org.infinispan.lucene.directory.BuildContext#affinityLocationIntoSegment(int)}, or -1 when not explicitly set.
*/
int getAffinitySegmentId();
T accept(KeyVisitor visitor) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy