if (multiGroup) { if (lastRow != null) { boolean samePartition = GroupingNode.sameGroup(partitionIndexes, tuple, lastRow) == -1; if (!aggs.isEmpty() && (!samePartition || GroupingNode.sameGroup(orderIndexes, tuple, lastRow) != -1)) { saveValues(specIndex, aggs, groupId, samePartition, false); groupId++;
if (multiGroup) { if (lastRow != null) { boolean samePartition = GroupingNode.sameGroup(partitionIndexes, tuple, lastRow) == -1; if (!samePartition || (!info.isUnboundedFollowing() && ((info.windowFrame != null && info.windowFrame.getMode() == FrameMode.ROWS) || GroupingNode.sameGroup(orderIndexes, tuple, lastRow) != -1))) { saveValues(specIndex, aggs, groupId, samePartition); groupId++;
groupId++; } else if (info.windowFrame.getMode() == FrameMode.ROWS || GroupingNode.sameGroup(orderIndexes, tuple, lastRow) != -1) { groupId++; } else { if (GroupingNode.sameGroup(partitionIndexes, tuple, possibleEnd) == -1) { l = m + 1; } else { for (long i = end + 1; i <= endPartition; i++) { List<?> possiblePeer = sorted.getBatch(i).getTuple(i); if (GroupingNode.sameGroup(orderIndexes, tuple, possiblePeer) != -1) { break;
if (multiGroup) { if (lastRow != null) { boolean samePartition = GroupingNode.sameGroup(partitionIndexes, tuple, lastRow) == -1; if (!samePartition || (!info.isUnboundedFollowing() && ((info.windowFrame != null && info.windowFrame.getMode() == FrameMode.ROWS) || GroupingNode.sameGroup(orderIndexes, tuple, lastRow) != -1))) { saveValues(specIndex, aggs, groupId, samePartition); groupId++;
groupId++; } else if (info.windowFrame.getMode() == FrameMode.ROWS || GroupingNode.sameGroup(orderIndexes, tuple, lastRow) != -1) { groupId++; } else { if (GroupingNode.sameGroup(partitionIndexes, tuple, possibleEnd) == -1) { l = m + 1; } else { for (long i = end + 1; i <= endPartition; i++) { List<?> possiblePeer = sorted.getBatch(i).getTuple(i); if (GroupingNode.sameGroup(orderIndexes, tuple, possiblePeer) != -1) { break;
int colDiff = sameGroup(indexes, currentGroupTuple, lastRow); if (colDiff != -1) {
int colDiff = sameGroup(indexes, currentGroupTuple, lastRow); if (colDiff != -1) {
int colDiff = sameGroup(indexes, currentGroupTuple, lastRow); if (colDiff != -1) {