Class CompareFunctionsProcessor
java.lang.Object
org.apache.drill.common.expression.visitors.AbstractExprVisitor<Boolean,LogicalExpression,RuntimeException>
org.apache.drill.exec.store.hbase.CompareFunctionsProcessor
- All Implemented Interfaces:
ExprVisitor<Boolean,
LogicalExpression, RuntimeException>
public class CompareFunctionsProcessor
extends AbstractExprVisitor<Boolean,LogicalExpression,RuntimeException>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompareFunctionsProcessor
createFunctionsProcessorInstance
(FunctionCall call, boolean nullComparatorSupported) protected static <T extends CompareFunctionsProcessor>
TcreateFunctionsProcessorInstanceInternal
(FunctionCall call, boolean nullComparatorSupported, T evaluator) protected io.netty.buffer.ByteBuf
getByteBuf
(LogicalExpression valueArg, String encodingType) getPath()
org.apache.hadoop.hbase.filter.Filter
byte[]
byte[]
byte[]
getValue()
static boolean
isCompareFunction
(String functionName) boolean
boolean
boolean
protected static io.netty.buffer.ByteBuf
newByteBuf
(int size, boolean bigEndian) protected void
setFunctionName
(String functionName) protected void
setPath
(SchemaPath path) protected void
setSortOrderAscending
(boolean sortOrderAscending) protected void
setSuccess
(boolean success) visitCastExpression
(CastExpression e, LogicalExpression valueArg) visitConvertExpression
(ConvertExpression e, LogicalExpression valueArg) visitFunctionCall
(FunctionCall call, LogicalExpression valueArg) visitSchemaPath
(SchemaPath path, LogicalExpression valueArg) visitUnknown
(LogicalExpression e, LogicalExpression valueArg) Handles implementation-specific expressions not known to the visitor structure.Methods inherited from class org.apache.drill.common.expression.visitors.AbstractExprVisitor
visitAnyValueExpression, visitBooleanConstant, visitBooleanOperator, visitDateConstant, visitDecimal18Constant, visitDecimal28Constant, visitDecimal38Constant, visitDecimal9Constant, visitDoubleConstant, visitFloatConstant, visitFunctionHolderExpression, visitIfExpression, visitIntConstant, visitIntervalDayConstant, visitIntervalYearConstant, visitLongConstant, visitNullConstant, visitNullExpression, visitParameter, visitQuotedStringConstant, visitTimeConstant, visitTimeStampConstant, visitTypedFieldExpr, visitVarDecimalConstant
-
Constructor Details
-
CompareFunctionsProcessor
-
-
Method Details
-
isCompareFunction
-
createFunctionsProcessorInstance
public static CompareFunctionsProcessor createFunctionsProcessorInstance(FunctionCall call, boolean nullComparatorSupported) -
createFunctionsProcessorInstanceInternal
protected static <T extends CompareFunctionsProcessor> T createFunctionsProcessorInstanceInternal(FunctionCall call, boolean nullComparatorSupported, T evaluator) -
getValue
public byte[] getValue() -
isSuccess
public boolean isSuccess() -
setSuccess
protected void setSuccess(boolean success) -
getPath
-
setPath
-
getFunctionName
-
setFunctionName
-
isRowKeyPrefixComparison
public boolean isRowKeyPrefixComparison() -
getRowKeyPrefixStartRow
public byte[] getRowKeyPrefixStartRow() -
getRowKeyPrefixStopRow
public byte[] getRowKeyPrefixStopRow() -
getRowKeyPrefixFilter
public org.apache.hadoop.hbase.filter.Filter getRowKeyPrefixFilter() -
isSortOrderAscending
public boolean isSortOrderAscending() -
setSortOrderAscending
protected void setSortOrderAscending(boolean sortOrderAscending) -
visitCastExpression
public Boolean visitCastExpression(CastExpression e, LogicalExpression valueArg) throws RuntimeException - Specified by:
visitCastExpression
in interfaceExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Overrides:
visitCastExpression
in classAbstractExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Throws:
RuntimeException
-
visitConvertExpression
public Boolean visitConvertExpression(ConvertExpression e, LogicalExpression valueArg) throws RuntimeException - Specified by:
visitConvertExpression
in interfaceExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Overrides:
visitConvertExpression
in classAbstractExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Throws:
RuntimeException
-
getByteBuf
-
visitUnknown
public Boolean visitUnknown(LogicalExpression e, LogicalExpression valueArg) throws RuntimeException Description copied from class:AbstractExprVisitor
Handles implementation-specific expressions not known to the visitor structure. Since there are no "visitFoo" methods for these "unknown" expressions, subclassses should use the functionally-equivalentinstanceof
approach to parse out these "unknown" expressions.- Specified by:
visitUnknown
in interfaceExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Overrides:
visitUnknown
in classAbstractExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Throws:
RuntimeException
-
visitSchemaPath
- Specified by:
visitSchemaPath
in interfaceExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Overrides:
visitSchemaPath
in classAbstractExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Throws:
RuntimeException
-
visitFunctionCall
- Specified by:
visitFunctionCall
in interfaceExprVisitor<Boolean,
LogicalExpression, RuntimeException> - Overrides:
visitFunctionCall
in classAbstractExprVisitor<Boolean,
LogicalExpression, RuntimeException>
-
newByteBuf
protected static io.netty.buffer.ByteBuf newByteBuf(int size, boolean bigEndian)
-