void populate(CommandContext context, boolean data) { Set<Object> objects = null; if (data) { objects = context.getDataObjects(); } else { objects = context.getPlanningObjects(); } if (objects == null || objects.isEmpty()) { this.objectsAccessed = Collections.emptySet(); } else { this.objectsAccessed = objects; } }
void populate(CommandContext context, boolean data) { Set<Object> objects = null; if (data) { objects = context.getDataObjects(); } else { objects = context.getPlanningObjects(); } if (objects == null || objects.isEmpty()) { this.objectsAccessed = Collections.emptySet(); } else { this.objectsAccessed = objects; } }
void populate(CommandContext context, boolean data) { Set<Object> objects = null; if (data) { objects = context.getDataObjects(); } else { objects = context.getPlanningObjects(); } if (objects == null || objects.isEmpty()) { this.objectsAccessed = Collections.emptySet(); } else { this.objectsAccessed = objects; } }
@Override protected TupleSource createTupleSource() throws TeiidComponentException, TeiidProcessingException { TempTableStore tts = contextStore; TempTable tt = tts.getOrCreateTempTable(tableName, query, bufferManager, true, false, context, group); if (context.getDataObjects() != null) { Object id = RelationalPlanner.getTrackableGroup(group, context.getMetadata()); if (id != null) { context.accessedDataObject(id); } } return tt.createTupleSource(query.getProjectedSymbols(), query.getCriteria(), query.getOrderBy()); } };
@Override protected TupleSource createTupleSource() throws TeiidComponentException, TeiidProcessingException { TempTableStore tts = contextStore; TempTable tt = tts.getOrCreateTempTable(tableName, query, bufferManager, true, false, context, group); if (context.getDataObjects() != null) { Object id = RelationalPlanner.getTrackableGroup(group, context.getMetadata()); if (id != null) { context.accessedDataObject(id); } } if (context.isParallel() && query.getCriteria() == null && query.getOrderBy() != null && tt.getRowCount() > MIN_ASYNCH_SIZE) { return new AsyncTupleSource(new Callable<TupleSource>() { @Override public TupleSource call() throws Exception { synchronized (this) { return tt.createTupleSource(query.getProjectedSymbols(), query.getCriteria(), query.getOrderBy()); } } }, context); } return tt.createTupleSource(query.getProjectedSymbols(), query.getCriteria(), query.getOrderBy()); } };
@Override protected TupleSource createTupleSource() throws TeiidComponentException, TeiidProcessingException { TempTableStore tts = contextStore; TempTable tt = tts.getOrCreateTempTable(tableName, query, bufferManager, true, false, context, group); if (context.getDataObjects() != null) { Object id = RelationalPlanner.getTrackableGroup(group, context.getMetadata()); if (id != null) { context.accessedDataObject(id); } } if (context.isParallel() && query.getCriteria() == null && query.getOrderBy() != null && tt.getRowCount() > MIN_ASYNCH_SIZE) { return new AsyncTupleSource(new Callable<TupleSource>() { @Override public TupleSource call() throws Exception { synchronized (this) { return tt.createTupleSource(query.getProjectedSymbols(), query.getCriteria(), query.getOrderBy()); } } }, context); } return tt.createTupleSource(query.getProjectedSymbols(), query.getCriteria(), query.getOrderBy()); } };
if (context.getDataObjects() != null) { QueryMetadataInterface metadata = context.getMetadata(); accessedGroups = GroupCollectorVisitor.getGroupsIgnoreInlineViews(command, false);
if (context.getDataObjects() != null) { QueryMetadataInterface metadata = context.getMetadata(); accessedGroups = GroupCollectorVisitor.getGroupsIgnoreInlineViews(command, false);
if (context.getDataObjects() != null) { QueryMetadataInterface metadata = context.getMetadata(); accessedGroups = GroupCollectorVisitor.getGroupsIgnoreInlineViews(command, false);