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

public class ComputeGenericRecord extends Object implements org.apache.avro.generic.GenericRecord
A simple wrapper to throw exception when retrieving failed computation.
  • 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

      public void put(String key, Object v)
      Specified by:
      put in interface org.apache.avro.generic.GenericRecord
    • get

      public Object get(String key)
      Specified by:
      get in interface org.apache.avro.generic.GenericRecord
    • put

      public void put(int i, Object v)
      Specified by:
      put in interface org.apache.avro.generic.IndexedRecord
    • get

      public Object get(int i)
      Specified by:
      get in interface org.apache.avro.generic.IndexedRecord
    • getSchema

      public org.apache.avro.Schema getSchema()
      Specified by:
      getSchema in interface org.apache.avro.generic.GenericContainer
    • getValueSchema

      public org.apache.avro.Schema getValueSchema()