Class AbstractStoreMetadata
java.lang.Object
com.linkedin.venice.fastclient.meta.AbstractStoreMetadata
- All Implemented Interfaces:
- StoreMetadata,- SchemaReader,- Closeable,- AutoCloseable
- Direct Known Subclasses:
- RequestBasedMetadata
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()intgetCompressor(CompressionStrategy compressionStrategy, int version, CompressorFactory compressorFactory, Map<Integer, ByteBuffer> versionZstdDictionaryMap) intgetPartitionId(int version, byte[] key) getReplica(long requestId, int groupId, int version, int partitionId, Set<String> excludedInstances) This function is expected to return fully qualified URI, such as: "https://fake.host:8888".<K> voidrouteRequest(RequestContext requestContext, RecordSerializer<K> keySerializer) voidsetRoutingStrategy(AbstractClientRoutingStrategy routingStrategy) For testing only.voidsetRoutingStrategy(ClientRoutingStrategyType strategyType) trackHealthBasedOnRequestToInstance(String instance, int version, int partitionId, CompletableFuture<TransportClientResponse> transportFuture) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linkedin.venice.schema.SchemaReadergetKeySchema, getLatestUpdateSchema, getLatestValueSchema, getLatestValueSchemaId, getLatestValueSchemaId, getUpdateSchema, getValueSchema, getValueSchemaIdMethods inherited from interface com.linkedin.venice.fastclient.meta.StoreMetadatagetClusterName, getCompressor, getCurrentStoreVersion, getPartitionId, getReplicas, isReady, start
- 
Field Details- 
routingStrategy
- 
storeName
 
- 
- 
Constructor Details- 
AbstractStoreMetadata
 
- 
- 
Method Details- 
setRoutingStrategy
- 
setRoutingStrategyFor testing only.
- 
getStoreName- Specified by:
- getStoreNamein interface- StoreMetadata
 
- 
getPartitionIdpublic int getPartitionId(int version, byte[] key) - Specified by:
- getPartitionIdin interface- StoreMetadata
 
- 
getReplicapublic String getReplica(long requestId, int groupId, int version, int partitionId, Set<String> excludedInstances) Description copied from interface:StoreMetadataThis function is expected to return fully qualified URI, such as: "https://fake.host:8888".- Specified by:
- getReplicain interface- StoreMetadata
 
- 
trackHealthBasedOnRequestToInstancepublic ChainedCompletableFuture<Integer,Integer> trackHealthBasedOnRequestToInstance(String instance, int version, int partitionId, CompletableFuture<TransportClientResponse> transportFuture) - Specified by:
- trackHealthBasedOnRequestToInstancein interface- StoreMetadata
 
- 
getInstanceHealthMonitor- Specified by:
- getInstanceHealthMonitorin interface- StoreMetadata
 
- 
getBatchGetLimitpublic int getBatchGetLimit()- Specified by:
- getBatchGetLimitin interface- StoreMetadata
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Closeable
- Throws:
- IOException
 
- 
getCompressorpublic VeniceCompressor getCompressor(CompressionStrategy compressionStrategy, int version, CompressorFactory compressorFactory, Map<Integer, ByteBuffer> versionZstdDictionaryMap) 
- 
routeRequest- Specified by:
- routeRequestin interface- StoreMetadata
 
 
-