Class OpTopN

  • All Implemented Interfaces:
    org.apache.jena.atlas.io.Printable, Op, Named, PrintSerializable

    public class OpTopN
    extends OpModifier
    Top N from a stream of items - for small N, better than ORDER BY + LIMIT N
    • Constructor Detail

      • OpTopN

        public OpTopN​(Op subOp,
                      int N,
                      java.util.List<SortCondition> conditions)
    • Method Detail

      • getConditions

        public java.util.List<SortCondition> getConditions()
      • getLimit

        public int getLimit()
      • getName

        public java.lang.String getName()
      • visit

        public void visit​(OpVisitor opVisitor)
      • copy

        public Op1 copy​(Op subOp)
        Specified by:
        copy in class Op1
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class OpBase