|
||||||||||
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.COR
COR
@Deprecated public class COR
Nested Class Summary | |
---|---|
static class |
COR.Final
Deprecated. |
static class |
COR.Initial
Deprecated. |
static class |
COR.Intermed
Deprecated. |
Nested classes/interfaces inherited from class org.apache.pig.EvalFunc |
---|
EvalFunc.SchemaType |
Field Summary | |
---|---|
protected Vector<String> |
schemaName
Deprecated. |
Fields inherited from class org.apache.pig.EvalFunc |
---|
log, pigLogger, reporter, returnType |
Constructor Summary | |
---|---|
COR()
Deprecated. |
|
COR(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), sum(XX), sum(YY) from given data sets |
DataBag |
exec(Tuple input)
Deprecated. Function to compute correlation 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, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, 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 COR()
public COR(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 correlation 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)
first
- DataBag containing first data setsecond
- DataBag containing second data set
public Schema outputSchema(Schema input)
EvalFunc
The default implementation interprets the OutputSchema
annotation,
if one is present. Otherwise, it returns null
(no known output schema).
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 |