Package org.apache.cassandra.serializers

Examples of org.apache.cassandra.serializers.DecimalSerializer.serialize()


    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


    {
        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
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.