@Override public void apply(ASTBase target) { ((QueryBase)target).setSlice(new SliceNode(offset, limit)); }};
@Override public void apply(ASTBase target) { ((QueryBase)target).setSlice(new SliceNode(offset, limit)); }};
@Override public void apply(ASTBase target) { ((QueryBase)target).setSlice(new SliceNode(offset, limit)); }};
queryRoot.setSlice(slice);
queryRoot.setSlice(slice);
/** * Handle an optional LIMIT/OFFSET. * * @param astQuery * The AST query node. This is an abstract base class. There are * concrete instances for SELECT, ASK, DESCRIBE, and CONSTRUCT. * @param queryRoot * The bigdata query root. */ private void handleSlice(final ASTQuery astQuery, final QueryBase queryRoot) { final ASTLimit theLimit = astQuery.getLimit(); final ASTOffset theOffset = astQuery.getOffset(); if (theLimit != null || theOffset != null) { final SliceNode theSlice = new SliceNode(); if (theLimit != null) theSlice.setLimit(theLimit.getValue()); if (theOffset != null) theSlice.setOffset(theOffset.getValue()); queryRoot.setSlice(theSlice); } }
/** * Handle an optional LIMIT/OFFSET. * * @param astQuery * The AST query node. This is an abstract base class. There are * concrete instances for SELECT, ASK, DESCRIBE, and CONSTRUCT. * @param queryRoot * The bigdata query root. */ private void handleSlice(final ASTQuery astQuery, final QueryBase queryRoot) { final ASTLimit theLimit = astQuery.getLimit(); final ASTOffset theOffset = astQuery.getOffset(); if (theLimit != null || theOffset != null) { final SliceNode theSlice = new SliceNode(); if (theLimit != null) theSlice.setLimit(theLimit.getValue()); if (theOffset != null) theSlice.setOffset(theOffset.getValue()); queryRoot.setSlice(theSlice); } }