Examples of CFDefinition


Examples of org.apache.cassandra.cql3.CFDefinition

        return column_metadata.remove(def.name) != null;
    }

    private CFMetaData updateCfDef()
    {
        cqlCfDef = new CFDefinition(this);
        return this;
    }
View Full Code Here

Examples of org.apache.cassandra.cql3.CFDefinition

        return column_metadata.remove(def.name) != null;
    }

    private CFMetaData updateCfDef()
    {
        cqlCfDef = new CFDefinition(this);
        return this;
    }
View Full Code Here

Examples of org.apache.cassandra.cql3.CFDefinition

         * object (partitionKeyColumns, ...) and the one stored in CFDefinition.
         * Ultimately, we should probably merge both. However, there is enough details to fix that
         * it's worth doing that in a separate issue.
         */
        rebuildCQL3Metadata();
        cqlCfDef = new CFDefinition(this);
        return this;
    }
View Full Code Here

Examples of org.apache.cassandra.cql3.CFDefinition

        return column_metadata.remove(def.name) != null;
    }

    private CFMetaData updateCfDef()
    {
        cqlCfDef = new CFDefinition(this);
        return this;
    }
View Full Code Here

Examples of org.apache.cassandra.cql3.CFDefinition

        for (CfDef cfDef : ksDef.cf_defs)
        {
            if (cfDef.name.equalsIgnoreCase(cfName))
            {
                CFMetaData cfMeta = CFMetaData.fromThrift(cfDef);
                CFDefinition cfDefinition = new CFDefinition(cfMeta);
                for (ColumnIdentifier columnIdentifier : cfDefinition.keys.keySet())
                    partitionBoundColumns.add(new BoundColumn(columnIdentifier.toString()));
                parseKeyValidators(cfDef.key_validation_class);
                return;
            }
View Full Code Here

Examples of org.apache.cassandra.cql3.CFDefinition

                throw new org.apache.cassandra.exceptions.InvalidRequestException("supercolumn name must not be empty");
            if (metadata.cfType == ColumnFamilyType.Standard)
                throw new org.apache.cassandra.exceptions.InvalidRequestException("supercolumn specified to ColumnFamily " + metadata.cfName + " containing normal columns");
        }
        AbstractType<?> comparator = SuperColumns.getComparatorFor(metadata, superColumnName);
        CFDefinition cfDef = metadata.getCfDef();
        boolean isCQL3Table = !metadata.isThriftCompatible();
        for (ByteBuffer name : column_names)
        {
            if (name.remaining() > maxNameLength)
                throw new org.apache.cassandra.exceptions.InvalidRequestException("column name length must not be greater than " + maxNameLength);
View Full Code Here

Examples of org.apache.cassandra.cql3.CFDefinition

         * object (partitionKeyColumns, ...) and the one stored in CFDefinition.
         * Ultimately, we should probably merge both. However, there is enough details to fix that
         * it's worth doing that in a separate issue.
         */
        rebuildCQL3Metadata();
        cqlCfDef = new CFDefinition(this);
        return this;
    }
View Full Code Here

Examples of org.apache.cassandra.cql3.CFDefinition

                keys.add(cDef);
            }
            // classic thrift tables
            if (keys.size() == 0)
            {
                CFDefinition cfDefinition = getCfDefinition(keyspace, column_family, client);
                for (ColumnIdentifier column : cfDefinition.keys.keySet())
                {
                    String key = column.toString();
                    logger.debug("name: {} ", key);
                    ColumnDef cDef = new ColumnDef();
View Full Code Here

Examples of org.apache.cassandra.cql3.CFDefinition

            // if CassandraStorage, just return the empty list
            if (cassandraStorage)
                return columnDefs;

            // otherwise for CqlStorage, check metadata for classic thrift tables
            CFDefinition cfDefinition = getCfDefinition(keyspace, column_family, client);
            for (ColumnIdentifier column : cfDefinition.metadata.keySet())
            {
                ColumnDef cDef = new ColumnDef();
                String columnName = column.toString();
                String type = cfDefinition.metadata.get(column).type.toString();
View Full Code Here

Examples of org.apache.cassandra.cql3.CFDefinition

    {
        KsDef ksDef = client.describe_keyspace(ks);
        for (CfDef cfDef : ksDef.cf_defs)
        {
            if (cfDef.name.equalsIgnoreCase(cf))
                return new CFDefinition(CFMetaData.fromThrift(cfDef));
        }
        return null;
    }
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.