本文整理汇总了Java中org.hsqldb.rowio.RowOutputInterface.writeInt方法的典型用法代码示例。如果您正苦于以下问题:Java RowOutputInterface.writeInt方法的具体用法?Java RowOutputInterface.writeInt怎么用?Java RowOutputInterface.writeInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hsqldb.rowio.RowOutputInterface
的用法示例。
在下文中一共展示了RowOutputInterface.writeInt方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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 = getNext();
out.writeData(meta.getExtendedColumnCount(), meta.columnTypes,
data, null, null);
}
reset();
}
示例2: 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();
}
示例3: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out, LongLookup lookup) {
long leftTemp = getTranslatePointer(iLeft, lookup);
long rightTemp = getTranslatePointer(iRight, lookup);
long parentTemp = getTranslatePointer(iParent, lookup);
int ext = 0;
ext |= (int) ((parentTemp & 0xff00000000L) >> 8);
ext |= (int) ((leftTemp & 0xff00000000L) >> 16);
ext |= (int) ((rightTemp & 0xff00000000L) >> 24);
if (ext == 0) {
ext = iBalance;
} else {
ext |= (iBalance & 0xff);
}
out.writeInt(ext);
out.writeInt((int) leftTemp);
out.writeInt((int) rightTemp);
out.writeInt((int) parentTemp);
}
示例4: 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();
}
示例5: 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);
}
}
示例6: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out) {
out.writeInt(iBalance);
out.writeInt((iLeft == NO_POS) ? 0
: iLeft);
out.writeInt((iRight == NO_POS) ? 0
: iRight);
out.writeInt((iParent == NO_POS) ? 0
: iParent);
}
示例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: writeSimple
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void writeSimple(RowOutputInterface out, ResultMetaData meta) {
out.writeInt(size);
for (int i = 0; i < size; i++) {
Object[] data = table[i];
out.writeData(meta.getColumnCount(), meta.columnTypes, data, null,
null);
}
}
示例9: writeTranslate
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void writeTranslate(RowOutputInterface out, IntLookup lookup) {
out.writeInt(iBalance);
writeTranslatePointer(iLeft, out, lookup);
writeTranslatePointer(iRight, out, lookup);
writeTranslatePointer(iParent, out, lookup);
}
示例10: 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);
}
}
示例11: writeDataType
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
void writeDataType(RowOutputInterface out, Type type) {
out.writeType(type.typeCode);
out.writeLong(type.precision);
out.writeInt(type.scale);
}
示例12: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out, LongLookup lookup) {
int[] array = bitMap.getIntArray();
int capacity = array.length;
out.setStorageSize(storageSize);
for (int i = 0; i < capacity; i++) {
out.writeInt(array[i]);
}
out.writeEnd();
}
示例13: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out) {
int capacity = values.length;
for (int i = 0; i < capacity; i++) {
out.writeInt(values[i]);
}
out.writeEnd();
hasChanged = false;
}
示例14: write
import org.hsqldb.rowio.RowOutputInterface; //导入方法依赖的package包/类
public void write(RowOutputInterface out) {
int[] array = bitMap.getIntArray();
int capacity = array.length;
for (int i = 0; i < capacity; i++) {
out.writeInt(array[i]);
}
out.writeEnd();
hasChanged = false;
}