if (query.getLimit() != null) {
childLimit = query.getLimit().getRowLimit();
childOffset = query.getLimit().getOffset();
}
RulePushLimit.combineLimits(limitNode, metadata, limit, offset, childLimit, childOffset);
Limit lim = new Limit((Expression)limitNode.getProperty(NodeConstants.Info.OFFSET_TUPLE_COUNT), (Expression)limitNode.getProperty(NodeConstants.Info.MAX_TUPLE_LIMIT));
lim.setImplicit(node.hasBooleanProperty(Info.IS_IMPLICIT_LIMIT));
query.setLimit(lim);
}