Top Description Inners Methods
org.h2.mvstore.type

public Interface StatefulDataType<D>

Known Direct Implementers
org.h2.mvstore.db.RowDataType, org.h2.mvstore.db.ValueDataType, org.h2.mvstore.tx.VersionedValueType
Type Parameters
<D>
type of opaque parameter passed as an operational context to Factory.create()
Imports
java.nio.ByteBuffer, org.h2.mvstore.WriteBuffer

A data type that allows to save its state.
Author
Andrei Tokar

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
StatefulDataType.Factory<
the database type
D
>

A factory for data types.

Method Summary

Modifier and TypeMethod and Description
public StatefulDataType.Factory<D>
public void
save(WriteBuffer
the target buffer
buff
,
MetaType<D>
the meta type
metaType
)

Save the state.

Method Detail

getFactoryback to summary
public StatefulDataType.Factory<D> getFactory()
saveback to summary
public void save(WriteBuffer buff, MetaType<D> metaType)

Save the state.

Parameters
buff:WriteBuffer

the target buffer

metaType:MetaType<D>

the meta type

org.h2.mvstore.type back to summary

public Interface StatefulDataType.Factory<D>

Known Direct Implementers
org.h2.mvstore.db.RowDataType.Factory, org.h2.mvstore.db.ValueDataType.Factory, org.h2.mvstore.tx.VersionedValueType.Factory
Type Parameters
<D>
the database type

A factory for data types.

Method Summary

Modifier and TypeMethod and Description
public DataType<?>

Returns:

the data type
create
(ByteBuffer
the buffer the source buffer
buff
,
MetaType<D>
the type
metaDataType
,
D
the database
database
)

Reads the data type.

Method Detail

createback to summary
public DataType<?> create(ByteBuffer buff, MetaType<D> metaDataType, D database)

Reads the data type.

Parameters
buff:ByteBuffer

the buffer the source buffer

metaDataType:MetaType<D>

the type

database:D

the database

Returns:DataType<?>

the data type