public enum StringZMapMarshaller extends Enum<StringZMapMarshaller> implements CompactBytesMarshaller<Map<String,String>>
BYTE_BUFFER_CODE, CLASS_CODE, DATE_CODE, DOUBLE_CODE, INT_CODE, LIST_CODE, LONG_CODE, MAP_CODE, SET_CODE, STRING_CODE, STRINGZ_CODE, STRINGZ_MAP_CODE| Modifier and Type | Method and Description |
|---|---|
byte |
code() |
Map<String,String> |
read(Bytes bytes)
Reads and returns an object from
bytes. |
Map<String,String> |
read(Bytes bytes,
Map<String,String> kvMap)
Reads and returns an object from
bytes, reusing the given object, if possible. |
static StringZMapMarshaller |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringZMapMarshaller[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
write(Bytes bytes,
Map<String,String> kvMap)
Write the object out to the
bytes. |
public static final StringZMapMarshaller FAST
public static final StringZMapMarshaller COMPACT
public static final StringZMapMarshaller INSTANCE
public static StringZMapMarshaller[] values()
for (StringZMapMarshaller c : StringZMapMarshaller.values()) System.out.println(c);
public static StringZMapMarshaller valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic byte code()
code in interface CompactBytesMarshaller<Map<String,String>>public void write(Bytes bytes, Map<String,String> kvMap)
BytesMarshallerbytes.write in interface BytesMarshaller<Map<String,String>>bytes - to write tokvMap - the object to writepublic Map<String,String> read(Bytes bytes)
BytesMarshallerbytes.read in interface BytesMarshaller<Map<String,String>>bytes - to readpublic Map<String,String> read(Bytes bytes, @Nullable Map<String,String> kvMap)
BytesMarshallerbytes, reusing the given object, if possible.read in interface BytesMarshaller<Map<String,String>>bytes - to readkvMap - an object to reuse, if possible. null could be passed, in this case
a new object should be allocated anyway.Copyright © 2019. All rights reserved.