Top Fields Constructors Methods
org.hsqldb.rowio

public Class RowOutputBinaryEncode

extends RowOutputBinary
Class Inheritance
Imports
org.hsqldb.Row, org.hsqldb.persist.Crypto, org.hsqldb.types.Type

Author
Fred Toussi (fredt@users dot sourceforge.net)
Since
1.9.0
Version
2.0.1

Field Summary

Modifier and TypeField and Description
pack-priv final Crypto
Inherited from org.hsqldb.rowio.RowOutputBinary:
INT_STORE_SIZEmaskscalesizePositionstorageSize

Constructor Summary

AccessConstructor and Description
public
RowOutputBinaryEncode(Crypto crypto, int initialSize, int scale)

Method Summary

Modifier and TypeMethod and Description
public RowOutputInterface
public int

Returns:

size of byte array
getSize
(Row
- a database row
row
)

Overrides org.hsqldb.rowio.RowOutputBinary.getSize.

Implements org.hsqldb.rowio.RowOutputInterface.getSize.

Calculate the size of byte array required to store a row.

public void
writeData(Row row, Type[] types)

Overrides org.hsqldb.rowio.RowOutputBinary.writeData.

Implements org.hsqldb.rowio.RowOutputInterface.writeData.

This method is called to write data for a table row.

Inherited from org.hsqldb.rowio.RowOutputBinary:
ensureRoomgetSizegetSizegetStorageSizeresetresetresetscaleFilePositionsetModesetStorageSizewriteArraywriteArraywriteBigintwriteBinarywriteBitwriteBlobwriteBooleanwriteByteArraywriteByteArray16writeByteswriteCharwriteCharArraywriteClobwriteDatewriteDaySecondIntervalwriteDecimalwriteEndwriteFieldTypewriteIntDatawriteIntegerwriteNullwriteOtherwriteRealwriteSizewriteSmallintwriteStringwriteTimewriteTimestampwriteTypewriteUUIDwriteYearMonthInterval

Field Detail

cryptoback to summary
pack-priv final Crypto crypto

Constructor Detail

RowOutputBinaryEncodeback to summary
public RowOutputBinaryEncode(Crypto crypto, int initialSize, int scale)

Method Detail

duplicateback to summary
public RowOutputInterface duplicate()

Overrides org.hsqldb.rowio.RowOutputBinary.duplicate.

Implements org.hsqldb.rowio.RowOutputInterface.duplicate.

getSizeback to summary
public int getSize(Row row)

Overrides org.hsqldb.rowio.RowOutputBinary.getSize.

Implements org.hsqldb.rowio.RowOutputInterface.getSize.

Calculate the size of byte array required to store a row.

Parameters
row:Row

- a database row

Returns:int

size of byte array

writeDataback to summary
public void writeData(Row row, Type[] types)

Overrides org.hsqldb.rowio.RowOutputBinary.writeData.

Implements org.hsqldb.rowio.RowOutputInterface.writeData.

Doc from org.hsqldb.rowio.RowOutputBase.writeData.

This method is called to write data for a table row.