@Override public StatementContext getContext() { return plan.getContext(); }
@Override public StatementContext getContext() { return firstPlan.getContext(); }
@Override public MutationState updateData(MutationPlan plan) throws SQLException { return new MutationState(0, 0, plan.getContext().getConnection()); }
@Override public MutationState updateData(MutationPlan plan) throws SQLException { MutationState state = plan.execute(); plan.getContext().getConnection().commit(); return state; }
@SuppressWarnings("unchecked") @Override public MutationPlan compilePlan(PhoenixStatement stmt, Sequence.ValueOp seqAction) throws SQLException { if(!getUdfParseNodes().isEmpty()) { stmt.throwIfUnallowedUserDefinedFunctions(getUdfParseNodes()); } UpsertCompiler compiler = new UpsertCompiler(stmt, this.getOperation()); MutationPlan plan = compiler.compile(this); plan.getContext().getSequenceManager().validateSequences(seqAction); return plan; } }
@SuppressWarnings("unchecked") @Override public MutationPlan compilePlan(PhoenixStatement stmt, Sequence.ValueOp seqAction) throws SQLException { if(!getUdfParseNodes().isEmpty()) { stmt.throwIfUnallowedUserDefinedFunctions(getUdfParseNodes()); } DeleteCompiler compiler = new DeleteCompiler(stmt, this.getOperation()); MutationPlan plan = compiler.compile(this); plan.getContext().getSequenceManager().validateSequences(seqAction); return plan; } }
@Override public StatementContext getContext() { return firstPlan.getContext(); }
@Override public StatementContext getContext() { return firstPlan.getContext(); }
@Override public StatementContext getContext() { return plan.getContext(); }
Scan dataTableScan = IndexManagementUtil.newLocalStateScan(plan.getContext().getScan(), maintainers);
connection.setAutoCommit(true); MutationPlan mutationPlan = getMutationPlanForBuildingIndex(index, dataTableRef); Scan scan = mutationPlan.getContext().getScan(); Long scn = connection.getSCN(); try { if (ScanUtil.isDefaultTimeRange(scan.getTimeRange())) { if (scn == null) { scn = mutationPlan.getContext().getCurrentTime(); mutationPlan.getContext().getScan().setTimeRange(minTimestamp, scn); } catch (IOException e) { throw new SQLException(e);
TableRef tableRef = new TableRef(null, nonTxnLogicalTable, clientTimeStamp, false); MutationPlan plan = compiler.compile(Collections.singletonList(tableRef), null, cfs, null, clientTimeStamp); Scan scan = plan.getContext().getScan(); StatisticsUtil.setScanAttributes(scan, statsProps); boolean runUpdateStatsAsync = props.getBoolean(QueryServices.RUN_UPDATE_STATS_ASYNC, DEFAULT_RUN_UPDATE_STATS_ASYNC);
@Override public MutationState updateData(MutationPlan plan) throws SQLException { return new MutationState(0, 0, plan.getContext().getConnection()); }
@Override public MutationState updateData(MutationPlan plan) throws SQLException { return new MutationState(0, 0, plan.getContext().getConnection()); }
@Override public MutationState updateData(MutationPlan plan) throws SQLException { MutationState state = plan.execute(); plan.getContext().getConnection().commit(); return state; }
@Override public MutationState updateData(MutationPlan plan) throws SQLException { MutationState state = plan.execute(); plan.getContext().getConnection().commit(); return state; }
@SuppressWarnings("unchecked") @Override public MutationPlan compilePlan(PhoenixStatement stmt, Sequence.ValueOp seqAction) throws SQLException { if(!getUdfParseNodes().isEmpty()) { stmt.throwIfUnallowedUserDefinedFunctions(getUdfParseNodes()); } DeleteCompiler compiler = new DeleteCompiler(stmt, this.getOperation()); MutationPlan plan = compiler.compile(this); plan.getContext().getSequenceManager().validateSequences(seqAction); return plan; } }
@SuppressWarnings("unchecked") @Override public MutationPlan compilePlan(PhoenixStatement stmt, Sequence.ValueOp seqAction) throws SQLException { if(!getUdfParseNodes().isEmpty()) { stmt.throwIfUnallowedUserDefinedFunctions(getUdfParseNodes()); } UpsertCompiler compiler = new UpsertCompiler(stmt, this.getOperation()); MutationPlan plan = compiler.compile(this); plan.getContext().getSequenceManager().validateSequences(seqAction); return plan; } }
@SuppressWarnings("unchecked") @Override public MutationPlan compilePlan(PhoenixStatement stmt, Sequence.ValueOp seqAction) throws SQLException { if(!getUdfParseNodes().isEmpty()) { stmt.throwIfUnallowedUserDefinedFunctions(getUdfParseNodes()); } DeleteCompiler compiler = new DeleteCompiler(stmt, this.getOperation()); MutationPlan plan = compiler.compile(this); plan.getContext().getSequenceManager().validateSequences(seqAction); return plan; } }
@SuppressWarnings("unchecked") @Override public MutationPlan compilePlan(PhoenixStatement stmt, Sequence.ValueOp seqAction) throws SQLException { if(!getUdfParseNodes().isEmpty()) { stmt.throwIfUnallowedUserDefinedFunctions(getUdfParseNodes()); } UpsertCompiler compiler = new UpsertCompiler(stmt, this.getOperation()); MutationPlan plan = compiler.compile(this); plan.getContext().getSequenceManager().validateSequences(seqAction); return plan; } }