Package org.apache.cassandra.serializers

Examples of org.apache.cassandra.serializers.DecimalSerializer


{
    @Test
    public void testComposeDecompose()
    {
        BigDecimal expected = new BigDecimal("123456789123456789.987654321");
        DecimalSerializer decimal = new DecimalSerializer();
       
        ByteBuffer buffer = decimal.serialize(expected);
        BigDecimal actual = decimal.deserialize(buffer);
        Assert.assertEquals(expected, actual);
    }
View Full Code Here


{
    @Test
    public void testComposeDecompose()
    {
        BigDecimal expected = new BigDecimal("123456789123456789.987654321");
        DecimalSerializer decimal = new DecimalSerializer();
       
        ByteBuffer buffer = decimal.deserialize(expected);
        BigDecimal actual = decimal.serialize(buffer);
        Assert.assertEquals(expected, actual);
    }
View Full Code Here

TOP

Related Classes of org.apache.cassandra.serializers.DecimalSerializer

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.