public class POPoissonSample extends PhysicalOperator
PhysicalOperator.OriginalLocation| Modifier and Type | Field and Description |
|---|---|
protected long |
avgTupleMemSz |
static int |
DEFAULT_SAMPLE_RATE |
protected float |
heapPerc |
protected boolean |
initialized |
protected long |
memToSkipPerSample |
protected Result |
newSample |
protected boolean |
numRowSplTupleReturned |
protected int |
numRowsSampled |
protected int |
numSkipped |
protected long |
rowNum |
protected int |
sampleRate |
protected static long |
serialVersionUID |
protected long |
skipInterval |
protected Long |
totalMemory |
alias, illustrator, input, inputAttached, inputs, lineageTracer, mBagFactory, mTupleFactory, outputs, parentPlan, pigLogger, reporter, requestedParallelism, res, RESULT_EMPTY, RESULT_EOP, resultType| Constructor and Description |
|---|
POPoissonSample(OperatorKey k,
int rp,
int sr,
float hp,
long tm) |
| Modifier and Type | Method and Description |
|---|---|
protected Result |
createNumRowTuple(Tuple sample) |
Result |
getNextTuple() |
Tuple |
illustratorMarkup(Object in,
Object out,
int eqClassIndex)
input tuple mark up to be illustrate-able
|
String |
name() |
boolean |
supportsMultipleInputs()
Indicates whether this operator supports multiple inputs.
|
boolean |
supportsMultipleOutputs()
Indicates whether this operator supports multiple outputs.
|
protected void |
updateSkipInterval(Tuple t)
Update the average tuple size base on newly sampled tuple t
and recalculate skipInterval
|
void |
visit(PhyPlanVisitor v)
Visit this node with the provided visitor.
|
addOriginalLocation, addOriginalLocation, attachInput, clone, cloneHelper, clonePlans, copyAliasFrom, detachInput, getAlias, getAliasString, getIllustrator, getInputs, getLogger, getNext, getNextBigDecimal, getNextBigInteger, getNextBoolean, getNextDataBag, getNextDataByteArray, getNextDateTime, getNextDouble, getNextFloat, getNextInteger, getNextLong, getNextMap, getNextString, getOriginalLocations, getParentPlan, getPigLogger, getReporter, getRequestedParallelism, getResultType, isAccumStarted, isAccumulative, isBlocking, isEndOfAllInput, isInputAttached, processInput, reset, setAccumEnd, setAccumStart, setAccumulative, setIllustrator, setInputs, setParentPlan, setPigLogger, setReporter, setRequestedParallelism, setResultType, staticDataCleanupcompareTo, equals, getOperatorKey, getProjectionMap, hashCode, regenerateProjectionMap, rewire, toString, unsetProjectionMapprotected static final long serialVersionUID
public static final int DEFAULT_SAMPLE_RATE
protected int sampleRate
protected float heapPerc
protected Long totalMemory
protected transient boolean initialized
protected transient int numSkipped
protected transient int numRowsSampled
protected transient long avgTupleMemSz
protected transient long rowNum
protected transient long skipInterval
protected transient long memToSkipPerSample
protected transient boolean numRowSplTupleReturned
protected transient Result newSample
public POPoissonSample(OperatorKey k, int rp, int sr, float hp, long tm)
public Tuple illustratorMarkup(Object in, Object out, int eqClassIndex)
Illustrablein - input tupleout - output tuple before wrapped in ExampleTupleeqClassIndex - index into equivalence classes in illustratorpublic void visit(PhyPlanVisitor v) throws VisitorException
Operatorvisit in class PhysicalOperatorv - Visitor to visit with.VisitorException - if the visitor has a problem.public Result getNextTuple() throws ExecException
getNextTuple in class PhysicalOperatorExecExceptionpublic boolean supportsMultipleInputs()
OperatorsupportsMultipleInputs in class Operator<PhyPlanVisitor>public boolean supportsMultipleOutputs()
OperatorsupportsMultipleOutputs in class Operator<PhyPlanVisitor>public String name()
name in class Operator<PhyPlanVisitor>protected void updateSkipInterval(Tuple t)
t - - tupleprotected Result createNumRowTuple(Tuple sample) throws ExecException
sample - - sample tupleExecExceptionCopyright © 2007-2017 The Apache Software Foundation