| Modifier and Type | Class and Description |
|---|---|
static class |
COR.Final
Deprecated.
|
static class |
COR.Initial
Deprecated.
|
static class |
COR.Intermed
Deprecated.
|
EvalFunc.SchemaType| Modifier and Type | Field and Description |
|---|---|
protected java.util.Vector<java.lang.String> |
schemaName
Deprecated.
|
log, pigLogger, reporter, returnType| Constructor and Description |
|---|
COR()
Deprecated.
|
COR(java.lang.String... schemaName)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getFinal()
Deprecated.
Get the final function.
|
java.lang.String |
getInitial()
Deprecated.
Get the initial function.
|
java.lang.String |
getIntermed()
Deprecated.
Get the intermediate function.
|
Schema |
outputSchema(Schema input)
Deprecated.
Report the schema of the output of this UDF.
|
java.lang.String |
toString()
Deprecated.
Function to return argument of constructor as string.
|
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic COR()
public COR(java.lang.String... schemaName)
public DataBag exec(Tuple input) throws java.io.IOException
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getInitial()
AlgebraicgetInitial in interface Algebraicpublic java.lang.String getIntermed()
AlgebraicgetIntermed in interface Algebraicpublic java.lang.String getFinal()
Algebraicprotected static Tuple combine(DataBag values) throws java.io.IOException
values - DataBag containing partial results computed on different data chunksoutput - Tuple containing combined datajava.io.IOExceptionprotected static Tuple computeAll(DataBag first, DataBag second)
first - DataBag containing first data setsecond - DataBag containing second data setpublic 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 inputCopyright © 2007-2012 The Apache Software Foundation