return toBytes(objVal);
}
@Override
public ColumnList columns(TridentTuple tuple) {
ColumnList cols = new ColumnList();
if(this.columnFields != null){
// TODO timestamps
for(String field : this.columnFields){
cols.addColumn(this.columnFamily, field.getBytes(), toBytes(tuple.getValueByField(field)));
}
}
if(this.counterFields != null){
for(String field : this.counterFields){
cols.addCounter(this.columnFamily, field.getBytes(), toLong(tuple.getValueByField(field)));
}
}
return cols;
}