Package org.apache.cassandra.cdc.avro
Class RecordReader
- java.lang.Object
-
- org.apache.cassandra.cdc.avro.RecordReader
-
public class RecordReader extends java.lang.ObjectReads values fromGenericRecordThe value is converted, if there is aTypeConversionregistered. Otherwise, the value read fromGenericRecordis returned as-is.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RecordReaderget()java.lang.Objectread(org.apache.avro.generic.GenericRecord genericRecord, java.lang.String fieldName)Read the value of the field.
-
-
-
Method Detail
-
get
public static RecordReader get()
-
read
public java.lang.Object read(org.apache.avro.generic.GenericRecord genericRecord, java.lang.String fieldName)Read the value of the field. Conversion is applied (if applicable for the field) before returning. For example, a field is read as string with the UUID logical type, it is converted to a UUID and returned. SeeRecordReader()for all the registered conversions.- Parameters:
genericRecord- data container to read fromfieldName- field to read- Returns:
- value of the field
-
-