本文整理汇总了Java中org.hsqldb.rowio.RowOutputInterface.writeIntData方法的典型用法代码示例。如果您正苦于以下问题:Java RowOutputInterface.writeIntData方法的具体用法?Java RowOutputInterface.writeIntData怎么用?Java RowOutputInterface.writeIntData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hsqldb.rowio.RowOutputInterface
的用法示例。
在下文中一共展示了RowOutputInterface.writeIntData方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
void write(RowOutputInterface out) throws IOException, HsqlException {
if (Trace.DOASSERT) {
// fredt - assert not correct - row can be deleted from one index but
// not yet deleted from other indexes while the process of finding
// the node is in progress which may require saving the row
// to make way for new rows in the cache
// Trace.doAssert(iBalance != -2);
}
out.writeIntData(iBalance);
out.writeIntData((iLeft == NO_POS) ? 0
: iLeft);
out.writeIntData((iRight == NO_POS) ? 0
: iRight);
out.writeIntData((iParent == NO_POS) ? 0
: iParent);
}
示例2: writeTranslatePointer
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
private void writeTranslatePointer(int pointer, RowOutputInterface out,
org.hsqldb.lib.DoubleIntTable lookup)
throws IOException, HsqlException {
int newPointer = 0;
if (pointer != Node.NO_POS) {
int i = lookup.find(0, pointer);
if (i == -1) {
throw Trace.error(Trace.DiskNode_writeTranslatePointer);
}
newPointer = lookup.get(i, 1);
}
out.writeIntData(newPointer);
}
示例3: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
void write(RowOutputInterface out) throws IOException {
if (Trace.DOASSERT) {
// fredt - assert not correct - row can be deleted from one index but
// not yet deleted from other indexes while the process of finding
// the node is in progress which may require saving the row
// to make way for new rows in the cache
// Trace.doAssert(iBalance != -2);
}
out.writeIntData(iBalance);
out.writeIntData((iLeft == NO_POS) ? 0
: iLeft);
out.writeIntData((iRight == NO_POS) ? 0
: iRight);
out.writeIntData((iParent == NO_POS) ? 0
: iParent);
}
示例4: writeTranslate
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
void writeTranslate(RowOutputInterface out,
org.hsqldb.lib.DoubleIntTable lookup)
throws IOException, HsqlException {
out.writeIntData(iBalance);
writeTranslatePointer(iLeft, out, lookup);
writeTranslatePointer(iRight, out, lookup);
writeTranslatePointer(iParent, out, lookup);
}
示例5: writeTranslate
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
void writeTranslate(RowOutputInterface out, IntLookup lookup) {
out.writeIntData(iBalance);
writeTranslatePointer(iLeft, out, lookup);
writeTranslatePointer(iRight, out, lookup);
writeTranslatePointer(iParent, out, lookup);
}
示例6: writeTranslatePointer
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
private void writeTranslatePointer(int pointer, RowOutputInterface out,
IntLookup lookup) {
int newPointer = 0;
if (pointer != Node.NO_POS) {
newPointer = lookup.lookupFirstEqual(pointer);
}
out.writeIntData(newPointer);
}