public abstract class AbstractGenericUDFEWAHBitmapBop extends GenericUDF
GenericUDF.DeferredJavaObject, GenericUDF.DeferredObject
Modifier and Type | Method and Description |
---|---|
protected abstract javaewah.EWAHCompressedBitmap |
bitmapBop(javaewah.EWAHCompressedBitmap bitmap1,
javaewah.EWAHCompressedBitmap bitmap2) |
protected List<org.apache.hadoop.io.LongWritable> |
bitmapToWordArray(javaewah.EWAHCompressedBitmap bitmap) |
Object |
evaluate(GenericUDF.DeferredObject[] arguments)
Evaluate the GenericUDF with the arguments.
|
String |
getDisplayString(String[] children)
Get the String to be displayed in explain.
|
ObjectInspector |
initialize(ObjectInspector[] arguments)
Initialize this GenericUDF.
|
protected javaewah.EWAHCompressedBitmap |
wordArrayToBitmap(Object b) |
checkArgGroups, checkArgPrimitive, checkArgsSize, close, configure, copyToNewInstance, flip, getArgOrder, getConstantIntValue, getConstantLongValue, getConstantStringValue, getDateValue, getDoubleValue, getFuncName, getIntValue, getLongValue, getRequiredFiles, getRequiredJars, getStandardDisplayString, getStandardDisplayString, getStringValue, getTimestampValue, getUdfName, initializeAndFoldConstants, negative, obtainDateConverter, obtainDoubleConverter, obtainIntConverter, obtainLongConverter, obtainStringConverter, obtainTimestampConverter
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 javaewah.EWAHCompressedBitmap bitmapBop(javaewah.EWAHCompressedBitmap bitmap1, javaewah.EWAHCompressedBitmap bitmap2)
public 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 javaewah.EWAHCompressedBitmap wordArrayToBitmap(Object b)
protected List<org.apache.hadoop.io.LongWritable> bitmapToWordArray(javaewah.EWAHCompressedBitmap bitmap)
public String getDisplayString(String[] children)
GenericUDF
getDisplayString
in class GenericUDF
Copyright © 2017 The Apache Software Foundation. All rights reserved.