Examples of KeyspaceInformation


Examples of org.easycassandra.ClassInformation.KeySpaceInformation

    }

    @Override
    public <T> InsertBuilder<T> insertBuilder(Class<T> classBean) {
        ClassInformation classInformation = ClassInformations.INSTACE.getClass(classBean);
        KeySpaceInformation key = classInformation.getKeySpace(keySpace);
        Insert insert = QueryBuilder.insertInto(key.getKeySpace(), key.getColumnFamily());
        return new InsertBuilderImpl<>(insert, session, classInformation);
    }
View Full Code Here

Examples of org.easycassandra.ClassInformation.KeySpaceInformation

        if (key == null) {
            throw new KeyProblemsException(
                    "The parameter key to column family should be passed");
        }
        ClassInformation classInformations = ClassInformations.INSTACE.getClass(bean);
        KeySpaceInformation keyInformation = classInformations.getKeySpace(keySpace);
        Delete delete = QueryBuilder
                .delete()
                .all()
                .from(keyInformation.getKeySpace(),
                        keyInformation.getColumnFamily());

        FieldInformation keyField = classInformations.getKeyInformation();
        if (classInformations.isComplexKey()) {
            runComplexKey(delete, key, keyField.getSubFields().getFields());
        } else {
View Full Code Here

Examples of org.wso2.carbon.cassandra.mgt.stub.ks.xsd.KeyspaceInformation

    }

    public static KeyspaceInformation getKeyspaceInformation(ServletContext servletContext,
                                                             HttpSession session,
                                                             String keyspace) throws Exception {
        KeyspaceInformation keyspaceInformation =
                (KeyspaceInformation) session.getAttribute(CassandraAdminClientConstants.CURRENT_KEYSPACE);
        if (keyspaceInformation == null) {
            CassandraKeyspaceAdminClient cassandraKeyspaceAdminClient =
                    new CassandraKeyspaceAdminClient(servletContext, session);
            keyspaceInformation = cassandraKeyspaceAdminClient.getKeyspaceOfCurrentUser(keyspace);
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.