org.apache.hcatalog.data
Class HCatArrayBag<T>
java.lang.Object
org.apache.hcatalog.data.HCatArrayBag<T>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, java.lang.Iterable<org.apache.pig.data.Tuple>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable, org.apache.pig.data.DataBag, org.apache.pig.impl.util.Spillable
public class HCatArrayBag<T>
- extends java.lang.Object
- implements org.apache.pig.data.DataBag
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HCatArrayBag
public HCatArrayBag(java.util.List<T> list)
add
public void add(org.apache.pig.data.Tuple t)
- Specified by:
add
in interface org.apache.pig.data.DataBag
addAll
public void addAll(org.apache.pig.data.DataBag db)
- Specified by:
addAll
in interface org.apache.pig.data.DataBag
clear
public void clear()
- Specified by:
clear
in interface org.apache.pig.data.DataBag
isDistinct
public boolean isDistinct()
- Specified by:
isDistinct
in interface org.apache.pig.data.DataBag
isSorted
public boolean isSorted()
- Specified by:
isSorted
in interface org.apache.pig.data.DataBag
iterator
public java.util.Iterator<org.apache.pig.data.Tuple> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<org.apache.pig.data.Tuple>
- Specified by:
iterator
in interface org.apache.pig.data.DataBag
markStale
public void markStale(boolean arg0)
- Specified by:
markStale
in interface org.apache.pig.data.DataBag
size
public long size()
- Specified by:
size
in interface org.apache.pig.data.DataBag
getMemorySize
public long getMemorySize()
- Specified by:
getMemorySize
in interface org.apache.pig.impl.util.Spillable
spill
public long spill()
- Specified by:
spill
in interface org.apache.pig.impl.util.Spillable
readFields
public void readFields(java.io.DataInput arg0)
throws java.io.IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
write
public void write(java.io.DataOutput arg0)
throws java.io.IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
java.io.IOException
compareTo
public int compareTo(java.lang.Object arg0)
- Specified by:
compareTo
in interface java.lang.Comparable