16 package com.cloudera.impala.planner;
20 import com.cloudera.impala.thrift.TDataSink;
21 import com.cloudera.impala.thrift.TDataSinkType;
22 import com.cloudera.impala.thrift.TExplainLevel;
23 import com.cloudera.impala.thrift.TTableSink;
24 import com.cloudera.impala.thrift.TTableSinkType;
37 TExplainLevel explainLevel) {
38 StringBuilder output =
new StringBuilder();
39 output.append(prefix +
"WRITE TO HBASE table=" + targetTable_.getFullName() +
"\n");
40 if (explainLevel.ordinal() >= TExplainLevel.EXTENDED.ordinal()) {
41 output.append(PrintUtils.printHosts(detailPrefix, fragment_.getNumNodes()));
45 return output.toString();
50 TDataSink result =
new TDataSink(TDataSinkType.TABLE_SINK);
51 TTableSink tTableSink =
53 result.table_sink = tTableSink;
HBaseTableSink(Table targetTable)
String getExplainString(String prefix, String detailPrefix, TExplainLevel explainLevel)