@InterfaceAudience.Public public class SubstringComparator extends ByteArrayComparable
Only EQUAL or NOT_EQUAL tests are valid with this comparator.
For example:
SingleColumnValueFilter scvf =
new SingleColumnValueFilter("col", CompareOp.EQUAL,
new SubstringComparator("substr"));
| 构造器和说明 |
|---|
SubstringComparator(String substr)
Constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
compareTo(byte[] value,
int offset,
int length) |
byte[] |
getValue() |
static SubstringComparator |
parseFrom(byte[] pbBytes) |
byte[] |
toByteArray() |
compareTo, compareTopublic SubstringComparator(String substr)
substr - the substringpublic byte[] getValue()
getValue 在类中 ByteArrayComparablepublic int compareTo(byte[] value,
int offset,
int length)
compareTo 在类中 ByteArrayComparablepublic byte[] toByteArray()
toByteArray 在类中 ByteArrayComparablepublic static SubstringComparator parseFrom(byte[] pbBytes) throws DeserializationException
pbBytes - A pb serialized SubstringComparator instanceSubstringComparator made from bytesDeserializationExceptiontoByteArray()Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.