public abstract class LSHFunc
extends org.apache.pig.EvalFunc<org.apache.pig.data.DataBag>
| Modifier and Type | Field and Description |
|---|---|
protected LSHFamily |
lsh |
protected java.lang.Long |
seed |
| Constructor and Description |
|---|
LSHFunc(java.lang.String sSeed) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract LSHCreator |
createLSHCreator() |
org.apache.pig.data.DataBag |
exec(org.apache.pig.data.Tuple t)
The expectation is that the input is a Tuple of numeric data representing a real vector.
|
protected abstract int |
getDimension() |
protected long |
getSeed() |
org.apache.pig.impl.logicalLayer.schema.Schema |
outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input)
The schema returned here is a bag containing pairs.
|
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnprotected LSHFamily lsh
protected java.lang.Long seed
protected abstract LSHCreator createLSHCreator()
protected abstract int getDimension()
public org.apache.pig.data.DataBag exec(org.apache.pig.data.Tuple t)
throws java.io.IOException
exec in class org.apache.pig.EvalFunc<org.apache.pig.data.DataBag>java.io.IOExceptionprotected long getSeed()
public org.apache.pig.impl.logicalLayer.schema.Schema outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input)
outputSchema in class org.apache.pig.EvalFunc<org.apache.pig.data.DataBag>