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
ConstructorsConstructorDescriptionStatsAvroGenericStoreClient(InternalAvroStoreClient<K, V> delegate, ClientConfig clientConfig) -
Method Summary
Modifier and TypeMethodDescriptionvoidcompute(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<K> requestContext, K key) protected voidstreamingBatchGet(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, startMethods inherited from class com.linkedin.venice.fastclient.InternalAvroStoreClient
batchGet, batchGet, compute, computeWithKeyPrefixFilter, get, isProjectionFieldValidationEnabled, streamingBatchGet, streamingBatchGet, streamingBatchGetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.linkedin.venice.client.store.AvroGenericReadComputeStoreClient
compute, compute, compute, computeAggregationMethods 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<K> requestContext, K key) throws VeniceClientException - Overrides:
getin classDelegatingAvroStoreClient<K,V> - Throws:
VeniceClientException
-
streamingBatchGet
protected void streamingBatchGet(BatchGetRequestContext<K, V> requestContext, Set<K> keys, StreamingCallback<K, V> callback) - Overrides:
streamingBatchGetin 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:
computein classDelegatingAvroStoreClient<K,V> - Throws:
VeniceClientException
-