public abstract class RecordBase
extends java.lang.Object
Constructor and Description |
---|
RecordBase() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getRecordSize()
gives the current serialized size of the record.
(给出记录的当前序列化大小.)
|
abstract int |
serialize(int offset, byte[] data)
called by the class that is responsible for writing this sucker.
(由负责编写此傻瓜的类调用。)
|
public abstract int serialize(int offset, byte[] data)
offset
- to begin writing at
(偏移量 - 开始写入)
data
- byte array containing instance data
(data - 包含实例数据的字节数组)
public abstract int getRecordSize()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.