Class IndexCondition
java.lang.Object
org.apache.calcite.adapter.innodb.IndexCondition
Index condition.
Works in the following places:
- In
InnodbFilterTranslator
, it is the index condition to push down according toInnodbFilter
by planner rule. - In
InnodbTableScan
, it represents a full scan by a primary key or a secondary key. - In code generation, it indicates the storage engine which index to use and the associated condition if present.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IndexCondition
create
(String indexName, QueryType queryType, List<Object> pointQueryKey, com.alibaba.innodb.java.reader.comparator.ComparisonOperator rangeQueryLowerOp, com.alibaba.innodb.java.reader.comparator.ComparisonOperator rangeQueryUpperOp, List<Object> rangeQueryLowerKey, List<Object> rangeQueryUpperKey) Creates a new instance for code generation to build query parameters for underlying storage engineInnodb-java-reader
.com.alibaba.innodb.java.reader.comparator.ComparisonOperator
com.alibaba.innodb.java.reader.comparator.ComparisonOperator
boolean
toString()
withFieldNames
(List<String> fieldNames) withIndexColumnNames
(List<String> indexColumnNames) withIndexName
(String indexName) withPointQueryKey
(List<Object> pointQueryKey) withPushDownConditions
(List<RexNode> pushDownConditions) withQueryType
(QueryType queryType) withRangeQueryLowerKey
(List<Object> rangeQueryLowerKey) withRangeQueryLowerOp
(com.alibaba.innodb.java.reader.comparator.ComparisonOperator rangeQueryLowerOp) withRangeQueryUpperKey
(List<Object> rangeQueryUpperKey) withRangeQueryUpperOp
(com.alibaba.innodb.java.reader.comparator.ComparisonOperator rangeQueryUpperOp) withRemainderConditions
(List<RexNode> remainderConditions)
-
Method Details
-
create
public static IndexCondition create(String indexName, QueryType queryType, List<Object> pointQueryKey, com.alibaba.innodb.java.reader.comparator.ComparisonOperator rangeQueryLowerOp, com.alibaba.innodb.java.reader.comparator.ComparisonOperator rangeQueryUpperOp, List<Object> rangeQueryLowerKey, List<Object> rangeQueryUpperKey) Creates a new instance for code generation to build query parameters for underlying storage engineInnodb-java-reader
. -
getImplicitCollation
-
withFieldNames
-
getIndexName
-
withIndexName
-
withIndexColumnNames
-
getPushDownConditions
-
withPushDownConditions
-
getRemainderConditions
-
withRemainderConditions
-
getQueryType
-
withQueryType
-
getPointQueryKey
-
withPointQueryKey
-
getRangeQueryLowerOp
public com.alibaba.innodb.java.reader.comparator.ComparisonOperator getRangeQueryLowerOp() -
withRangeQueryLowerOp
public IndexCondition withRangeQueryLowerOp(com.alibaba.innodb.java.reader.comparator.ComparisonOperator rangeQueryLowerOp) -
getRangeQueryUpperOp
public com.alibaba.innodb.java.reader.comparator.ComparisonOperator getRangeQueryUpperOp() -
withRangeQueryUpperOp
public IndexCondition withRangeQueryUpperOp(com.alibaba.innodb.java.reader.comparator.ComparisonOperator rangeQueryUpperOp) -
getRangeQueryLowerKey
-
withRangeQueryLowerKey
-
getRangeQueryUpperKey
-
withRangeQueryUpperKey
-
nameMatch
-
toString
-