public class Packager extends java.lang.Object implements Illustrable, java.io.Serializable, java.lang.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 java.util.Map<java.lang.Integer,Pair<java.lang.Boolean,java.util.Map<java.lang.Integer,java.lang.Integer>>> |
keyInfo |
protected static BagFactory |
mBagFactory |
protected static TupleFactory |
mTupleFactory |
protected POPackage |
parent |
protected boolean[] |
readOnce |
Constructor and Description |
---|
Packager() |
Modifier and Type | Method and Description |
---|---|
void |
attachInput(java.lang.Object key,
DataBag[] bags,
boolean[] readOnce) |
void |
checkBagType() |
Packager |
clone() |
void |
detachInput() |
DataBag |
getBag() |
Illustrator |
getIllustrator() |
boolean[] |
getInner() |
java.lang.Object |
getKey() |
java.lang.Object |
getKey(PigNullableWritable key) |
Tuple |
getKeyAsTuple() |
java.util.Map<java.lang.Integer,Pair<java.lang.Boolean,java.util.Map<java.lang.Integer,java.lang.Integer>>> |
getKeyInfo() |
boolean |
getKeyTuple() |
byte |
getKeyType() |
Result |
getNext() |
int |
getNumInputs() |
int |
getNumInputs(byte index) |
Packager.PackageType |
getPackageType() |
Tuple |
getValueTuple(PigNullableWritable keyWritable,
NullableTuple ntup,
int index) |
Tuple |
illustratorMarkup(java.lang.Object in,
java.lang.Object out,
int eqClassIndex)
input tuple mark up to be illustrate-able
|
protected Tuple |
illustratorMarkup2(java.lang.Object in,
java.lang.Object out) |
boolean |
isDistinct() |
java.lang.String |
name() |
int |
numberOfEquivalenceClasses() |
void |
setDistinct(boolean distinct) |
void |
setIllustrator(Illustrator illustrator) |
void |
setInner(boolean[] inner) |
void |
setKeyCompound(boolean keyCompound) |
void |
setKeyInfo(java.util.Map<java.lang.Integer,Pair<java.lang.Boolean,java.util.Map<java.lang.Integer,java.lang.Integer>>> keyInfo) |
void |
setKeyTuple(boolean keyTuple) |
void |
setKeyType(byte keyType) |
void |
setNumInputs(int numInputs) |
void |
setPackageType(Packager.PackageType type) |
void |
setParent(POPackage pack) |
void |
setUseSecondaryKey(boolean useSecondaryKey) |
protected Tuple |
starMarkup(Tuple key,
Tuple val,
Tuple out) |
protected boolean[] readOnce
protected DataBag[] bags
protected transient Illustrator illustrator
protected boolean isKeyTuple
protected boolean isKeyCompound
protected boolean distinct
protected java.util.Map<java.lang.Integer,Pair<java.lang.Boolean,java.util.Map<java.lang.Integer,java.lang.Integer>>> keyInfo
protected POPackage parent
protected static final BagFactory mBagFactory
protected static final TupleFactory mTupleFactory
public java.lang.Object getKey(PigNullableWritable key) throws ExecException
ExecException
public void attachInput(java.lang.Object key, DataBag[] bags, boolean[] readOnce) throws ExecException
ExecException
public Result getNext() throws ExecException
ExecException
public void detachInput()
protected Tuple illustratorMarkup2(java.lang.Object in, java.lang.Object out)
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 java.lang.Object getKey()
public boolean[] getInner()
public void setInner(boolean[] inner)
public void setKeyInfo(java.util.Map<java.lang.Integer,Pair<java.lang.Boolean,java.util.Map<java.lang.Integer,java.lang.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 java.util.Map<java.lang.Integer,Pair<java.lang.Boolean,java.util.Map<java.lang.Integer,java.lang.Integer>>> getKeyInfo()
public 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 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 java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String name()
public Tuple illustratorMarkup(java.lang.Object in, java.lang.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-2012 The Apache Software Foundation