public static AbstractExpression createIndexExpressionForTable ( Table table , Map < Integer , Integer > ranges ) { HashRangeExpression predicate = new HashRangeExpression ( ) ; predicate . setRanges ( ranges ) ; predicate . setHashColumnIndex ( table . getPartitioncolumn ( ) . getIndex ( ) ) ; return predicate ; }
Create the expression used to build elastic index for a given table .