Hi,

    

          
    
        I have a table with 2 column families. The column 'family1' 
has no qualifiers, and the row 'x' has the value \xFF. If I do the 
following

HTable htable = new HTable(config, TABLE_NAME);
Get get = new Get(Bytes.toBytes("x"));
get.addFamily(Bytes.toBytes("family1"));
if(htable.get(get).getValue(Bytes.toBytes("family1"), Bytes.toBytes("")) == 
null)
  log.debug("Value is null!");


the method getValue() returns not null (as expected). But if I add other family:

HTable htable = new HTable(config, TABLE_NAME);
Get get = new Get(Bytes.toBytes("x"));
get.addFamily(Bytes.toBytes("family1"));
get.addFamily(Bytes.toBytes("family2"));
if(htable.get(get).getValue(Bytes.toBytes("family1"), Bytes.toBytes("")) == 
null)
  log.debug("Value is null!");


I get a null. Why does this happen?                                       

Reply via email to