public class LitePackager extends Packager
Packager.PackageType
bags, distinct, illustrator, isKeyCompound, isKeyTuple, key, keyInfo, keyType, mBagFactory, mTupleFactory, parent, readOnce
Constructor and Description |
---|
LitePackager() |
Modifier and Type | Method and Description |
---|---|
void |
attachInput(Object key,
DataBag[] bags,
boolean[] readOnce) |
LitePackager |
clone()
Make a deep copy of this operator.
|
boolean[] |
getInner() |
Result |
getNext()
Similar to POPackage.getNext except that
only one input is expected with index 0
and ReadOnceBag is used instead of
DefaultDataBag.
|
Tuple |
getValueTuple(PigNullableWritable keyWritable,
NullableTuple ntup,
int index)
Makes use of the superclass method, but this requires an additional
parameter key passed by ReadOnceBag.
|
Tuple |
illustratorMarkup(Object in,
Object out,
int eqClassIndex)
input tuple mark up to be illustrate-able
|
boolean |
isDistinct() |
void |
setDistinct(boolean distinct) |
void |
setInner(boolean[] inner) |
checkBagType, detachInput, getBag, getIllustrator, getKey, getKey, getKeyAsTuple, getKeyInfo, getKeyTuple, getKeyType, getNumInputs, getNumInputs, getPackageType, getUseSecondaryKey, illustratorMarkup2, name, numberOfEquivalenceClasses, setIllustrator, setKeyCompound, setKeyInfo, setKeyTuple, setKeyType, setNumInputs, setPackageType, setParent, setUseSecondaryKey, starMarkup
public void attachInput(Object key, DataBag[] bags, boolean[] readOnce) throws ExecException
attachInput
in class Packager
ExecException
public LitePackager clone() throws CloneNotSupportedException
clone
in class Packager
CloneNotSupportedException
public boolean isDistinct()
isDistinct
in class Packager
public void setDistinct(boolean distinct)
setDistinct
in class Packager
distinct
- the distinct to setpublic Result getNext() throws ExecException
getNext
in class Packager
ExecException
public Tuple getValueTuple(PigNullableWritable keyWritable, NullableTuple ntup, int index) throws ExecException
getValueTuple
in class Packager
ExecException
public Tuple illustratorMarkup(Object in, Object out, int eqClassIndex)
Illustrable
illustratorMarkup
in interface Illustrable
illustratorMarkup
in class Packager
in
- input tupleout
- output tuple before wrapped in ExampleTupleeqClassIndex
- index into equivalence classes in illustratorCopyright © 2007-2017 The Apache Software Foundation