Package com.linkedin.venice.client.store
Class AvroSpecificStoreClientImpl<K,V extends org.apache.avro.specific.SpecificRecord>
java.lang.Object
com.linkedin.venice.client.store.InternalAvroStoreClient<K,V>
com.linkedin.venice.client.store.AbstractAvroStoreClient<K,V>
com.linkedin.venice.client.store.AvroSpecificStoreClientImpl<K,V>
- Type Parameters:
V-
- All Implemented Interfaces:
AvroGenericReadComputeStoreClient<K,,V> AvroGenericStoreClient<K,,V> AvroSpecificStoreClient<K,,V> Closeable,AutoCloseable
public class AvroSpecificStoreClientImpl<K,V extends org.apache.avro.specific.SpecificRecord>
extends AbstractAvroStoreClient<K,V>
implements AvroSpecificStoreClient<K,V>
AvroSpecificStoreClient implementation for Avro SpecificRecord.-
Field Summary
Fields inherited from class com.linkedin.venice.client.store.AbstractAvroStoreClient
B64_FORMAT, computeRequestClientKeySerializer, keySerializer, multiGetRequestSerializer, needSchemaReader, TYPE_COMPUTE, TYPE_STORAGE -
Constructor Summary
ConstructorsConstructorDescriptionAvroSpecificStoreClientImpl(TransportClient transportClient, ClientConfig clientConfig) -
Method Summary
Modifier and TypeMethodDescriptiongetDataRecordDeserializer(int schemaId) protected Optional<org.apache.avro.Schema>protected AbstractAvroStoreClient<K,V> To avoid cycle dependency, we need to initialize another store client for schema reader.voidstart()Methods inherited from class com.linkedin.venice.client.store.AbstractAvroStoreClient
close, compute, createKeySerializer, get, getClientConfig, getComputeRequestPath, getDataRecordDeserializerFromCache, getDefaultDeserializationExecutor, getDeserializationExecutor, getKeySchema, getLatestValueSchema, getRaw, getRequestPathByKey, getSchemaReader, getStoreName, getTransportClient, handleCallbackForEmptyKeySet, isProjectionFieldValidationEnabled, startWithExceptionThrownWhenFail, streamingBatchGet, toString, tryToDeserializeWithVerboseLoggingMethods inherited from class com.linkedin.venice.client.store.InternalAvroStoreClient
computeWithKeyPrefixFilter, get, getRaw, getStreamingCallbackMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.linkedin.venice.client.store.AvroGenericReadComputeStoreClient
compute, compute, compute, compute, computeAggregationMethods inherited from interface com.linkedin.venice.client.store.AvroGenericStoreClient
batchGet, close, get, get, getKeySchema, getLatestValueSchema, getStoreName, streamingBatchGet, streamingBatchGet
-
Constructor Details
-
AvroSpecificStoreClientImpl
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceAvroGenericStoreClient<K,V extends org.apache.avro.specific.SpecificRecord> - Overrides:
startin classAbstractAvroStoreClient<K,V extends org.apache.avro.specific.SpecificRecord>
-
getStoreClientForSchemaReader
To avoid cycle dependency, we need to initialize another store client for schema reader.- Specified by:
getStoreClientForSchemaReaderin classAbstractAvroStoreClient<K,V extends org.apache.avro.specific.SpecificRecord> - Returns:
- Throws:
VeniceClientException
-
getDataRecordDeserializer
- Specified by:
getDataRecordDeserializerin classAbstractAvroStoreClient<K,V extends org.apache.avro.specific.SpecificRecord> - Throws:
VeniceClientException
-
getReaderSchema
- Overrides:
getReaderSchemain classAbstractAvroStoreClient<K,V extends org.apache.avro.specific.SpecificRecord>
-