Package com.linkedin.venice.client.store
Class ComputeGenericRecord
java.lang.Object
com.linkedin.venice.client.store.ComputeGenericRecord
- All Implemented Interfaces:
org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
A simple wrapper to throw exception when retrieving failed computation.
-
Constructor Summary
ConstructorDescriptionComputeGenericRecord
(org.apache.avro.generic.GenericRecord record, org.apache.avro.Schema valueSchema) Schema of the original record that was used to compute the result -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.avro.generic.GenericRecord
hasField
-
Constructor Details
-
ComputeGenericRecord
public ComputeGenericRecord(org.apache.avro.generic.GenericRecord record, org.apache.avro.Schema valueSchema) Schema of the original record that was used to compute the result
-
-
Method Details
-
put
- Specified by:
put
in interfaceorg.apache.avro.generic.GenericRecord
-
get
- Specified by:
get
in interfaceorg.apache.avro.generic.GenericRecord
-
put
- Specified by:
put
in interfaceorg.apache.avro.generic.IndexedRecord
-
get
- Specified by:
get
in interfaceorg.apache.avro.generic.IndexedRecord
-
getSchema
public org.apache.avro.Schema getSchema()- Specified by:
getSchema
in interfaceorg.apache.avro.generic.GenericContainer
-
getValueSchema
public org.apache.avro.Schema getValueSchema()
-