com.hp.hpl.jena.sparql.algebra.op
Class OpTopN

java.lang.Object
  extended by com.hp.hpl.jena.sparql.util.PrintSerializableBase
      extended by com.hp.hpl.jena.sparql.algebra.op.OpBase
          extended by com.hp.hpl.jena.sparql.algebra.op.Op1
              extended by com.hp.hpl.jena.sparql.algebra.op.OpModifier
                  extended by com.hp.hpl.jena.sparql.algebra.op.OpTopN
All Implemented Interfaces:
Op, Named, PrintSerializable, Printable

public class OpTopN
extends OpModifier

Top N from a stream of items - for small N, better than ORDER BY + LIMIT N


Constructor Summary
OpTopN(Op subOp, int N, List<SortCondition> conditions)
           
 
Method Summary
 Op apply(Transform transform, Op subOp)
           
 Op copy(Op subOp)
           
 boolean equalTo(Op other, NodeIsomorphismMap labelMap)
           
 List<SortCondition> getConditions()
           
 int getLimit()
           
 String getName()
           
 int hashCode()
           
 void visit(OpVisitor opVisitor)
           
 
Methods inherited from class com.hp.hpl.jena.sparql.algebra.op.OpModifier
removeModifiers
 
Methods inherited from class com.hp.hpl.jena.sparql.algebra.op.Op1
getSubOp
 
Methods inherited from class com.hp.hpl.jena.sparql.algebra.op.OpBase
equals, output, output
 
Methods inherited from class com.hp.hpl.jena.sparql.util.PrintSerializableBase
toString, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.hp.hpl.jena.sparql.util.PrintSerializable
toString
 

Constructor Detail

OpTopN

public OpTopN(Op subOp,
              int N,
              List<SortCondition> conditions)
Method Detail

getConditions

public List<SortCondition> getConditions()

getLimit

public int getLimit()

getName

public String getName()

visit

public void visit(OpVisitor opVisitor)

copy

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

apply

public Op apply(Transform transform,
                Op subOp)
Specified by:
apply in class Op1

hashCode

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

equalTo

public boolean equalTo(Op other,
                       NodeIsomorphismMap labelMap)
Specified by:
equalTo in interface Op
Specified by:
equalTo in class OpBase


Licenced under the Apache License, Version 2.0