Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> ISSUE with Filter Hbase Table using SingleColumnValueFilter


Copy link to this message
-
ISSUE with Filter Hbase Table using SingleColumnValueFilter
Dear developer

    I am looking for a solution where i can applu the *SingleColumnValueFilter
to select only the value  which i will mention in the value parameter not
other then the value which i will pass.*
*  Exxample:*

SingleColumnValueFilter colValFilter = new
SingleColumnValueFilter(Bytes.toBytes("cf1"), Bytes.toBytes("code")
            , CompareFilter.CompareOp.EQUAL, new
SubstringComparator("SAMIR_AL_START"));
    colValFilter.setFilterIfMissing(false);
    filters.add(colValFilter);

Note: I want only the  "*SAMIR_AL_START"  value not like "XYZ_AL_START"
also, I mean I want exact match value not likly.*

*   Right now it is giving both "SAMIR_AL_START" along with "XYZ_AL_START"*
*Regards,*
*samir.*
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB