Examples of WaspSqlPartitionByKey


Examples of com.alibaba.wasp.plan.parser.druid.dialect.WaspSqlPartitionByKey

        .getPartitioning();
    byte[][] splitKeys = null;
    if (partitioning != null) {
      if (table.isRootTable()) {
        if (partitioning instanceof WaspSqlPartitionByKey) {
          WaspSqlPartitionByKey partitionKey = (WaspSqlPartitionByKey) partitioning;
          byte[] start = convert(null, partitionKey.getStart());
          byte[] end = convert(null, partitionKey.getEnd());
          int partitionCount = convertToInt(partitionKey.getPartitionCount());
          splitKeys = Bytes.split(start, end, partitionCount - 3);
        } else {
          throw new UnsupportedException("Unsupported SQLPartitioningClause "
              + partitioning);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.