public class Packager extends Object implements Illustrable, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
Packager.PackageType |
Modifier and Type | Field and Description |
---|---|
protected DataBag[] |
bags |
protected boolean |
distinct |
protected Illustrator |
illustrator |
protected boolean |
isKeyCompound |
protected boolean |
isKeyTuple |
protected Object |
key |
protected Map<Integer,Pair<Boolean,Map<Integer,Integer>>> |
keyInfo |
protected byte |
keyType |
protected static BagFactory |
mBagFactory |
protected static TupleFactory |
mTupleFactory |
protected POPackage |
parent |
protected boolean[] |
readOnce |
Constructor and Description |
---|
Packager() |
protected boolean[] readOnce
protected DataBag[] bags
protected transient Illustrator illustrator
protected Object key
protected boolean isKeyTuple
protected boolean isKeyCompound
protected byte keyType
protected boolean distinct
protected POPackage parent
protected static final BagFactory mBagFactory
protected static final TupleFactory mTupleFactory
public Object getKey(PigNullableWritable key) throws ExecException
ExecException
public void attachInput(Object key, DataBag[] bags, boolean[] readOnce) throws ExecException
ExecException
public Result getNext() throws ExecException
ExecException
public void detachInput()
public Tuple getValueTuple(PigNullableWritable keyWritable, NullableTuple ntup, int index) throws ExecException
ExecException
public byte getKeyType()
public void setKeyType(byte keyType)
public boolean getKeyTuple()
public Tuple getKeyAsTuple()
public Object getKey()
public boolean[] getInner()
public void setInner(boolean[] inner)
public void setKeyInfo(Map<Integer,Pair<Boolean,Map<Integer,Integer>>> keyInfo)
keyInfo
- the keyInfo to setpublic void setKeyTuple(boolean keyTuple)
keyTuple
- the keyTuple to setpublic void setKeyCompound(boolean keyCompound)
keyCompound
- the keyCompound to setpublic Illustrator getIllustrator()
public void setIllustrator(Illustrator illustrator)
setIllustrator
in interface Illustrable
public boolean isDistinct()
public void setDistinct(boolean distinct)
distinct
- the distinct to setpublic void setUseSecondaryKey(boolean useSecondaryKey)
public boolean getUseSecondaryKey()
public void setPackageType(Packager.PackageType type)
public Packager.PackageType getPackageType()
public int getNumInputs(byte index)
public int getNumInputs()
public void setNumInputs(int numInputs)
public Packager clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String name()
public Tuple illustratorMarkup(Object in, Object out, int eqClassIndex)
Illustrable
illustratorMarkup
in interface Illustrable
in
- input tupleout
- output tuple before wrapped in ExampleTupleeqClassIndex
- index into equivalence classes in illustratorpublic void setParent(POPackage pack)
public int numberOfEquivalenceClasses()
public void checkBagType()
public DataBag getBag()
Copyright © 2007-2017 The Apache Software Foundation