public enum MetadataIndexNodeType extends Enum<MetadataIndexNodeType>
INTERNAL_DEVICE: internal nodes of the index tree's device level LEAF_DEVICE: leaf nodes of the index tree's device level, points to measurement level INTERNAL_MEASUREMENT: internal nodes of the index tree's measurement level LEAF_MEASUREMENT: leaf nodes of the index tree's device level, points to TimeseriesMetadata
| Enum Constant and Description |
|---|
INTERNAL_DEVICE
INTERNAL_DEVICE
|
INTERNAL_MEASUREMENT
INTERNAL_MEASUREMENT
|
LEAF_DEVICE
LEAF_DEVICE
|
LEAF_MEASUREMENT
INTERNAL_MEASUREMENT
|
| Modifier and Type | Method and Description |
|---|---|
static MetadataIndexNodeType |
deserialize(byte i)
deserialize byte number.
|
static MetadataIndexNodeType |
deserializeFrom(ByteBuffer buffer) |
static int |
getSerializedSize() |
byte |
serialize()
return a serialize child metadata index type.
|
void |
serializeTo(ByteBuffer byteBuffer) |
void |
serializeTo(DataOutputStream outputStream) |
static MetadataIndexNodeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetadataIndexNodeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetadataIndexNodeType INTERNAL_DEVICE
public static final MetadataIndexNodeType LEAF_DEVICE
public static final MetadataIndexNodeType INTERNAL_MEASUREMENT
public static final MetadataIndexNodeType LEAF_MEASUREMENT
public static MetadataIndexNodeType[] values()
for (MetadataIndexNodeType c : MetadataIndexNodeType.values()) System.out.println(c);
public static MetadataIndexNodeType 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 static MetadataIndexNodeType deserialize(byte i)
i - byte numberpublic static MetadataIndexNodeType deserializeFrom(ByteBuffer buffer)
public static int getSerializedSize()
public void serializeTo(ByteBuffer byteBuffer)
public void serializeTo(DataOutputStream outputStream) throws IOException
IOExceptionpublic byte serialize()
Copyright © 2022 The Apache Software Foundation. All rights reserved.