public class Key extends Object implements Comparable<Key>, Serializable
Modifier and Type | Field and Description |
---|---|
static Key |
EMPTY |
protected int |
infFlag |
static Key |
MAX |
static Key |
MIN |
static Key |
NULL |
protected static byte[] |
TBL_PREFIX |
protected byte[] |
value |
Modifier | Constructor and Description |
---|---|
protected |
Key(byte[] value) |
Modifier and Type | Method and Description |
---|---|
Key |
append(Key other) |
int |
compareTo(Key other) |
boolean |
equals(Object other) |
byte[] |
getBytes() |
int |
getInfFlag() |
int |
hashCode() |
Key |
next()
Next key simply append a zero byte to previous key.
|
Key |
nextPrefix()
nextPrefix key will be key with next available rid.
|
com.google.protobuf.ByteString |
toByteString() |
static Key |
toRawKey(byte[] bytes) |
static Key |
toRawKey(byte[] bytes,
boolean negative) |
static Key |
toRawKey(com.google.protobuf.ByteString bytes) |
static Key |
toRawKey(com.google.protobuf.ByteString bytes,
boolean negative) |
String |
toString() |
public static final Key EMPTY
public static final Key NULL
public static final Key MIN
public static final Key MAX
protected static final byte[] TBL_PREFIX
protected final byte[] value
protected final int infFlag
public static Key toRawKey(com.google.protobuf.ByteString bytes, boolean negative)
public static Key toRawKey(com.google.protobuf.ByteString bytes)
public static Key toRawKey(byte[] bytes, boolean negative)
public static Key toRawKey(byte[] bytes)
public Key next()
public Key nextPrefix()
public int compareTo(@Nonnull Key other)
compareTo
in interface Comparable<Key>
public byte[] getBytes()
public com.google.protobuf.ByteString toByteString()
public int getInfFlag()
Copyright © 2024 PingCAP. All rights reserved.