本文整理汇总了Java中org.hsqldb.rowio.RowInputInterface.readData方法的典型用法代码示例。如果您正苦于以下问题:Java RowInputInterface.readData方法的具体用法?Java RowInputInterface.readData怎么用?Java RowInputInterface.readData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hsqldb.rowio.RowInputInterface
的用法示例。
在下文中一共展示了RowInputInterface.readData方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RowDiskDataChange
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
/**
* Constructor when read from the disk into the Cache.
*
* @param t table
* @param in data source
* @throws IOException
*/
public RowDiskDataChange(Session session, TableBase t,
RowInputInterface in) throws IOException {
super(t, in);
targetTable = t.database.schemaManager.findTable(session,
(String) rowData[COL_POS_TABLE_NAME],
(String) rowData[COL_POS_SCHEMA_NAME], null);
if ((Boolean) rowData[COL_POS_IS_UPDATE]) {
updateData = in.readData(targetTable.colTypes);
RowInputBinary bin = (RowInputBinary) in;
if (bin.readNull()) {
updateColMap = null;
} else {
updateColMap = bin.readIntArray();
}
} else {
updateData = null;
updateColMap = null;
}
}
示例2: CachedRow
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
/**
* Constructor when read from the disk into the Cache.
*
* @param t table
* @param in data source
* @throws IOException
* @throws HsqlException
*/
public CachedRow(Table t,
RowInputInterface in) throws IOException, HsqlException {
tTable = t;
iPos = in.getPos();
storageSize = in.getSize();
int indexcount = t.getIndexCount();
nPrimaryNode = Node.newNode(this, in, 0, t);
Node n = nPrimaryNode;
for (int i = 1; i < indexcount; i++) {
n.nNext = Node.newNode(this, in, i, t);
n = n.nNext;
}
oData = in.readData(tTable.getColumnTypes());
}
示例3: RowAVLDisk
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
/**
* Constructor when read from the disk into the Cache.
*
* @param t table
* @param in data source
* @throws IOException
*/
public RowAVLDisk(TableBase t,
RowInputInterface in) throws IOException {
tTable = t;
position = in.getPos();
storageSize = in.getSize();
int indexcount = t.getIndexCount();
nPrimaryNode = new NodeAVLDisk(this, in, 0);
NodeAVL n = nPrimaryNode;
for (int i = 1; i < indexcount; i++) {
n.nNext = new NodeAVLDisk(this, in, i);
n = n.nNext;
}
rowData = in.readData(tTable.getColumnTypes());
}
示例4: read
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void read(RowInputInterface in,
ResultMetaData meta) throws IOException {
id = in.readLong();
size = in.readInt();
currentOffset = in.readInt();
baseBlockSize = in.readInt();
if (table.length < baseBlockSize) {
table = new Object[baseBlockSize][];
}
for (int i = 0; i < baseBlockSize; i++) {
table[i] = in.readData(meta.columnTypes);
}
}
示例5: CachedRow
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
/**
* Constructor when read from the disk into the Cache.
*
* @param t table
* @param in data source
* @throws IOException
* @throws HsqlException
*/
public CachedRow(Table t,
RowInputInterface in) throws IOException, HsqlException {
tTable = t;
iPos = in.getPos();
storageSize = in.getSize();
int indexcount = t.getIndexCount();
nPrimaryNode = Node.newNode(this, in, 0, t);
Node n = nPrimaryNode;
for (int i = 1; i < indexcount; i++) {
n.nNext = Node.newNode(this, in, i, t);
n = n.nNext;
}
oData = in.readData(tTable.getColumnTypes(), tTable.columnCount);
setPos(iPos);
// change from 1.7.0 format - the check is no longer read or written
// Trace.check(in.readIntData() == iPos, Trace.INPUTSTREAM_ERROR);
}
示例6: CachedDataRow
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
/**
* Constructor when read from the disk into the Cache. The link with
* the Nodes is made separetly.
*/
CachedDataRow(Table t,
RowInputInterface in) throws IOException, HsqlException {
tTable = t;
iPos = in.getPos();
storageSize = in.getSize();
oData = in.readData(tTable.getColumnTypes());
hasDataChanged = false;
}
示例7: readSimple
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void readSimple(RowInputInterface in, ResultMetaData meta) {
size = in.readInt();
if (table.length < size) {
table = new Object[size][];
}
for (int i = 0; i < size; i++) {
table[i] = in.readData(meta.columnTypes);
}
}
示例8: read
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void read(RowInputInterface in, ResultMetaData meta) {
id = in.readLong();
size = in.readInt();
currentOffset = in.readInt();
baseBlockSize = in.readInt();
if (table.length < baseBlockSize) {
table = new Object[baseBlockSize][];
}
for (int i = 0; i < baseBlockSize; i++) {
table[i] = in.readData(meta.columnTypes);
}
}
示例9: readSimple
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void readSimple(RowInputInterface in,
ResultMetaData meta)
throws IOException {
size = in.readInt();
if (table.length < size) {
table = new Object[size][];
}
for (int i = 0; i < size; i++) {
table[i] = in.readData(meta.columnTypes);
}
}
示例10: readSimple
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void readSimple(RowInputInterface in,
ResultMetaData meta) throws IOException {
size = in.readInt();
if (table.length < size) {
table = new Object[size][];
}
for (int i = 0; i < size; i++) {
table[i] = in.readData(meta.columnTypes);
}
}
示例11: CachedDataRow
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
/**
* Constructor when read from the disk into the Cache. The link with
* the Nodes is made separetly.
*/
CachedDataRow(Table t,
RowInputInterface in) throws IOException, HsqlException {
tTable = t;
iPos = in.getPos();
storageSize = in.getSize();
oData = in.readData(tTable.getColumnTypes(), tTable.columnCount);
setPos(iPos);
}
示例12: RowAVLDiskLarge
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
/**
* Constructor when read from the disk into the Cache.
*
* @param t table
* @param in data source
* @throws IOException
*/
public RowAVLDiskLarge(TableBase t, RowInputInterface in) throws IOException {
super(t);
position = in.getPos();
storageSize = in.getSize();
int indexcount = t.getIndexCount();
nPrimaryNode = new NodeAVLDiskLarge(this, in, 0);
NodeAVL n = nPrimaryNode;
for (int i = 1; i < indexcount; i++) {
n.nNext = new NodeAVLDiskLarge(this, in, i);
n = n.nNext;
}
rowData = in.readData(table.getColumnTypes());
}
示例13: RowAVLDisk
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
/**
* Constructor when read from the disk into the Cache.
*
* @param t table
* @param in data source
* @throws IOException
*/
public RowAVLDisk(TableBase t, RowInputInterface in) throws IOException {
super(t, (Object[]) null);
position = in.getPos();
storageSize = in.getSize();
int indexcount = t.getIndexCount();
nPrimaryNode = new NodeAVLDisk(this, in, 0);
NodeAVL n = nPrimaryNode;
for (int i = 1; i < indexcount; i++) {
n.nNext = new NodeAVLDisk(this, in, i);
n = n.nNext;
}
rowData = in.readData(table.getColumnTypes());
}
示例14: get
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public CachedObject get(CachedObject object, RowInputInterface in) {
Object[] rowData = in.readData(table.getColumnTypes());
((RowAVLDiskData) object).setData(rowData);
return object;
}