@Override public void initialize(CommandContext context, BufferManager bufferManager, ProcessorDataManager dataMgr) { super.initialize(context, bufferManager, dataMgr); if (this.combinedElementMap == null) { // Create element lookup map for evaluating project expressions List combinedElements = new ArrayList(getChildren()[0].getElements()); combinedElements.addAll(getChildren()[1].getElements()); this.combinedElementMap = createLookupMap(combinedElements); this.projectionIndexes = getProjectionIndexes(combinedElementMap, getElements()); } }
@Override public void initialize(CommandContext context, BufferManager bufferManager, ProcessorDataManager dataMgr) { super.initialize(context, bufferManager, dataMgr); if (this.combinedElementMap == null) { // Create element lookup map for evaluating project expressions List combinedElements = new ArrayList(getChildren()[0].getElements()); combinedElements.addAll(getChildren()[1].getElements()); this.combinedElementMap = createLookupMap(combinedElements); this.projectionIndexes = getProjectionIndexes(combinedElementMap, getElements()); } }
@Override public void initialize(CommandContext context, BufferManager bufferManager, ProcessorDataManager dataMgr) { super.initialize(context, bufferManager, dataMgr); if (this.combinedElementMap == null) { // Create element lookup map for evaluating project expressions List combinedElements = new ArrayList(getChildren()[0].getElements()); combinedElements.addAll(getChildren()[1].getElements()); this.combinedElementMap = createLookupMap(combinedElements); this.projectionIndexes = getProjectionIndexes(combinedElementMap, getElements()); } }
public void initialize(JoinNode joinNode) { this.joinNode = joinNode; this.leftSource = new SourceState(joinNode.getChildren()[0], joinNode.getLeftExpressions()); this.leftSource.markExpressionsDistinct(this.joinNode.isLeftDistinct()); this.rightSource = new SourceState(joinNode.getChildren()[1], joinNode.getRightExpressions()); this.rightSource.markExpressionsDistinct(this.joinNode.isRightDistinct()); }
public void initialize(JoinNode joinNode) { this.joinNode = joinNode; this.leftSource = new SourceState(joinNode.getChildren()[0], joinNode.getLeftExpressions()); this.leftSource.markExpressionsDistinct(this.joinNode.isLeftDistinct()); this.rightSource = new SourceState(joinNode.getChildren()[1], joinNode.getRightExpressions()); this.rightSource.markExpressionsDistinct(this.joinNode.isRightDistinct()); }
public void initialize(JoinNode joinNode) { this.joinNode = joinNode; this.leftSource = new SourceState(joinNode.getChildren()[0], joinNode.getLeftExpressions()); this.leftSource.markExpressionsDistinct(this.joinNode.isLeftDistinct()); this.rightSource = new SourceState(joinNode.getChildren()[1], joinNode.getRightExpressions()); this.rightSource.markExpressionsDistinct(this.joinNode.isRightDistinct()); }
private void declineSort() { RelationalNode parent = this.getParent(); RelationalNode child = this; while (parent != null && !(parent instanceof JoinNode)) { child = parent; if (parent instanceof SortNode) { return; } parent = parent.getParent(); } if (parent != null) { JoinNode joinNode = (JoinNode)parent; if (joinNode.getJoinStrategy() instanceof MergeJoinStrategy) { MergeJoinStrategy mjs = (MergeJoinStrategy)joinNode.getJoinStrategy(); if (joinNode.getChildren()[0] == child) { mjs.setProcessingSortLeft(true); } else { mjs.setProcessingSortRight(true); } } } sort = false; }
private void declineSort() { RelationalNode parent = this.getParent(); RelationalNode child = this; while (parent != null && !(parent instanceof JoinNode)) { child = parent; parent = parent.getParent(); } if (parent != null) { JoinNode joinNode = (JoinNode)parent; if (joinNode.getJoinStrategy() instanceof MergeJoinStrategy) { MergeJoinStrategy mjs = (MergeJoinStrategy)joinNode.getJoinStrategy(); if (joinNode.getChildren()[0] == child) { mjs.setProcessingSortLeft(true); } else { mjs.setProcessingSortRight(true); } } } sort = false; }
private void declineSort() { RelationalNode parent = this.getParent(); RelationalNode child = this; while (parent != null && !(parent instanceof JoinNode)) { child = parent; if (parent instanceof SortNode) { return; } parent = parent.getParent(); } if (parent != null) { JoinNode joinNode = (JoinNode)parent; if (joinNode.getJoinStrategy() instanceof MergeJoinStrategy) { MergeJoinStrategy mjs = (MergeJoinStrategy)joinNode.getJoinStrategy(); if (joinNode.getChildren()[0] == child) { mjs.setProcessingSortLeft(true); } else { mjs.setProcessingSortRight(true); } } } sort = false; }