Package com.linkedin.venice.client.store
Interface AvroGenericReadComputeStoreClient<K,V>
- Type Parameters:
K-V-
- All Superinterfaces:
AutoCloseable,AvroGenericStoreClient<K,,V> Closeable
- All Known Implementing Classes:
AbstractAvroStoreClient,AvroBlackHoleResponseStoreClientImpl,AvroGenericDaVinciClient,AvroGenericStoreClientImpl,AvroSpecificDaVinciClient,AvroSpecificStoreClientImpl,DelegatingAvroGenericDaVinciClient,DelegatingAvroStoreClient,DelegatingStoreClient,DispatchingAvroGenericStoreClient,DispatchingAvroSpecificStoreClient,DispatchingVsonStoreClient,DualReadAvroGenericStoreClient,DualReadAvroSpecificStoreClient,InternalAvroStoreClient,InternalAvroStoreClient,LoadControlledAvroGenericStoreClient,LoadControlledAvroSpecificStoreClient,LoggingTrackingStoreClient,RetriableAvroGenericStoreClient,RetriableAvroSpecificStoreClient,RetriableStoreClient,SpecificLoggingTrackingStoreClient,SpecificRetriableStoreClient,SpecificStatTrackingStoreClient,StatsAvroGenericDaVinciClient,StatsAvroGenericStoreClient,StatsAvroSpecificDaVinciClient,StatsAvroSpecificStoreClient,StatTrackingStoreClient,VersionSpecificAvroGenericDaVinciClient,VsonGenericStoreClientImpl
Venice avro generic client to provide read compute operations. This interface is internal and is subject to change.
-
Method Summary
Modifier and TypeMethodDescriptiondefault ComputeRequestBuilder<K>compute()This API allows performing transformations (projection, vector arithmetic and aggregations like count) on the values associated with the given set of keys.voidcompute(ComputeRequestWrapper computeRequestWrapper, Set<K> keys, org.apache.avro.Schema resultSchema, StreamingCallback<K, ComputeGenericRecord> callback, long preRequestTimeInNS) default ComputeRequestBuilder<K>compute(Optional<ClientStats> stats, AvroGenericReadComputeStoreClient computeStoreClient) default ComputeRequestBuilder<K>compute(Optional<ClientStats> stats, Optional<ClientStats> streamingStats, long preRequestTimeInNS) Deprecated.default ComputeRequestBuilder<K>compute(Optional<ClientStats> stats, Optional<ClientStats> streamingStats, AvroGenericReadComputeStoreClient computeStoreClient, long preRequestTimeInNS) Deprecated.default ComputeAggregationRequestBuilder<K>Create a new compute aggregation request builder.voidcomputeWithKeyPrefixFilter(byte[] keyPrefix, ComputeRequestWrapper computeRequestWrapper, StreamingCallback<org.apache.avro.generic.GenericRecord, org.apache.avro.generic.GenericRecord> callback) booleanMethods inherited from interface com.linkedin.venice.client.store.AvroGenericStoreClient
batchGet, close, get, get, getKeySchema, getLatestValueSchema, getStoreName, start, streamingBatchGet, streamingBatchGet
-
Method Details
-
getSchemaReader
SchemaReader getSchemaReader() -
isProjectionFieldValidationEnabled
boolean isProjectionFieldValidationEnabled() -
compute
Description copied from interface:AvroGenericStoreClientThis API allows performing transformations (projection, vector arithmetic and aggregations like count) on the values associated with the given set of keys. Check outComputeRequestBuilderfor details on the available operations.- Specified by:
computein interfaceAvroGenericStoreClient<K,V> - Throws:
VeniceClientException- See Also:
-
compute
@Deprecated default ComputeRequestBuilder<K> compute(Optional<ClientStats> stats, Optional<ClientStats> streamingStats, long preRequestTimeInNS) throws VeniceClientException Deprecated.- Throws:
VeniceClientException
-
compute
@Deprecated default ComputeRequestBuilder<K> compute(Optional<ClientStats> stats, Optional<ClientStats> streamingStats, AvroGenericReadComputeStoreClient computeStoreClient, long preRequestTimeInNS) throws VeniceClientException Deprecated.- Throws:
VeniceClientException
-
compute
default ComputeRequestBuilder<K> compute(Optional<ClientStats> stats, AvroGenericReadComputeStoreClient computeStoreClient) throws VeniceClientException - Throws:
VeniceClientException
-
compute
void compute(ComputeRequestWrapper computeRequestWrapper, Set<K> keys, org.apache.avro.Schema resultSchema, StreamingCallback<K, ComputeGenericRecord> callback, long preRequestTimeInNS) throws VeniceClientException- Throws:
VeniceClientException
-
computeWithKeyPrefixFilter
void computeWithKeyPrefixFilter(byte[] keyPrefix, ComputeRequestWrapper computeRequestWrapper, StreamingCallback<org.apache.avro.generic.GenericRecord, org.apache.avro.generic.GenericRecord> callback) throws VeniceClientException- Throws:
VeniceClientException
-
computeAggregation
Create a new compute aggregation request builder.- Returns:
- A new
ComputeAggregationRequestBuilderinstance. - Throws:
VeniceClientException- if there is an error creating the builder.
-