Class AbstractStoreMetadata
java.lang.Object
com.linkedin.venice.fastclient.meta.AbstractStoreMetadata
- All Implemented Interfaces:
StoreMetadata
,SchemaReader
,Closeable
,AutoCloseable
- Direct Known Subclasses:
RequestBasedMetadata
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
getCompressor
(CompressionStrategy compressionStrategy, int version, CompressorFactory compressorFactory, Map<Integer, ByteBuffer> versionZstdDictionaryMap) int
getPartitionId
(int version, byte[] key) getReplicas
(long requestId, int version, int partitionId, int requiredReplicaCount, Set<String> excludedInstances) void
setRoutingStrategy
(AbstractClientRoutingStrategy routingStrategy) For testing only.void
setRoutingStrategy
(ClientRoutingStrategyType strategyType) trackHealthBasedOnRequestToInstance
(String instance, int version, int partitionId, CompletableFuture<TransportClientResponse> transportFuture) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.linkedin.venice.schema.SchemaReader
getKeySchema, getLatestUpdateSchema, getLatestValueSchema, getLatestValueSchemaId, getUpdateSchema, getValueSchema, getValueSchemaId
Methods inherited from interface com.linkedin.venice.fastclient.meta.StoreMetadata
getClusterName, getCompressor, getCurrentStoreVersion, getPartitionId, getReplicas, getReplicas, isReady, start
-
Field Details
-
routingStrategy
-
storeName
-
-
Constructor Details
-
AbstractStoreMetadata
-
-
Method Details
-
setRoutingStrategy
-
setRoutingStrategy
For testing only. -
getStoreName
- Specified by:
getStoreName
in interfaceStoreMetadata
-
getPartitionId
public int getPartitionId(int version, byte[] key) - Specified by:
getPartitionId
in interfaceStoreMetadata
-
getReplicas
public List<String> getReplicas(long requestId, int version, int partitionId, int requiredReplicaCount, Set<String> excludedInstances) - Specified by:
getReplicas
in interfaceStoreMetadata
-
trackHealthBasedOnRequestToInstance
public ChainedCompletableFuture<Integer,Integer> trackHealthBasedOnRequestToInstance(String instance, int version, int partitionId, CompletableFuture<TransportClientResponse> transportFuture) - Specified by:
trackHealthBasedOnRequestToInstance
in interfaceStoreMetadata
-
getInstanceHealthMonitor
- Specified by:
getInstanceHealthMonitor
in interfaceStoreMetadata
-
getBatchGetLimit
public int getBatchGetLimit()- Specified by:
getBatchGetLimit
in interfaceStoreMetadata
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getCompressor
public VeniceCompressor getCompressor(CompressionStrategy compressionStrategy, int version, CompressorFactory compressorFactory, Map<Integer, ByteBuffer> versionZstdDictionaryMap)
-