本文整理匯總了Java中org.voltdb.planner.AbstractParsedStmt類的典型用法代碼示例。如果您正苦於以下問題:Java AbstractParsedStmt類的具體用法?Java AbstractParsedStmt怎麽用?Java AbstractParsedStmt使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
AbstractParsedStmt類屬於org.voltdb.planner包,在下文中一共展示了AbstractParsedStmt類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: StmtSubqueryScan
import org.voltdb.planner.AbstractParsedStmt; //導入依賴的package包/類
public StmtSubqueryScan(AbstractParsedStmt subqueryStmt, String tableAlias) {
super(tableAlias);
m_subqueryStmt = subqueryStmt;
// A union or other set operator uses the output columns of its left-most leaf child statement.
while (subqueryStmt instanceof ParsedUnionStmt) {
assert( ! ((ParsedUnionStmt)subqueryStmt).m_children.isEmpty());
subqueryStmt = ((ParsedUnionStmt)subqueryStmt).m_children.get(0);
}
assert (subqueryStmt instanceof ParsedSelectStmt);
int i = 0;
for (ParsedColInfo col: ((ParsedSelectStmt)subqueryStmt).displayColumns()) {
String colAlias = col.alias == null? col.columnName : col.alias;
SchemaColumn scol = new SchemaColumn(col.tableName, col.tableAlias, col.columnName, col.alias, col.expression);
m_outputColumnList.add(scol);
m_outputColumnIndexMap.put(colAlias, i);
i++;
}
}
示例2: applyAll
import org.voltdb.planner.AbstractParsedStmt; //導入依賴的package包/類
public static void applyAll(CompiledPlan plan, AbstractParsedStmt parsedStmt)
{
for (int i = 0; i < optimizations.size(); i++) {
MicroOptimization opt = optimizations.get(i);
opt.apply(plan, parsedStmt);
}
}
示例3: apply
import org.voltdb.planner.AbstractParsedStmt; //導入依賴的package包/類
void apply(CompiledPlan plan, AbstractParsedStmt parsedStmt)
{
try {
m_parsedStmt = parsedStmt;
AbstractPlanNode planGraph = plan.rootPlanGraph;
planGraph = recursivelyApply(planGraph);
plan.rootPlanGraph = planGraph;
}
finally {
// Avoid leaking a long-term reference from static optimizations
// to a large parsed statement structure.
m_parsedStmt = null;
}
}
示例4: getSubqueryStmt
import org.voltdb.planner.AbstractParsedStmt; //導入依賴的package包/類
public AbstractParsedStmt getSubqueryStmt() {
return m_subqueryStmt;
}