Class HotTablet (2.16.0)

public final class HotTablet extends GeneratedMessageV3 implements HotTabletOrBuilder

A tablet is a defined by a start and end key and is explained in https://cloud.google.com/bigtable/docs/overview#architecture and https://cloud.google.com/bigtable/docs/performance#optimization. A Hot tablet is a tablet that exhibits high average cpu usage during the time interval from start time to end time.

Protobuf type google.bigtable.admin.v2.HotTablet

Implements

HotTabletOrBuilder

Static Fields

END_KEY_FIELD_NUMBER

public static final int END_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NODE_CPU_USAGE_PERCENT_FIELD_NUMBER

public static final int NODE_CPU_USAGE_PERCENT_FIELD_NUMBER
Field Value
TypeDescription
int

START_KEY_FIELD_NUMBER

public static final int START_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

TABLE_NAME_FIELD_NUMBER

public static final int TABLE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static HotTablet getDefaultInstance()
Returns
TypeDescription
HotTablet

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static HotTablet.Builder newBuilder()
Returns
TypeDescription
HotTablet.Builder

newBuilder(HotTablet prototype)

public static HotTablet.Builder newBuilder(HotTablet prototype)
Parameter
NameDescription
prototypeHotTablet
Returns
TypeDescription
HotTablet.Builder

parseDelimitedFrom(InputStream input)

public static HotTablet parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HotTablet
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HotTablet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HotTablet
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static HotTablet parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
HotTablet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HotTablet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HotTablet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HotTablet parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
HotTablet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HotTablet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HotTablet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HotTablet parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
HotTablet
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HotTablet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HotTablet
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static HotTablet parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
HotTablet
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HotTablet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HotTablet
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static HotTablet parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
HotTablet
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HotTablet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
HotTablet
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<HotTablet> parser()
Returns
TypeDescription
Parser<HotTablet>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public HotTablet getDefaultInstanceForType()
Returns
TypeDescription
HotTablet

getEndKey()

public String getEndKey()

Tablet End Key (inclusive).

string end_key = 6;

Returns
TypeDescription
String

The endKey.

getEndKeyBytes()

public ByteString getEndKeyBytes()

Tablet End Key (inclusive).

string end_key = 6;

Returns
TypeDescription
ByteString

The bytes for endKey.

getEndTime()

public Timestamp getEndTime()

Output only. The end time of the hot tablet.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The end time of the hot tablet.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

The unique name of the hot tablet. Values are of the form projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The unique name of the hot tablet. Values are of the form projects/{project}/instances/{instance}/clusters/{cluster}/hotTablets/[a-zA-Z0-9_-]*.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNodeCpuUsagePercent()

public float getNodeCpuUsagePercent()

Output only. The average CPU usage spent by a node on this tablet over the start_time to end_time time range. The percentage is the amount of CPU used by the node to serve the tablet, from 0% (tablet was not interacted with) to 100% (the node spent all cycles serving the hot tablet).

float node_cpu_usage_percent = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
float

The nodeCpuUsagePercent.

getParserForType()

public Parser<HotTablet> getParserForType()
Returns
TypeDescription
Parser<HotTablet>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStartKey()

public String getStartKey()

Tablet Start Key (inclusive).

string start_key = 5;

Returns
TypeDescription
String

The startKey.

getStartKeyBytes()

public ByteString getStartKeyBytes()

Tablet Start Key (inclusive).

string start_key = 5;

Returns
TypeDescription
ByteString

The bytes for startKey.

getStartTime()

public Timestamp getStartTime()

Output only. The start time of the hot tablet.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. The start time of the hot tablet.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getTableName()

public String getTableName()

Name of the table that contains the tablet. Values are of the form projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*.

string table_name = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The tableName.

getTableNameBytes()

public ByteString getTableNameBytes()

Name of the table that contains the tablet. Values are of the form projects/{project}/instances/{instance}/tables/_a-zA-Z0-9*.

string table_name = 2 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for tableName.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasEndTime()

public boolean hasEndTime()

Output only. The end time of the hot tablet.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasStartTime()

public boolean hasStartTime()

Output only. The start time of the hot tablet.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the startTime field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public HotTablet.Builder newBuilderForType()
Returns
TypeDescription
HotTablet.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HotTablet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
HotTablet.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public HotTablet.Builder toBuilder()
Returns
TypeDescription
HotTablet.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException