@Override public QueryProcessor createQueryProcessor(String query, String recursionGroup, CommandContext commandContext, Object... params) throws TeiidProcessingException, TeiidComponentException { CommandContext copy = commandContext.clone(); copy.resetDeterminismLevel(true); copy.setDataObjects(null); QueryMetadataInterface metadata = commandContext.getMetadata(); if (metadata == null) { metadata = defaultMetadata; } PreparedPlan pp = getPreparedPlan(query, recursionGroup, copy, metadata); copy.pushVariableContext(new VariableContext()); PreparedStatementRequest.resolveParameterValues(pp.getReferences(), Arrays.asList(params), copy, metadata); return new QueryProcessor(pp.getPlan().clone(), copy, bufferMgr, dataMgr); }
@Override public QueryProcessor createQueryProcessor(String query, String recursionGroup, CommandContext commandContext, Object... params) throws TeiidProcessingException, TeiidComponentException { CommandContext copy = commandContext.clone(); copy.resetDeterminismLevel(true); copy.setDataObjects(null); QueryMetadataInterface metadata = commandContext.getMetadata(); if (metadata == null) { metadata = defaultMetadata; } PreparedPlan pp = getPreparedPlan(query, recursionGroup, copy, metadata); copy.pushVariableContext(new VariableContext()); PreparedStatementRequest.resolveParameterValues(pp.getReferences(), Arrays.asList(params), copy, metadata); return new QueryProcessor(pp.getPlan().clone(), copy, bufferMgr, dataMgr); }
@Override public QueryProcessor createQueryProcessor(String query, String recursionGroup, CommandContext commandContext, Object... params) throws TeiidProcessingException, TeiidComponentException { CommandContext copy = commandContext.clone(); copy.resetDeterminismLevel(true); copy.setDataObjects(null); QueryMetadataInterface metadata = commandContext.getMetadata(); if (metadata == null) { metadata = defaultMetadata; } PreparedPlan pp = getPreparedPlan(query, recursionGroup, copy, metadata); copy.pushVariableContext(new VariableContext()); PreparedStatementRequest.resolveParameterValues(pp.getReferences(), Arrays.asList(params), copy, metadata); return new QueryProcessor(pp.getPlan().clone(), copy, bufferMgr, dataMgr); }