public abstract class AbstractGenericUDFEWAHBitmapBop extends GenericUDF
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<java.lang.Object> |
ret |
Modifier and Type | Method and Description |
---|---|
protected abstract com.googlecode.javaewah.EWAHCompressedBitmap |
bitmapBop(com.googlecode.javaewah.EWAHCompressedBitmap bitmap1,
com.googlecode.javaewah.EWAHCompressedBitmap bitmap2) |
protected java.util.List<LongWritable> |
bitmapToWordArray(com.googlecode.javaewah.EWAHCompressedBitmap bitmap) |
java.lang.Object |
evaluate(GenericUDF.DeferredObject[] arguments)
Evaluate the GenericUDF with the arguments.
|
java.lang.String |
getDisplayString(java.lang.String[] children)
Get the String to be displayed in explain.
|
ObjectInspector |
initialize(ObjectInspector[] arguments)
Initialize this GenericUDF.
|
protected com.googlecode.javaewah.EWAHCompressedBitmap |
wordArrayToBitmap(java.lang.Object b) |
close, configure, getRequiredFiles, getRequiredJars, initializeAndFoldConstants
public ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException
GenericUDF
initialize
in class GenericUDF
arguments
- The ObjectInspector for the argumentsUDFArgumentException
- Thrown when arguments have wrong types, wrong length, etc.protected abstract com.googlecode.javaewah.EWAHCompressedBitmap bitmapBop(com.googlecode.javaewah.EWAHCompressedBitmap bitmap1, com.googlecode.javaewah.EWAHCompressedBitmap bitmap2)
public java.lang.Object evaluate(GenericUDF.DeferredObject[] arguments) throws HiveException
GenericUDF
evaluate
in class GenericUDF
arguments
- The arguments as DeferedObject, use DeferedObject.get() to get the
actual argument Object. The Objects can be inspected by the
ObjectInspectors passed in the initialize call.HiveException
protected com.googlecode.javaewah.EWAHCompressedBitmap wordArrayToBitmap(java.lang.Object b)
protected java.util.List<LongWritable> bitmapToWordArray(com.googlecode.javaewah.EWAHCompressedBitmap bitmap)
public java.lang.String getDisplayString(java.lang.String[] children)
GenericUDF
getDisplayString
in class GenericUDF
Copyright © 2012 The Apache Software Foundation