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


Java RowInputInterface.readData方法代码示例

本文整理汇总了Java中org.hsqldb.rowio.RowInputInterface.readData方法的典型用法代码示例。如果您正苦于以下问题:Java RowInputInterface.readData方法的具体用法?Java RowInputInterface.readData怎么用?Java RowInputInterface.readData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.hsqldb.rowio.RowInputInterface的用法示例。


在下文中一共展示了RowInputInterface.readData方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: RowDiskDataChange

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 RowDiskDataChange(Session session, TableBase t,
                         RowInputInterface in) throws IOException {

    super(t, in);

    targetTable = t.database.schemaManager.findTable(session,
            (String) rowData[COL_POS_TABLE_NAME],
            (String) rowData[COL_POS_SCHEMA_NAME], null);

    if ((Boolean) rowData[COL_POS_IS_UPDATE]) {
        updateData = in.readData(targetTable.colTypes);

        RowInputBinary bin = (RowInputBinary) in;

        if (bin.readNull()) {
            updateColMap = null;
        } else {
            updateColMap = bin.readIntArray();
        }
    } else {
        updateData   = null;
        updateColMap = null;
    }
}
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:32,代码来源:RowDiskDataChange.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,项目名称:sstore-soft,代码行数:28,代码来源:RowAVLDisk.java

示例4: read

import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void read(RowInputInterface in,
                 ResultMetaData meta) throws IOException {

    id            = in.readLong();
    size          = in.readInt();
    currentOffset = in.readInt();
    baseBlockSize = in.readInt();

    if (table.length < baseBlockSize) {
        table = new Object[baseBlockSize][];
    }

    for (int i = 0; i < baseBlockSize; i++) {
        table[i] = in.readData(meta.columnTypes);
    }
}
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:17,代码来源:RowSetNavigatorClient.java

示例5: 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

示例6: 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

示例7: readSimple

import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void readSimple(RowInputInterface in, ResultMetaData meta) {

        size = in.readInt();

        if (table.length < size) {
            table = new Object[size][];
        }

        for (int i = 0; i < size; i++) {
            table[i] = in.readData(meta.columnTypes);
        }
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:13,代码来源:RowSetNavigatorClient.java

示例8: read

import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void read(RowInputInterface in, ResultMetaData meta) {

        id            = in.readLong();
        size          = in.readInt();
        currentOffset = in.readInt();
        baseBlockSize = in.readInt();

        if (table.length < baseBlockSize) {
            table = new Object[baseBlockSize][];
        }

        for (int i = 0; i < baseBlockSize; i++) {
            table[i] = in.readData(meta.columnTypes);
        }
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:16,代码来源:RowSetNavigatorClient.java

示例9: readSimple

import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void readSimple(RowInputInterface in,
                       ResultMetaData meta)
                       throws IOException {

    size = in.readInt();

    if (table.length < size) {
        table = new Object[size][];
    }

    for (int i = 0; i < size; i++) {
        table[i] = in.readData(meta.columnTypes);
    }
}
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:15,代码来源:RowSetNavigatorClient.java

示例10: readSimple

import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public void readSimple(RowInputInterface in,
                       ResultMetaData meta) throws IOException {

    size = in.readInt();

    if (table.length < size) {
        table = new Object[size][];
    }

    for (int i = 0; i < size; i++) {
        table[i] = in.readData(meta.columnTypes);
    }
}
 
开发者ID:Julien35,项目名称:dev-courses,代码行数:14,代码来源:RowSetNavigatorClient.java

示例11: 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

示例12: 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

示例13: 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 {

    super(t, (Object[]) null);

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

示例14: get

import org.hsqldb.rowio.RowInputInterface; //导入方法依赖的package包/类
public CachedObject get(CachedObject object, RowInputInterface in) {

        Object[] rowData = in.readData(table.getColumnTypes());

        ((RowAVLDiskData) object).setData(rowData);

        return object;
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:9,代码来源:RowStoreAVLDiskData.java


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