@Test public void testDurationType() { Duration sourceDuration = Duration.newInstance(1, 3, 500); long expectedNanoDuration = (30 + 3) * ChronoUnit.DAYS.getDuration().toNanos() + 500; ByteBuffer serializedDuration = DurationType.instance.decompose(sourceDuration); Object deserializedDuration = CassandraTypeDeserializer.deserialize(DurationType.instance, serializedDuration); Assert.assertEquals(expectedNanoDuration, deserializedDuration); }
public static Object deserialize(DataType dataType, ByteBuffer bb) { AbstractType abstractType = CassandraTypeConverter.convert(dataType); return deserialize(abstractType, bb); }
CassandraTypeDeserializer { public static Object deserialize(DataType dataType, ByteBuffer bb) { AbstractType abstractType = CassandraTypeConverter.convert(dataType); return deserialize(abstractType, bb); } }
CassandraTypeDeserializer { public static Object deserialize(DataType dataType, ByteBuffer bb) { AbstractType abstractType = CassandraTypeConverter.convert(dataType); return deserialize(abstractType, bb); } private  CassandraTypeDeserializer(); }
CassandraTypeDeserializer { public static Object deserialize(DataType dataType, ByteBuffer bb) { AbstractType abstractType = CassandraTypeConverter.convert(dataType); return deserialize(abstractType, bb); } private  CassandraTypeDeserializer(); static Object deserialize(DataType dataType, ByteBuffer bb); static Object deserialize(AbstractType<?> abstractType, ByteBuffer bb); static Object deserialize(CollectionType<?> collectionType, ComplexColumnData ccd); static SchemaBuilder getSchemaBuilder(AbstractType<?> abstractType); static TypeDeserializer getTypeDeserializer(AbstractType<?> abstractType); }
CassandraTypeDeserializer { public static Object deserialize(DataType dataType, ByteBuffer bb) { AbstractType abstractType = CassandraTypeConverter.convert(dataType); return deserialize(abstractType, bb); } private  CassandraTypeDeserializer(); static Object deserialize(DataType dataType, ByteBuffer bb); static Object deserialize(AbstractType<?> abstractType, ByteBuffer bb); static Object deserialize(CollectionType<?> collectionType, ComplexColumnData ccd); static SchemaBuilder getSchemaBuilder(AbstractType<?> abstractType); static TypeDeserializer getTypeDeserializer(AbstractType<?> abstractType);  }