Package org.apache.cassandra.db.marshal

Examples of org.apache.cassandra.db.marshal.TypeParser


        Class<?> validation_class = getValidationClassInstance(dataType, isCql3Enabled);

        valueType = validation_class.toString();
        if (validation_class.equals(ListType.class))
        {
            TypeParser parser = new TypeParser(getValidationClass(genericClasses.get(0), isCql3Enabled));
            valueType = ListType.getInstance(parser.parse()).toString();
        }
        else if (validation_class.equals(SetType.class))
        {
            TypeParser parser = new TypeParser(getValidationClass(genericClasses.get(0), isCql3Enabled));
            valueType = SetType.getInstance(parser.parse()).toString();
        }
        else if (validation_class.equals(MapType.class))
        {
            TypeParser keyParser = new TypeParser(getValidationClass(genericClasses.get(0), isCql3Enabled));
            TypeParser valueParser = new TypeParser(getValidationClass(genericClasses.get(1), isCql3Enabled));
            valueType = MapType.getInstance(keyParser.parse(), valueParser.parse()).toString();
        }
        return valueType;
    }
View Full Code Here

TOP

Related Classes of org.apache.cassandra.db.marshal.TypeParser

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.