/** * Return a completly separated copy of this function. The copy does no longer share any changeable objects with the * original function. * * @return a copy of this function. */ public Expression getInstance() { final ItemAvgFunction function = (ItemAvgFunction) super.getInstance(); function.sum = function.sum.clone(); function.itemCount = function.itemCount.clone(); function.lastGroupSequenceNumber = 0; return function; }
public Object clone() { try { final ItemMinFunction function = (ItemMinFunction) super.clone(); function.min = min.clone(); return function; } catch ( CloneNotSupportedException e ) { throw new IllegalStateException(); } }
public Object clone() { try { final ItemCountFunction clone = (ItemCountFunction) super.clone(); clone.count = count.clone(); return clone; } catch ( CloneNotSupportedException e ) { throw new IllegalStateException(); } } }
public Object clone() { try { final ItemSumFunction clone = (ItemSumFunction) super.clone(); clone.sum = sum.clone(); return clone; } catch ( CloneNotSupportedException e ) { throw new IllegalStateException(); } }
/** * Return a completly separated copy of this function. The copy does no longer share any changeable objects with the * original function. * * @return a copy of this function. */ public Expression getInstance() { final ItemMinFunction function = (ItemMinFunction) super.getInstance(); function.min = min.clone(); function.lastGroupSequenceNumber = 0; return function; }
/** * Return a completly separated copy of this function. The copy does no longer share any changeable objects with the * original function. * * @return a copy of this function. */ public Expression getInstance() { final ItemSumFunction function = (ItemSumFunction) super.getInstance(); function.sum = sum.clone(); function.lastGroupSequenceNumber = 0; return function; }
public ItemCountFunction getInstance() { final ItemCountFunction function = (ItemCountFunction) super.getInstance(); function.count = count.clone(); function.lastGroupSequenceNumber = 0; return function; }
/** * Return a completly separated copy of this function. The copy does no longer share any changeable objects with the * original function. * * @return a copy of this function. */ public Expression getInstance() { final CountDistinctFunction expression = (CountDistinctFunction) super.getInstance(); expression.values = values.clone(); expression.lastGroupSequenceNumber = 0; return expression; }
/** * Return a completly separated copy of this function. The copy does no longer share any changeable objects with the * original function. * * @return a copy of this function. */ public Expression getInstance() { final ItemMaxFunction function = (ItemMaxFunction) super.getInstance(); function.max = max.clone(); function.lastGroupSequenceNumber = 0; return function; }
public Object clone() { try { final ItemMaxFunction function = (ItemMaxFunction) super.clone(); function.max = max.clone(); return function; } catch ( CloneNotSupportedException e ) { throw new IllegalStateException(); } }
/** * Clones the expression. The expression should be reinitialized after the cloning. * <P> * Expressions maintain no state, cloning is done at the beginning of the report processing to disconnect the * expression from any other object space. * * @return a clone of this expression. * @throws CloneNotSupportedException * this should never happen. */ public Object clone() throws CloneNotSupportedException { final CountDistinctFunction o = (CountDistinctFunction) super.clone(); o.values = values.clone(); return o; }
public Object clone() throws CloneNotSupportedException { final TotalGroupSumFunction o = (TotalGroupSumFunction) super.clone(); o.stateSequence = new StateSequence<>( stateSequence.getKeys().size() ); if ( result != null ) { o.result = result.clone(); } for ( int i = 0; i < stateSequence.getKeys().size(); i++ ) { final ReportStateKey reportStateKey = stateSequence.getKeys().get( i ); if ( reportStateKey.equals( globalStateKey ) || reportStateKey.equals( currentGroupKey ) ) { o.stateSequence.add( reportStateKey, o.result ); } else { o.stateSequence.add( reportStateKey, stateSequence.getResult( i ) ); } } return o; }
public Object clone() throws CloneNotSupportedException { final TotalItemCountFunction o = (TotalItemCountFunction) super.clone(); o.stateSequence = new StateSequence<>( stateSequence.getKeys().size() ); if ( result != null ) { o.result = result.clone(); } for ( int i = 0; i < stateSequence.getKeys().size(); i++ ) { final ReportStateKey reportStateKey = stateSequence.getKeys().get( i ); if ( reportStateKey.equals( globalStateKey ) || reportStateKey.equals( currentGroupKey ) ) { o.stateSequence.add( reportStateKey, o.result ); } else { o.stateSequence.add( reportStateKey, stateSequence.getResult( i ) ); } } return o; }