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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pig.EvalFunc
org.apache.pig.EvalFunc.SchemaType
-
Field Summary
Fields inherited from class org.apache.pig.EvalFunc
log, pigLogger, reporter, returnType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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, needEndOfAllInputProcessing, progress, setEndOfAllInput, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warn
-
Constructor Details
-
VespaQuery
public VespaQuery() -
VespaQuery
-
-
Method Details
-
exec
- 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>
-