@InterfaceAudience.Public public class BinaryComparator extends ByteArrayComparable
Bytes.compareTo(byte[], byte[]).| 构造器和说明 |
|---|
BinaryComparator(byte[] value)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(byte[] value,
int offset,
int length) |
int |
compareTo(ByteBuffer value,
int offset,
int length) |
static BinaryComparator |
parseFrom(byte[] pbBytes) |
byte[] |
toByteArray() |
compareTo, getValuepublic int compareTo(byte[] value,
int offset,
int length)
compareTo 在类中 ByteArrayComparablepublic int compareTo(ByteBuffer value, int offset, int length)
compareTo 在类中 ByteArrayComparablepublic byte[] toByteArray()
toByteArray 在类中 ByteArrayComparablepublic static BinaryComparator parseFrom(byte[] pbBytes) throws DeserializationException
pbBytes - A pb serialized BinaryComparator instanceBinaryComparator made from bytesDeserializationExceptiontoByteArray()Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.