|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.EvalFunc<DataBag>
org.apache.pig.piggybank.evaluation.stats.COV
COV
@Deprecated public class COV
Nested Class Summary | |
---|---|
static class |
COV.Final
Deprecated. |
static class |
COV.Initial
Deprecated. |
static class |
COV.Intermed
Deprecated. |
Field Summary | |
---|---|
protected Vector<String> |
schemaName
Deprecated. |
Fields inherited from class org.apache.pig.EvalFunc |
---|
log, pigLogger, reporter, returnType |
Constructor Summary | |
---|---|
COV()
Deprecated. |
|
COV(String... schemaName)
Deprecated. |
Method Summary | |
---|---|
protected static Tuple |
combine(DataBag values)
Deprecated. combine results of different data chunk |
protected static Tuple |
computeAll(DataBag first,
DataBag second)
Deprecated. compute sum(XY), sum(X), sum(Y) from given data sets |
DataBag |
exec(Tuple input)
Deprecated. Function to compute covariance between data sets. |
String |
getFinal()
Deprecated. Get the final function. |
String |
getInitial()
Deprecated. Get the initial function. |
String |
getIntermed()
Deprecated. Get the intermediate function. |
Schema |
outputSchema(Schema input)
Deprecated. Report the schema of the output of this UDF. |
String |
toString()
Deprecated. Function to return argument of constructor as string. |
Methods inherited from class org.apache.pig.EvalFunc |
---|
finish, getArgToFuncMapping, getCacheFiles, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, isAsynchronous, progress, setPigLogger, setReporter, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Vector<String> schemaName
Constructor Detail |
---|
public COV()
public COV(String... schemaName)
Method Detail |
---|
public DataBag exec(Tuple input) throws IOException
exec
in class EvalFunc<DataBag>
input
- input tuple which contains data sets.output
- output dataBag which contain covariance between each pair of data sets.
IOException
public String toString()
toString
in class Object
public String getInitial()
Algebraic
getInitial
in interface Algebraic
public String getIntermed()
Algebraic
getIntermed
in interface Algebraic
public String getFinal()
Algebraic
getFinal
in interface Algebraic
protected static Tuple combine(DataBag values) throws IOException
values
- DataBag containing partial results computed on different data chunksoutput
- Tuple containing combined data
IOException
protected static Tuple computeAll(DataBag first, DataBag second) throws IOException
first
- DataBag containing first data setsecond
- DataBag containing second data set
IOException
public Schema outputSchema(Schema input)
EvalFunc
outputSchema
in class EvalFunc<DataBag>
input
- Schema of the input
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |