示例#1
0
  @Override
  public void put(DboTableMeta colFamily, byte[] rowKey, List<Column> columns) {
    session.put(colFamily, rowKey, columns);
    RowHolder<Row> currentRow = fromCache(colFamily, rowKey);
    if (currentRow == null) {
      currentRow = new RowHolder<Row>(rowKey);
    }

    Row value = currentRow.getValue();
    if (value == null) value = rowProvider.get();

    value.setKey(rowKey);
    value.addColumns(columns);
    cacheRow(colFamily, rowKey, value);
  }