return b.getMemorySize();
long initialSizeEstimate = intermediateDB.getMemorySize(); DataBag newIntermediateDB = mBagFactory.newDefaultBag(); Tuple t = mTupleFactory.newTuple(1); newIntermediateDB.add(intermedEvalFunc.exec(t)); intermediateDB = newIntermediateDB; long newSizeEstimate = intermediateDB.getMemorySize(); pigCounterHelper.incrCounter("AlgebraicEvalFunc", "InitialSizeEst", initialSizeEstimate); pigCounterHelper.incrCounter("AlgebraicEvalFunc", "PostCombineSizeEst", newSizeEstimate);