public class GenericRecord<P> extends Object implements Record<P>
| Modifier and Type | Field and Description |
|---|---|
protected Header |
header
The record header.
|
protected P |
payload
The record's payload.
|
| Constructor and Description |
|---|
GenericRecord(Header header,
P payload)
Create a
GenericRecord. |
protected Header header
protected P payload
public GenericRecord(Header header, P payload)
GenericRecord.header - the record headerpayload - the record payloadpublic Header getHeader()
Recordpublic P getPayload()
RecordgetPayload in interface Record<P>Copyright © 2015. All Rights Reserved.