@InternalExtensionOnly public abstract class KeyOffset extends Object implements Serializable
| Constructor and Description |
|---|
KeyOffset() |
| Modifier and Type | Method and Description |
|---|---|
static KeyOffset |
create(com.google.protobuf.ByteString key,
long offsetBytes) |
abstract long |
getOffsetBytes()
Approximate total storage space used by all rows in the table which precede
geyKey(). |
abstract com.google.protobuf.ByteString |
geyKey()
A row key value that is returned as part of the response of
BigtableDataClient.sampleRowKeysAsync(String). |
@InternalApi public static KeyOffset create(com.google.protobuf.ByteString key, long offsetBytes)
public abstract com.google.protobuf.ByteString geyKey()
BigtableDataClient.sampleRowKeysAsync(String). The key
represents end boundary of one of the contiguous sections in a list of approximately equal
sized sections.
Note that row key may not have ever been written to or read from, and users should therefore not make any assumptions about the row key structure that are specific to their use case.
public abstract long getOffsetBytes()
geyKey().
Buffering the contents of all rows between two subsequent samples would require space roughly
equal to the difference in their getOffsetBytes() fields.Copyright © 2018 Google LLC. All rights reserved.