private static boolean isRemovableRel(OrderedRel node) { return node.canBeDropped(); }
public RelCollation getCollation() { if (sort != null) { return sort.getCollation(); } return null; }
public List<RelCollation> getCollationList() { if (sort != null) { return sort.getCollationList(); } return null; }
public static RexNode getFetch(OrderedRel sort) { return sort.getFetch(); }
public static RexNode getOffset(OrderedRel sort) { return sort.getOffset(); }
public static boolean generateLimit(OrderedRel sort) { RexNode fetchNode = sort.getFetch(); int fetchValue = (fetchNode == null) ? -1 : RexLiteral.intValue(fetchNode); return fetchValue >=0; }