Package org.cassandraunit.model

Examples of org.cassandraunit.model.ColumnFamilyModel.addColumnMetadata()


    columnFamily3.setName("columnFamilyWithSecondaryIndex");
    columnFamily3.setType(ColumnType.STANDARD);
    columnFamily3.setKeyType(ComparatorType.UTF8TYPE);
    columnFamily3.setComparatorType(ComparatorType.UTF8TYPE);
    columnFamily3.setDefaultColumnValueType(ComparatorType.UTF8TYPE);
    columnFamily3.addColumnMetadata(new ColumnMetadataModel(
                newUtf8GenericType("columnWithSecondaryIndexAndValidationClassAsLongType"), ComparatorType.LONGTYPE, ColumnIndexType.KEYS, null));
    columnFamilies.add(columnFamily3);

        /* column family 4 with index */
        ColumnFamilyModel columnFamily4 = new ColumnFamilyModel();
View Full Code Here


        columnFamily4.setName("columnFamilyWithSecondaryIndexAndIndexName");
        columnFamily4.setType(ColumnType.STANDARD);
        columnFamily4.setKeyType(ComparatorType.UTF8TYPE);
        columnFamily4.setComparatorType(ComparatorType.UTF8TYPE);
        columnFamily4.setDefaultColumnValueType(ComparatorType.UTF8TYPE);
        columnFamily4.addColumnMetadata(new ColumnMetadataModel(
                newUtf8GenericType("columnWithSecondaryIndexAndValidationClassAsUTF8Type"), ComparatorType.UTF8TYPE, ColumnIndexType.KEYS,
                "columnWithSecondaryIndexHaveIndexNameAndValidationClassAsUTF8Type"));

        columnFamilies.add(columnFamily4);
View Full Code Here

        columnFamily5.setName("columnFamilyWithColumnValidationClass");
        columnFamily5.setType(ColumnType.STANDARD);
        columnFamily5.setKeyType(ComparatorType.UTF8TYPE);
        columnFamily5.setComparatorType(ComparatorType.UTF8TYPE);
        columnFamily5.setDefaultColumnValueType(ComparatorType.UTF8TYPE);
        columnFamily5.addColumnMetadata(new ColumnMetadataModel(
                newUtf8GenericType("columnWithValidationClassAsUTF8Type"),
                ComparatorType.UTF8TYPE, null, null));

        columnFamilies.add(columnFamily5);
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.