示例#1
0
  /**
   * Returns the value for a cell given the qualified column as a string
   *
   * @param col qualified column
   * @return value of the cell
   */
  public byte[] getValue(String col) {
    byte[] cf = new byte[0];
    byte[] cq = new byte[0];

    ColumnNameSplit.split(col, cf, cq);

    return getValue(cf, cq);
  }
示例#2
0
  /**
   * Returns true if the Row contains this qualified column
   *
   * @param col column family + qualified column
   * @return true if the Row contains this qualified column
   */
  public boolean containsCol(String col) {
    byte[] col_family = new byte[0];
    byte[] col_qualifier = new byte[0];
    ColumnNameSplit.split(col, col_family, col_qualifier);

    // map shd have the cf and cq
    if (containsColFamily(col_family))
      if (mColFamilyToCol.get(col_family).containsKey(col_qualifier)) return true;

    return false;
  }