org.apache.pig.impl.util
Interface Spillable

All Known Subinterfaces:
DataBag
All Known Implementing Classes:
AccumulativeBag, DefaultAbstractBag, DefaultDataBag, DistinctDataBag, InternalCachedBag, InternalDistinctBag, InternalSortedBag, NonSpillableDataBag, ReadOnceBag, SelfSpillBag, SingleTupleBag, SortedDataBag, SortedSpillBag

public interface Spillable


Method Summary
 long getMemorySize()
          Requests that an object return an estimate of its in memory size.
 long spill()
          Instructs an object to spill whatever it can to disk and release references to any data structures it spills.
 

Method Detail

spill

long spill()
Instructs an object to spill whatever it can to disk and release references to any data structures it spills.

Returns:
number of objects spilled.

getMemorySize

long getMemorySize()
Requests that an object return an estimate of its in memory size.

Returns:
estimated in memory size.


Copyright © 2007-2012 The Apache Software Foundation