15 package com.cloudera.impala.util;
18 import com.cloudera.impala.thrift.TColumnValue;
19 import com.cloudera.impala.thrift.TResultRow;
25 private final TResultRow
row_ =
new TResultRow();
28 TColumnValue colVal =
new TColumnValue();
29 colVal.setLong_val(val);
30 row_.addToColVals(colVal);
35 TColumnValue colVal =
new TColumnValue();
36 colVal.setDouble_val(val);
37 row_.addToColVals(colVal);
42 TColumnValue colVal =
new TColumnValue();
43 colVal.setString_val(val);
44 row_.addToColVals(colVal);
49 TColumnValue colVal =
new TColumnValue();
50 colVal.setString_val(PrintUtils.printBytes(val));
51 row_.addToColVals(colVal);
60 public TResultRow
get() {
return row_; }
TResultRowBuilder reset()
TResultRowBuilder add(double val)
TResultRowBuilder add(long val)
TResultRowBuilder addBytes(long val)
TResultRowBuilder add(String val)