Package org.lealone.cassandra.command.ddl

Examples of org.lealone.cassandra.command.ddl.CreateKeyspace


        }
        return defs;
    }

    protected Prepared parseCreateKeyspace() {
        CreateKeyspace command = new CreateKeyspace(session);

        command.setIfNotExists(readIfNoExists());
        command.setKeyspaceName(readUniqueIdentifier());

        if (readIf("AUTHORIZATION")) {
            command.setAuthorization(readUniqueIdentifier());
        } else {
            command.setAuthorization(session.getUser().getName());
        }
        KSPropDefs defs = parseKSPropDefs();
        command.setKSPropDefs(defs);
        return command;
    }
View Full Code Here

TOP

Related Classes of org.lealone.cassandra.command.ddl.CreateKeyspace

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.