本文整理匯總了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);
}