本文整理汇总了Java中org.hsqldb.rowio.RowOutputInterface.writeData方法的典型用法代码示例。如果您正苦于以下问题:Java RowOutputInterface.writeData方法的具体用法?Java RowOutputInterface.writeData怎么用?Java RowOutputInterface.writeData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hsqldb.rowio.RowOutputInterface
的用法示例。
在下文中一共展示了RowOutputInterface.writeData方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out,
ResultMetaData meta) throws HsqlException, IOException {
int limit = size - currentOffset;
if (limit > table.length) {
limit = table.length;
}
out.writeLong(id);
out.writeInt(size);
out.writeInt(currentOffset);
out.writeInt(limit);
for (int i = 0; i < limit; i++) {
Object[] data = table[i];
out.writeData(meta.getColumnCount(), meta.columnTypes, data, null,
null);
}
}
示例2: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out, ResultMetaData meta) {
reset();
out.writeLong(id);
out.writeInt(size);
out.writeInt(0); // offset
out.writeInt(size);
while (hasNext()) {
Object[] data = getNext();
out.writeData(meta.getExtendedColumnCount(), meta.columnTypes,
data, null, null);
}
reset();
}
示例3: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out,
ResultMetaData meta) throws IOException {
reset();
out.writeLong(id);
out.writeInt(size);
out.writeInt(0); // offset
out.writeInt(size);
while (hasNext()) {
Object[] data = (Object[]) getNext();
out.writeData(meta.getExtendedColumnCount(), meta.columnTypes,
data, null, null);
}
reset();
}
示例4: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out, ResultMetaData meta) {
int limit = size - currentOffset;
if (limit > table.length) {
limit = table.length;
}
out.writeLong(id);
out.writeInt(size);
out.writeInt(currentOffset);
out.writeInt(limit);
for (int i = 0; i < limit; i++) {
Object[] data = table[i];
out.writeData(meta.getColumnCount(), meta.columnTypes, data, null,
null);
}
}
示例5: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out,
ResultMetaData meta) throws IOException {
beforeFirst();
out.writeLong(id);
out.writeInt(size);
out.writeInt(0); // offset
out.writeInt(size);
while (hasNext()) {
Object[] data = getNext();
out.writeData(meta.getColumnCount(), meta.columnTypes, data, null,
null);
}
beforeFirst();
}
示例6: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
/**
* Used exclusively by Cache to save the row to disk. New implementation in
* 1.7.2 writes out only the Node data if the table row data has not
* changed. This situation accounts for the majority of invocations as for
* each row deleted or inserted, the Nodes for several other rows will
* change.
*/
public void write(RowOutputInterface out) {
writeNodes(out);
if (hasDataChanged) {
out.writeData(this, table.colTypes);
out.writeEnd();
}
}
示例7: writeSimple
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void writeSimple(RowOutputInterface out,
ResultMetaData meta) throws IOException {
out.writeInt(size);
for (int i = 0; i < size; i++) {
Object[] data = table[i];
out.writeData(meta.getColumnCount(), meta.columnTypes, data, null,
null);
}
}
示例8: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
/**
* Writes the data to disk. Unlike CachedRow, hasChanged is never set
* to true when changes are made to the Nodes. (Nodes are in-memory).
* The only time this is used is when a new Row is added to the Caches.
*/
public void write(RowOutputInterface out) {
out.writeSize(storageSize);
out.writeData(oData, tTable);
out.writeEnd();
hasDataChanged = false;
}
示例9: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
/**
* Used exclusively by Cache to save the row to disk. New implementation in
* 1.7.2 writes out only the Node data if the table row data has not
* changed. This situation accounts for the majority of invocations as for
* each row deleted or inserted, the Nodes for several other rows will
* change.
*/
public void write(RowOutputInterface out) {
try {
writeNodes(out);
if (hasDataChanged) {
out.writeData(rowData, tTable.colTypes);
out.writeEnd();
hasDataChanged = false;
}
} catch (IOException e) {}
}
示例10: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
/**
* Used exclusively by Cache to save the row to disk. New implementation in
* 1.7.2 writes out only the Node data if the table row data has not
* changed. This situation accounts for the majority of invocations as for
* each row deleted or inserted, the Nodes for several other rows will
* change.
*/
public void write(RowOutputInterface out) {
writeNodes(out);
if (hasDataChanged) {
out.writeData(this, table.colTypes);
out.writeEnd();
hasDataChanged = false;
isNew = false;
}
}
示例11: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
/**
* Used exclusively by Cache to save the row to disk. New implementation
* in 1.7.2 writes out only the Node data if the table row data has not
* changed. This situation accounts for the majority of invocations as
* for each row deleted or inserted, the Nodes for several other rows
* will change.
*
* @param output data source
* @throws IOException
* @throws HsqlException
*/
public void write(RowOutputInterface out) {
try {
writeNodes(out);
if (hasDataChanged) {
out.writeData(oData, tTable);
out.writeEnd();
hasDataChanged = false;
}
} catch (IOException e) {}
}
示例12: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
/**
* Writes the data to disk. Unlike CachedRow, hasChanged is never set
* to true when changes are made to the Nodes. (Nodes are in-memory).
* The only time this is used is when a new Row is added to the Caches.
*/
public void write(RowOutputInterface out) {
out.writeSize(storageSize);
out.writeData(rowData, tTable.colTypes);
out.writeEnd();
hasDataChanged = false;
}
示例13: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out) {
writeNodes(out);
if (hasDataChanged) {
out.writeData(this, table.colTypes);
if (updateData != null) {
Type[] targetTypes = targetTable.colTypes;
out.writeData(targetTypes.length, targetTypes, updateData,
null, null);
RowOutputBinary bout = (RowOutputBinary) out;
if (updateColMap == null) {
bout.writeNull(Type.SQL_ARRAY_ALL_TYPES);
} else {
bout.writeArray(updateColMap);
}
}
out.writeEnd();
hasDataChanged = false;
}
}
示例14: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out, IntLookup lookup) {
out.writeSize(storageSize);
Node rownode = nPrimaryNode;
while (rownode != null) {
((DiskNode) rownode).writeTranslate(out, lookup);
rownode = rownode.nNext;
}
out.writeData(getData(), getTable());
out.writeEnd();
}