Package io.crate.sql.tree

Examples of io.crate.sql.tree.ClusteredBy


    @Override
    public Void visitCreateBlobTable(CreateBlobTable node, CreateBlobTableAnalysis context) {
        context.table(tableToIdent(node.name()));

        if (node.clusteredBy().isPresent()) {
            ClusteredBy clusteredBy = node.clusteredBy().get();

            int numShards;
            if (clusteredBy.numberOfShards().isPresent()) {
                numShards = ExpressionToNumberVisitor.convert(clusteredBy.numberOfShards().get(), context.parameters()).intValue();
                if (numShards < 1) {
                    throw new IllegalArgumentException("num_shards in CLUSTERED clause must be greater than 0");
                }
            } else {
                numShards = Constants.DEFAULT_NUM_SHARDS;
View Full Code Here

TOP

Related Classes of io.crate.sql.tree.ClusteredBy

Copyright © 2018 www.massapicom. 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.