public enum EntryMetaData extends Enum<EntryMetaData>
Modifier and Type | Class and Description |
---|---|
static class |
EntryMetaData.Map
EntryMetaData.Map extends EnumMap to add validation prior to invoking the superclass EnumMap::put(k,v) method.
|
Enum Constant and Description |
---|
ROW_KEY |
TIMESTAMP |
TTL |
VISIBILITY |
Modifier and Type | Field and Description |
---|---|
static Map<EntryMetaData,Object> |
EMPTY_METADATA |
Modifier and Type | Method and Description |
---|---|
Class<?> |
getDataType() |
boolean |
isIdentifying() |
boolean |
isValidData(Object datum)
Validates a datum according to the metadata type.
|
static EntryMetaData |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntryMetaData[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntryMetaData TTL
public static final EntryMetaData VISIBILITY
public static final EntryMetaData TIMESTAMP
public static final EntryMetaData ROW_KEY
public static final Map<EntryMetaData,Object> EMPTY_METADATA
public static EntryMetaData[] values()
for (EntryMetaData c : EntryMetaData.values()) System.out.println(c);
public static EntryMetaData 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 Class<?> getDataType()
public boolean isIdentifying()
public boolean isValidData(Object datum)
datum
- object to validateCopyright © 2012–2023. All rights reserved.