接口 GenericRecord
- 所有超级接口:
GenericObject
An interface represents a message with schema.
-
方法概要
修饰符和类型方法说明Retrieve the value of the provided fieldName.default ObjectRetrieve the value of the provided field.Returns the list of fields associated with the record.default ObjectReturn the internal native representation of the Record, like a AVRO GenericRecord.default SchemaTypeReturn the schema tyoe.byte[]Return schema version.
-
方法详细资料
-
getSchemaVersion
byte[] getSchemaVersion()Return schema version.- 返回:
- schema version, or null if the information is not available.
-
getFields
Returns the list of fields associated with the record.- 返回:
- the list of fields associated with the record.
-
getField
Retrieve the value of the provided field.- 参数:
field- the field to retrieve the value- 返回:
- the value object
-
getField
Retrieve the value of the provided fieldName.- 参数:
fieldName- the field name- 返回:
- the value object, or null if field doesn't exist
-
getSchemaType
Return the schema tyoe.- 指定者:
getSchemaType在接口中GenericObject- 返回:
- the schema type
- 抛出:
UnsupportedOperationException- if this feature is not implemented- 另请参阅:
-
getNativeObject
Return the internal native representation of the Record, like a AVRO GenericRecord.- 指定者:
getNativeObject在接口中GenericObject- 返回:
- the internal representation of the record
- 抛出:
UnsupportedOperationException- if the operation is not supported
-