Package org.apache.cassandra.db.marshal

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


                    outputCollection.addAll((Collection) listType.compose(valueByteBuffer));
                }

                else if (((Field) attribute.getJavaMember()).getType().isAssignableFrom(Set.class))
                {
                    SetType setType = SetType.getInstance((AbstractType) valueClassInstance);
                    outputCollection = new HashSet();
                    outputCollection.addAll((Collection) setType.compose(valueByteBuffer));
                }

                PropertyAccessorHelper.set(entity, (Field) attribute.getJavaMember(),
                        marshalCollection(valueValidationClass, outputCollection, genericClass));
            }
View Full Code Here


            Object valueClassInstance;
            try
            {
                valueClassInstance = valueValidationClass.getDeclaredField("instance").get(null);
                SetType setType = SetType.getInstance((AbstractType) valueClassInstance);
                return setType.decompose((Set) value).array();
            }
            catch (NoSuchFieldException e)
            {
                log.error("Error while retrieving field{} value via CQL, Caused by: .", clazz.getSimpleName(), e);
                throw new PersistenceException(e);
View Full Code Here

            Object valueClassInstance;
            try
            {
                valueClassInstance = valueValidationClass.getDeclaredField("instance").get(null);
                SetType setType = SetType.getInstance((AbstractType) valueClassInstance);
                Collection outputCollection = new HashSet();
                outputCollection.addAll((Collection) setType.compose(buf));
                return marshalCollection(valueValidationClass, outputCollection, mapGenericClassses,
                        outputCollection.getClass());
            }
            catch (NoSuchFieldException e)
            {
View Full Code Here

TOP

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

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.