public class Record extends Object implements Externalizable
Modifier and Type | Class and Description |
---|---|
static class |
Record.Flag |
Modifier and Type | Field and Description |
---|---|
byte[] |
data |
protected static EnumSet<Record.Flag> |
DEFAULT_FLAG |
EnumSet<Record.Flag> |
flags |
String |
key |
long |
watermark |
Constructor and Description |
---|
Record() |
Record(String key,
byte[] data,
long watermark,
EnumSet<Record.Flag> flags) |
Modifier and Type | Method and Description |
---|---|
protected EnumSet<Record.Flag> |
decodeFlags(short encoded) |
protected short |
encodeFlags() |
static Record |
of(String key,
byte[] data) |
void |
readExternal(ObjectInput in) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
protected static final EnumSet<Record.Flag> DEFAULT_FLAG
public long watermark
public EnumSet<Record.Flag> flags
public byte[] data
public Record()
public Record(String key, byte[] data, long watermark, EnumSet<Record.Flag> flags)
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
protected short encodeFlags()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
protected EnumSet<Record.Flag> decodeFlags(short encoded)
Copyright © 2018 Nuxeo. All rights reserved.