当前位置: 首页>>代码示例>>Java>>正文


Java RowInputInterface.getPos方法代码示例

本文整理汇总了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;
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:25,代码来源:DirectoryBlockCachedObject.java

示例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());
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:29,代码来源:CachedRow.java

示例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());
}
 
开发者ID:s-store,项目名称:s-store,代码行数:28,代码来源:RowAVLDisk.java

示例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;
    }
 
开发者ID:Julien35,项目名称:dev-courses,代码行数:18,代码来源:BitMapCachedObject.java

示例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;
    }
 
开发者ID:Julien35,项目名称:dev-courses,代码行数:17,代码来源:IntArrayCachedObject.java

示例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);
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:34,代码来源:CachedRow.java

示例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;
}
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:18,代码来源:RowAVLDiskData.java

示例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;
}
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:16,代码来源:RowAVLDiskData.java

示例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;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:14,代码来源:CachedDataRow.java

示例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;
    }
 
开发者ID:Julien35,项目名称:dev-courses,代码行数:29,代码来源:DirectoryBlockCachedObject.java

示例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;
}
 
开发者ID:Julien35,项目名称:dev-courses,代码行数:18,代码来源:RowAVLDiskData.java

示例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);
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:15,代码来源:CachedDataRow.java

示例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());
}
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:28,代码来源:RowAVLDiskLarge.java

示例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;
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:14,代码来源:BitMapCachedObject.java

示例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;
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:13,代码来源:IntArrayCachedObject.java


注:本文中的org.hsqldb.rowio.RowInputInterface.getPos方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。