public interface Freezable<T extends Freezable>
extends java.lang.Cloneable
Freeazable is a marker interface, and Iced is the companion marker
class. Marked classes have 2-byte integer type associated with them, and
an auto-genned delegate class created to actually do serialization.
Serialization is extremely dense (includes various compressions), and
typically memory-bandwidth bound to generate.
H2O uses Iced classes as the primary means of moving Java Objects around the cluster.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Make clone public, but without the annoying exception.
|
int |
frozenType()
Returns a small dense integer, which is cluster-wide unique per-class.
|
T |
read_impl(AutoBuffer ab)
Implementation of the
Iced serialization protocol, only called by
auto-genned code. |
T |
read(AutoBuffer ab)
Standard "read thyself from the AutoBuffer" call, using the fast Iced protocol.
|
T |
readJSON_impl(AutoBuffer ab)
Implementation of the
Iced serialization protocol, only called by
auto-genned code. |
T |
readJSON(AutoBuffer ab)
Standard "read thyself from the AutoBuffer" call, using JSON.
|
AutoBuffer |
write_impl(AutoBuffer ab)
Implementation of the
Iced serialization protocol, only called by
auto-genned code. |
AutoBuffer |
write(AutoBuffer ab)
Standard "write thyself into the AutoBuffer" call, using the fast Iced
protocol.
|
AutoBuffer |
writeJSON_impl(AutoBuffer ab)
Implementation of the
Iced serialization protocol, only called by
auto-genned code. |
AutoBuffer |
writeJSON(AutoBuffer ab)
Standard "write thyself into the AutoBuffer" call, using JSON.
|
AutoBuffer write(AutoBuffer ab)
Icer classes.ab - AutoBuffer to write this object to.AutoBuffer for flow-coding.T read(AutoBuffer ab)
Icer classes.ab - AutoBuffer to read this object from.AutoBuffer writeJSON(AutoBuffer ab)
Icer classes.ab - AutoBuffer to write this object to.AutoBuffer for flow-coding.T readJSON(AutoBuffer ab)
Icer classes.ab - AutoBuffer to read this object from.int frozenType()
java.lang.Object clone()
AutoBuffer write_impl(AutoBuffer ab)
Iced serialization protocol, only called by
auto-genned code. Not intended to be called by user code. Override only
for custom Iced serializers.ab - AutoBuffer to write this object to.AutoBuffer for flow-coding.T read_impl(AutoBuffer ab)
Iced serialization protocol, only called by
auto-genned code. Not intended to be called by user code. Override only
for custom Iced serializers.ab - AutoBuffer to read this object from.AutoBuffer writeJSON_impl(AutoBuffer ab)
Iced serialization protocol, only called by
auto-genned code. Not intended to be called by user code. Override only
for custom Iced serializers.ab - AutoBuffer to write this object to.AutoBuffer for flow-coding.T readJSON_impl(AutoBuffer ab)
Iced serialization protocol, only called by
auto-genned code. Not intended to be called by user code. Override only
for custom Iced serializers.D - Type of returned objectab - AutoBuffer to read this object from.