Class 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()  
      VespaQuery​(java.lang.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
      • Methods inherited from class java.lang.Object

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

      • VespaQuery

        public VespaQuery()
      • VespaQuery

        public VespaQuery​(java.lang.String... params)
    • Method Detail

      • exec

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