|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.filter.SubstringComparator
public class SubstringComparator
This comparator is for use with ColumnValueFilter, for filtering based on the value of a given column. Use it to test if a given substring appears in a cell value in the column. The comparison is case insensitive.
Only EQUAL or NOT_EQUAL tests are valid with this comparator.
For example:
ColumnValueFilter cvf = new ColumnValueFilter("col", ColumnValueFilter.CompareOp.EQUAL, new SubstringComparator("substr"));
Constructor Summary | |
---|---|
SubstringComparator()
Nullary constructor for Writable |
|
SubstringComparator(String substr)
Constructor |
Method Summary | |
---|---|
int |
compareTo(byte[] value)
|
void |
readFields(DataInput in)
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubstringComparator()
public SubstringComparator(String substr)
substr
- the substringMethod Detail |
---|
public int compareTo(byte[] value)
compareTo
in interface Comparable<byte[]>
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |