org.hsqldb.rowio
Class RowOutputBinaryEncode
- java.lang.Object
-
- java.io.OutputStream
-
- org.hsqldb.lib.HsqlByteArrayOutputStream
-
- org.hsqldb.rowio.RowOutputBinary
-
- org.hsqldb.rowio.RowOutputBinaryEncode
-
- All Implemented Interfaces:
- java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.lang.AutoCloseable, java.lang.Cloneable, RowOutputInterface
public class RowOutputBinaryEncode extends RowOutputBinary
- Since:
- 1.9.0
-
-
Field Summary
Fields Modifier and Type Field and Description static intCACHED_ROW_160static intCACHED_ROW_170-
Fields inherited from class org.hsqldb.rowio.RowOutputBinary
INT_STORE_SIZE
-
-
Constructor Summary
Constructors Constructor and Description RowOutputBinaryEncode(Crypto crypto, int initialSize, int scale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description RowOutputInterfaceduplicate()HsqlByteArrayOutputStreamgetOutputStream()intgetSize(Row row)Calculate the size of byte array required to store a row.voidwriteData(int l, Type[] types, java.lang.Object[] data, HashMappedList cols, int[] primaryKeys)This method is called directly to write data for a delete statement.voidwriteData(Row row, Type[] types)This method is called to write data for a table row.voidwriteData(Type t, java.lang.Object o)-
Methods inherited from class org.hsqldb.rowio.RowOutputBinary
ensureRoom, getSize, getSize, getStorageSize, reset, reset, reset, writeArray, writeByteArray, writeCharArray, writeEnd, writeFieldType, writeIntData, writeNull, writeSize, writeString, writeType
-
Methods inherited from class org.hsqldb.lib.HsqlByteArrayOutputStream
close, fill, flush, getBuffer, setPosition, setSize, size, toByteArray, toString, toString, write, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeNoCheck, writeShort, writeTo, writeUTF
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hsqldb.rowio.RowOutputInterface
getBuffer, size, writeByte, writeChar, writeInt, writeLong, writeShort
-
-
-
-
Field Detail
-
CACHED_ROW_160
public static final int CACHED_ROW_160
- See Also:
- Constant Field Values
-
CACHED_ROW_170
public static final int CACHED_ROW_170
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RowOutputBinaryEncode
public RowOutputBinaryEncode(Crypto crypto, int initialSize, int scale)
-
-
Method Detail
-
writeData
public void writeData(Row row, Type[] types)
This method is called to write data for a table row.- Specified by:
writeDatain interfaceRowOutputInterface- Overrides:
writeDatain classRowOutputBinary
-
getSize
public int getSize(Row row)
Calculate the size of byte array required to store a row.- Specified by:
getSizein interfaceRowOutputInterface- Overrides:
getSizein classRowOutputBinary- Parameters:
row- - a database row- Returns:
- size of byte array
- Throws:
HsqlException- When data is inconsistent
-
duplicate
public RowOutputInterface duplicate()
- Specified by:
duplicatein interfaceRowOutputInterface- Overrides:
duplicatein classRowOutputBinary
-
writeData
public void writeData(int l, Type[] types, java.lang.Object[] data, HashMappedList cols, int[] primaryKeys)This method is called directly to write data for a delete statement.- Specified by:
writeDatain interfaceRowOutputInterface
-
writeData
public void writeData(Type t, java.lang.Object o)
-
getOutputStream
public HsqlByteArrayOutputStream getOutputStream()
- Specified by:
getOutputStreamin interfaceRowOutputInterface
-
-
DataMelt 3.0 © DataMelt by jWork.ORG