本文整理汇总了Java中org.apache.tajo.engine.planner.logical.StoreTableNode类的典型用法代码示例。如果您正苦于以下问题:Java StoreTableNode类的具体用法?Java StoreTableNode怎么用?Java StoreTableNode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StoreTableNode类属于org.apache.tajo.engine.planner.logical包,在下文中一共展示了StoreTableNode类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: finalizeStats
import org.apache.tajo.engine.planner.logical.StoreTableNode; //导入依赖的package包/类
/**
* It computes all stats and sets the intermediate result.
*/
private void finalizeStats() {
TableStats[] statsArray;
if (block.hasUnion()) {
statsArray = computeStatFromUnionBlock(this);
} else {
statsArray = computeStatFromTasks();
}
DataChannel channel = masterPlan.getOutgoingChannels(getId()).get(0);
// get default or store type
CatalogProtos.StoreType storeType = CatalogProtos.StoreType.CSV; // default setting
// if store plan (i.e., CREATE or INSERT OVERWRITE)
StoreTableNode storeTableNode = PlannerUtil.findTopNode(getBlock().getPlan(), NodeType.STORE);
if (storeTableNode != null) {
storeType = storeTableNode.getStorageType();
}
schema = channel.getSchema();
meta = CatalogUtil.newTableMeta(storeType, new Options());
inputStatistics = statsArray[0];
resultStatistics = statsArray[1];
}
示例2: HashBasedColPartitionStoreExec
import org.apache.tajo.engine.planner.logical.StoreTableNode; //导入依赖的package包/类
public HashBasedColPartitionStoreExec(TaskAttemptContext context, StoreTableNode plan, PhysicalExec child)
throws IOException {
super(context, plan, child);
}
示例3: SortBasedColPartitionStoreExec
import org.apache.tajo.engine.planner.logical.StoreTableNode; //导入依赖的package包/类
public SortBasedColPartitionStoreExec(TaskAttemptContext context, StoreTableNode plan, PhysicalExec child)
throws IOException {
super(context, plan, child);
}