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
    Constructor
    Description
     
    VespaQuery(String... params)
     
  • Method Summary

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VespaQuery

      public VespaQuery()
    • VespaQuery

      public VespaQuery(String... params)
  • Method Details

    • exec

      public org.apache.pig.data.DataBag exec(org.apache.pig.data.Tuple input) throws IOException
      Specified by:
      exec in class org.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 class org.apache.pig.EvalFunc<org.apache.pig.data.DataBag>