@Test public void testClone() { LimitNode node = new LimitNode(1, new Constant(new Integer(-1)), null); LimitNode clone = (LimitNode)node.clone(); assertEquals(node.getLimitExpr(), clone.getLimitExpr()); assertNull(clone.getOffsetExpr()); node = new LimitNode(1, null, new Constant(new Integer(-1))); clone = (LimitNode)node.clone(); assertNull(clone.getLimitExpr()); }
public Object clone() { LimitNode node = new LimitNode(getID(), limitExpr, offsetExpr); node.implicit = this.implicit; copyTo(node); node.rowCounter = this.rowCounter; return node; }
LimitNode extends RelationalNode { public Object clone() { LimitNode node = new LimitNode(getID(), limitExpr, offsetExpr); node.implicit = this.implicit; copyTo(node); node.rowCounter = this.rowCounter; return node; } }
LimitNode extends RelationalNode { public Object clone() { LimitNode node = new LimitNode(getID(), limitExpr, offsetExpr); node.implicit = this.implicit; copyTo(node); node.rowCounter = this.rowCounter; return node; } LimitNode(int nodeID, Expression limitExpr, Expression offsetExpr); }
LimitNode extends RelationalNode { public Object clone() { LimitNode node = new LimitNode(getID(), limitExpr, offsetExpr); node.implicit = this.implicit; copyTo(node); node.rowCounter = this.rowCounter; return node; } LimitNode(int nodeID, Expression limitExpr, Expression offsetExpr); void setImplicit(boolean implicit); boolean isImplicit(); void open(); void reset(); PlanNode getDescriptionProperties(); Object clone(); Expression getLimitExpr(); Expression getOffsetExpr(); int getLimit(); int getOffset(); @Override boolean hasBuffer(); @Override TupleBuffer getBufferDirect(int maxRows); }
LimitNode extends RelationalNode { public Object clone() { LimitNode node = new LimitNode(getID(), limitExpr, offsetExpr); node.implicit = this.implicit; copyTo(node); node.rowCounter = this.rowCounter; return node; } LimitNode(int nodeID, Expression limitExpr, Expression offsetExpr); void setImplicit(boolean implicit); boolean isImplicit(); void open(); void reset(); PlanNode getDescriptionProperties(); Object clone(); Expression getLimitExpr(); Expression getOffsetExpr(); int getLimit(); int getOffset(); @Override boolean hasBuffer(); @Override TupleBuffer getBufferDirect(int maxRows);  }