Package org.caffinitas.mapper.core.codec

Examples of org.caffinitas.mapper.core.codec.TypeCodec.serialize()


            ByteBuffer arg = components.get(i);

            // serialize type
            String typeStr = dataType.cassandraType();
            // TODO support type aliases for DynamicComposite
            ByteBuffer typeBin = types[i] = codec.serialize(typeStr);
            int sz = typeBin.remaining();
            if (sz > 65535)
                throw new IllegalArgumentException("Component at index #"+i+" in DynamicCompositeType too long ("+sz+") - max 65535 bytes in serialized form");
            l += 2 + sz;
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.