@Override public boolean filter(DataSetGroup op) { ColumnGroup cg = op.getColumnGroup(); if (cg == null) { throw new RuntimeException("Group ops require a pivot column to be specified."); } if (!op.isSelect()) { throw new RuntimeException("Group intervals not specified."); } // Avoid duplicates for (DataSetGroup next : lookupCurrent.getOperationList(DataSetGroup.class)) { if (op.equals(next)) { return false; } } // The interval selection op. must be added right before the first existing group op. DataSetGroup clone = op.cloneInstance(); //clone.getGroupFunctions().clear(); int idx = lookupCurrent.getFirstGroupOpIndex(0, null, null); _filter(idx < 0 ? 0 : idx, clone, false); return true; }
@Override public boolean filter(DataSetGroup op) { ColumnGroup cg = op.getColumnGroup(); if (cg == null) { throw new RuntimeException("Group ops require a pivot column to be specified."); } if (!op.isSelect()) { throw new RuntimeException("Group intervals not specified."); } // Avoid duplicates for (DataSetGroup next : lookupCurrent.getOperationList(DataSetGroup.class)) { if (op.equals(next)) { return false; } } // The interval selection op. must be added right before the first existing group op. DataSetGroup clone = op.cloneInstance(); //clone.getGroupFunctions().clear(); int idx = lookupCurrent.getFirstGroupOpIndex(0, null, null); _filter(idx < 0 ? 0 : idx, clone, false); return true; }
int groupIdx = lookup.getFirstGroupOpIndex(0, null, false); if (groupIdx != -1) groupOp = lookup.getOperation(groupIdx);
int groupIdx = lookup.getFirstGroupOpIndex(0, null, false); if (groupIdx != -1) groupOp = lookup.getOperation(groupIdx);