本文整理汇总了Java中org.hsqldb.rowio.RowInputInterface.getPos方法的典型用法代码示例。如果您正苦于以下问题:Java RowInputInterface.getPos方法的具体用法?Java RowInputInterface.getPos怎么用?Java RowInputInterface.getPos使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.hsqldb.rowio.RowInputInterface
的用法示例。
在下文中一共展示了RowInputInterface.getPos方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: read
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void read(RowInputInterface in) {
this.position = in.getPos();
int capacity = tableIds.length;
for (int i = 0; i < capacity; i++) {
tableIds[i] = in.readInt();
}
for (int i = 0; i < capacity; i++) {
bitmapAddress[i] = in.readInt();
}
for (int i = 0; i < capacity; i++) {
freeSpace[i] = in.readChar();
}
for (int i = 0; i < capacity; i++) {
freeSpaceBlock[i] = in.readChar();
}
hasChanged = false;
}
示例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) {
this.position = in.getPos();
int[] array = bitMap.getIntArray();
int capacity = array.length;
try {
for (int i = 0; i < capacity; i++) {
array[i] = in.readInt();
}
} catch (IOException e) {
throw Error.error(ErrorCode.GENERAL_IO_ERROR, e);
}
hasChanged = false;
}
示例5: read
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void read(RowInputInterface in) {
this.position = in.getPos();
int capacity = values.length;
try {
for (int i = 0; i < capacity; i++) {
values[i] = in.readInt();
}
} catch (IOException e) {
throw Error.error(ErrorCode.GENERAL_IO_ERROR, e);
}
hasChanged = false;
}
示例6: 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);
}
示例7: RowAVLDiskData
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
/**
* Constructor when read from the disk into the Cache. The link with
* the Nodes is made separetly.
*/
public RowAVLDiskData(RowStoreAVLDiskData store, TableBase t,
RowInputInterface in) throws IOException {
super(t, (Object[]) null);
setNewNodes(store);
position = in.getPos();
storageSize = in.getSize();
rowData = in.readData(table.getColumnTypes());
hasDataChanged = false;
this.store = store;
}
示例8: RowAVLDiskData
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
/**
* Constructor when read from the disk into the Cache. The link with
* the Nodes is made separetly.
*/
public RowAVLDiskData(TableBase t,
RowInputInterface in)
throws IOException {
tTable = t;
tableId = t.getId();
position = in.getPos();
storageSize = in.getSize();
rowData = in.readData(tTable.getColumnTypes());
hasDataChanged = false;
}
示例9: 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;
}
示例10: read
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void read(RowInputInterface in) {
this.position = in.getPos();
int capacity = tableIds.length;
try {
for (int i = 0; i < capacity; i++) {
tableIds[i] = in.readInt();
}
for (int i = 0; i < capacity; i++) {
bitmapAddress[i] = in.readInt();
}
for (int i = 0; i < capacity; i++) {
freeSpace[i] = in.readChar();
}
for (int i = 0; i < capacity; i++) {
freeSpaceBlock[i] = in.readChar();
}
} catch (IOException e) {
throw Error.error(ErrorCode.GENERAL_IO_ERROR, e);
}
hasChanged = false;
}
示例11: RowAVLDiskData
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
/**
* Constructor when read from the disk into the Cache. The link with
* the Nodes is made separetly.
*/
public RowAVLDiskData(PersistentStore store, TableBase t,
RowInputInterface in) throws IOException {
super(t, (Object[]) null);
setNewNodes(store);
position = in.getPos();
storageSize = in.getSize();
rowData = in.readData(table.getColumnTypes());
hasDataChanged = false;
this.store = store;
}
示例12: 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);
}
示例13: 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());
}
示例14: read
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void read(RowInputInterface in) {
this.position = in.getPos();
int[] array = bitMap.getIntArray();
int capacity = array.length;
for (int i = 0; i < capacity; i++) {
array[i] = in.readInt();
}
hasChanged = false;
}
示例15: read
import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void read(RowInputInterface in) {
this.position = in.getPos();
int capacity = values.length;
for (int i = 0; i < capacity; i++) {
values[i] = in.readInt();
}
hasChanged = false;
}