public interface Detachable
The driver's data structure
types (such as rows, tuples and UDT values) store
their data as byte buffers, and only decode it on demand, when the end user accesses a particular
column or field.
Decoding requires a ProtocolVersion
(because the encoded format might change across
versions), and a CodecRegistry
(because the user might ask us to decode to a custom
type).
TupleType
), it is detached: it uses ProtocolVersion.DEFAULT
and CodecRegistry.DEFAULT
.
A detached object can be reattached to a driver instance. This is done automatically if you pass the object to one of the driver methods, for example if you use a manually created tuple as a query parameter.
Modifier and Type | Method and Description |
---|---|
void |
attach(AttachmentPoint attachmentPoint) |
boolean |
isDetached() |
boolean isDetached()
void attach(@NonNull AttachmentPoint attachmentPoint)
Copyright © 2017–2020. All rights reserved.