Package com.yahoo.vespa.hadoop.pig
Class VespaQuery
- java.lang.Object
-
- org.apache.pig.EvalFunc<org.apache.pig.data.DataBag>
-
- com.yahoo.vespa.hadoop.pig.VespaQuery
-
public class VespaQuery extends org.apache.pig.EvalFunc<org.apache.pig.data.DataBag>
A Pig UDF to run a query against a Vespa cluster and return the results.- Author:
- lesters
-
-
Constructor Summary
Constructors Constructor Description VespaQuery()
VespaQuery(String... params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.pig.data.DataBag
exec(org.apache.pig.data.Tuple input)
org.apache.pig.impl.logicalLayer.schema.Schema
outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input)
-
Methods inherited from class org.apache.pig.EvalFunc
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
-
-
-
-
Constructor Detail
-
VespaQuery
public VespaQuery()
-
VespaQuery
public VespaQuery(String... params)
-
-
Method Detail
-
exec
public org.apache.pig.data.DataBag exec(org.apache.pig.data.Tuple input) throws IOException
- Specified by:
exec
in classorg.apache.pig.EvalFunc<org.apache.pig.data.DataBag>
- Throws:
IOException
-
outputSchema
public org.apache.pig.impl.logicalLayer.schema.Schema outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input)
- Overrides:
outputSchema
in classorg.apache.pig.EvalFunc<org.apache.pig.data.DataBag>
-
-