hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars George <lars.geo...@gmail.com>
Subject Stargate: ScannerModel
Date Mon, 23 May 2011 13:00:22 GMT
Hi,

I just write a demo for the RemoteHTable and noticed the
Scan.addColumn(family, qualifier) not being used. In the ScannerModel
it does this:

    byte[][] families = scan.getFamilies();
    if (families != null) {
      for (byte[] column: families) {
        model.addColumn(column);
      }
    }

where addColumn expects

  /**
   * Add a column to the column set
   * @param column the column name, as &lt;column&gt;(:&lt;qualifier&gt;)?
   */
  public void addColumn(byte[] column) {
    columns.add(column);
  }

The code inserts just the column qualifier though, not both. And even
so, why is it not omitting everything then, but includes it all?

Lars

Mime
View raw message