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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CompareFunctionsProcessorcreateFunctionsProcessorInstance(FunctionCall call, boolean nullComparatorSupported) protected static <T extends CompareFunctionsProcessor>
TcreateFunctionsProcessorInstanceInternal(FunctionCall call, boolean nullComparatorSupported, T evaluator) protected io.netty.buffer.ByteBufgetByteBuf(LogicalExpression valueArg, String encodingType) getPath()org.apache.hadoop.hbase.filter.Filterbyte[]byte[]byte[]getValue()static booleanisCompareFunction(String functionName) booleanbooleanbooleanprotected static io.netty.buffer.ByteBufnewByteBuf(int size, boolean bigEndian) protected voidsetFunctionName(String functionName) protected voidsetPath(SchemaPath path) protected voidsetSortOrderAscending(boolean sortOrderAscending) protected voidsetSuccess(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:
visitCastExpressionin interfaceExprVisitor<Boolean,LogicalExpression, RuntimeException> - Overrides:
visitCastExpressionin classAbstractExprVisitor<Boolean,LogicalExpression, RuntimeException> - Throws:
RuntimeException
-
visitConvertExpression
public Boolean visitConvertExpression(ConvertExpression e, LogicalExpression valueArg) throws RuntimeException - Specified by:
visitConvertExpressionin interfaceExprVisitor<Boolean,LogicalExpression, RuntimeException> - Overrides:
visitConvertExpressionin classAbstractExprVisitor<Boolean,LogicalExpression, RuntimeException> - Throws:
RuntimeException
-
getByteBuf
-
visitUnknown
public Boolean visitUnknown(LogicalExpression e, LogicalExpression valueArg) throws RuntimeException Description copied from class:AbstractExprVisitorHandles implementation-specific expressions not known to the visitor structure. Since there are no "visitFoo" methods for these "unknown" expressions, subclassses should use the functionally-equivalentinstanceofapproach to parse out these "unknown" expressions.- Specified by:
visitUnknownin interfaceExprVisitor<Boolean,LogicalExpression, RuntimeException> - Overrides:
visitUnknownin classAbstractExprVisitor<Boolean,LogicalExpression, RuntimeException> - Throws:
RuntimeException
-
visitSchemaPath
- Specified by:
visitSchemaPathin interfaceExprVisitor<Boolean,LogicalExpression, RuntimeException> - Overrides:
visitSchemaPathin classAbstractExprVisitor<Boolean,LogicalExpression, RuntimeException> - Throws:
RuntimeException
-
visitFunctionCall
- Specified by:
visitFunctionCallin interfaceExprVisitor<Boolean,LogicalExpression, RuntimeException> - Overrides:
visitFunctionCallin classAbstractExprVisitor<Boolean,LogicalExpression, RuntimeException>
-
newByteBuf
protected static io.netty.buffer.ByteBuf newByteBuf(int size, boolean bigEndian)
-