Package com.linkedin.venice.fastclient
Class StatsAvroGenericStoreClient<K,V>
java.lang.Object
com.linkedin.venice.fastclient.InternalAvroStoreClient<K,V>
com.linkedin.venice.fastclient.DelegatingAvroStoreClient<K,V>
com.linkedin.venice.fastclient.StatsAvroGenericStoreClient<K,V>
- All Implemented Interfaces:
AvroGenericReadComputeStoreClient<K,
,V> AvroGenericStoreClient<K,
,V> Closeable
,AutoCloseable
- Direct Known Subclasses:
StatsAvroSpecificStoreClient
This class is in charge of all the metric emissions per request.
-
Constructor Summary
ConstructorDescriptionStatsAvroGenericStoreClient
(InternalAvroStoreClient<K, V> delegate, ClientConfig clientConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoid
compute
(ComputeRequestContext<K, V> requestContext, ComputeRequestWrapper computeRequestWrapper, Set<K> keys, org.apache.avro.Schema resultSchema, StreamingCallback<K, ComputeGenericRecord> callback, long preRequestTimeInNS) protected CompletableFuture<V>
get
(GetRequestContext requestContext, K key) protected void
streamingBatchGet
(BatchGetRequestContext<K, V> requestContext, Set<K> keys, StreamingCallback<K, V> callback) Methods inherited from class com.linkedin.venice.fastclient.DelegatingAvroStoreClient
close, compute, getClientConfig, getKeySchema, getLatestValueSchema, getSchemaReader, getStoreName, start
Methods inherited from class com.linkedin.venice.fastclient.InternalAvroStoreClient
batchGet, batchGet, compute, computeWithKeyPrefixFilter, get, isProjectionFieldValidationEnabled, streamingBatchGet, streamingBatchGet, streamingBatchGet
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.client.store.AvroGenericReadComputeStoreClient
compute, compute, compute
Methods inherited from interface com.linkedin.venice.client.store.AvroGenericStoreClient
get
-
Constructor Details
-
StatsAvroGenericStoreClient
public StatsAvroGenericStoreClient(InternalAvroStoreClient<K, V> delegate, ClientConfig clientConfig)
-
-
Method Details
-
get
protected CompletableFuture<V> get(GetRequestContext requestContext, K key) throws VeniceClientException - Overrides:
get
in classDelegatingAvroStoreClient<K,
V> - Throws:
VeniceClientException
-
streamingBatchGet
protected void streamingBatchGet(BatchGetRequestContext<K, V> requestContext, Set<K> keys, StreamingCallback<K, V> callback) - Overrides:
streamingBatchGet
in classDelegatingAvroStoreClient<K,
V>
-
compute
public void compute(ComputeRequestContext<K, V> requestContext, ComputeRequestWrapper computeRequestWrapper, Set<K> keys, org.apache.avro.Schema resultSchema, StreamingCallback<K, throws VeniceClientExceptionComputeGenericRecord> callback, long preRequestTimeInNS) - Overrides:
compute
in classDelegatingAvroStoreClient<K,
V> - Throws:
VeniceClientException
-