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


Java ArrayUtil.fillArray方法代码示例

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


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

示例1: release

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void release() {

        if (!isCached) {
            destroy();
        }

        if (isCached) {
            cache.adjustStoreCount(-1);

            cache    = null;
            isCached = false;
        }

        elementCount.set(0);
        ArrayUtil.fillArray(accessorList, null);
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:17,代码来源:RowStoreAVLHybrid.java

示例2: release

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void release() {

        ArrayUtil.fillArray(accessorList, null);

        if (isCached) {
            cache.storeCount--;

            if (cache.storeCount == 0) {
                cache.clear();
            }

            cache    = null;
            isCached = false;
        } else {
            rowIdMap.clear();
        }

        manager.setStore(table, null);
    }
 
开发者ID:s-store,项目名称:s-store,代码行数:20,代码来源:RowStoreAVLHybrid.java

示例3: removeAll

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void removeAll() {

        destroy();
        setTimestamp(0);
        elementCount.set(0);
        ArrayUtil.fillArray(accessorList, null);
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:8,代码来源:RowStoreAVLMemory.java

示例4: release

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void release() {

        destroy();
        setTimestamp(0);
        elementCount.set(0);
        ArrayUtil.fillArray(accessorList, null);
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:8,代码来源:RowStoreAVLMemory.java

示例5: changeToDiskTable

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public final void changeToDiskTable(Session session) {

        cache =
            ((PersistentStoreCollectionSession) manager).getSessionDataCache();

        if (cache != null) {
            tableSpace = cache.spaceManager.getTableSpace(
                DataSpaceManager.tableIdDefault);

            IndexAVL    idx      = (IndexAVL) indexList[0];
            NodeAVL     root     = (NodeAVL) accessorList[0];
            RowIterator iterator = table.rowIterator(this);

            ArrayUtil.fillArray(accessorList, null);
            elementCount.set(0);

            isCached = true;

            cache.adjustStoreCount(1);

            while (iterator.hasNext()) {
                Row row = iterator.getNextRow();
                Row newRow = (Row) getNewCachedObject(session, row.getData(),
                                                      false);

                indexRow(session, newRow);
            }

            idx.unlinkNodes(root);
        }

        maxMemoryRowCount = Integer.MAX_VALUE;
    }
 
开发者ID:Julien35,项目名称:dev-courses,代码行数:34,代码来源:RowStoreAVLHybrid.java

示例6: removeAll

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void removeAll() {

        destroy();
        elementCount.set(0);
        ArrayUtil.fillArray(accessorList, null);
    }
 
开发者ID:Julien35,项目名称:dev-courses,代码行数:7,代码来源:RowStoreAVLDiskData.java

示例7: removeAll

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void removeAll() {

        elementCount.set(0);
        cache.spaceManager.freeTableSpace(tableSpace.getSpaceID());
        ArrayUtil.fillArray(accessorList, null);
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:7,代码来源:RowStoreAVLDisk.java

示例8: addAllColumns

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void addAllColumns() {

        if (usedColumns != null) {
            ArrayUtil.fillArray(usedColumns, true);
        }
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:7,代码来源:RangeVariable.java

示例9: removeAll

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void removeAll() {
    rowIdMap.clear();
    ArrayUtil.fillArray(accessorList, null);
}
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:5,代码来源:RowStoreAVLMemory.java

示例10: release

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
public void release() {

        ArrayUtil.fillArray(accessorList, null);
        table.database.logger.closeTextCache((Table) table);

        cache = null;
    }
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:8,代码来源:RowStoreAVLDiskData.java

示例11: clearParameters

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
/**
 * <!-- start generic documentation -->
 * Clears the current parameter values immediately.
 * <P>In general, parameter values remain in force for repeated use of a
 * statement. Setting a parameter value automatically clears its
 * previous value.  However, in some cases it is useful to immediately
 * release the resources used by the current parameter values; this can
 * be done by calling the method <code>clearParameters</code>.
 * <!-- end generic documentation -->
 *
 * @exception SQLException if a database access error occurs or
 * this method is called on a closed <code>PreparedStatement</code>
 */
public synchronized void clearParameters() throws SQLException {

    checkClosed();
    ArrayUtil.fillArray(parameterValues, null);
    ArrayUtil.clearArray(ArrayUtil.CLASS_CODE_BOOLEAN, parameterSet, 0,
                         parameterSet.length);
    ArrayUtil.clearArray(ArrayUtil.CLASS_CODE_BOOLEAN, parameterStream, 0,
                         parameterStream.length);
    ArrayUtil.clearArray(ArrayUtil.CLASS_CODE_LONG, streamLengths, 0,
                         parameterStream.length);
}
 
开发者ID:s-store,项目名称:s-store,代码行数:25,代码来源:JDBCPreparedStatement.java

示例12: setAttribute

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
private void setAttribute(Object property, int id) throws HsqlException {

        resultOut.setResultType(ResultConstants.SETSESSIONATTR);
        ArrayUtil.fillArray(resultOut.rRoot.data, null);

        resultOut.rRoot.data[id] = property;

        Result resultIn = execute(resultOut);

        if (resultIn.isError()) {
            throw Trace.error(resultIn);
        }
    }
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:14,代码来源:HSQLClientConnection.java

示例13: setAttribute

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
private void setAttribute(Object property, int id) throws HsqlException {

        resultOut.setResultType(ResultConstants.SETSESSIONATTR);
        ArrayUtil.fillArray(resultOut.rRoot.data, null);

        resultOut.rRoot.data[id] = property;

        Result resultIn = execute(resultOut);

        if (resultIn.mode == ResultConstants.ERROR) {
            throw Trace.error(resultIn);
        }
    }
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:14,代码来源:HSQLClientConnection.java

示例14: clearCalls

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
void clearCalls() {

        TriggerClass.callCount = 0;

        ArrayUtil.fillArray(TriggerClass.callCounts, 0);
    }
 
开发者ID:Julien35,项目名称:dev-courses,代码行数:7,代码来源:TestTriggers.java

示例15: clearParameters

import org.hsqldb.lib.ArrayUtil; //导入方法依赖的package包/类
/**
 * <!-- start generic documentation -->
 * Clears the current parameter values immediately. <p>
 *
 * In general, parameter values remain in force for repeated use of a
 * statement. Setting a parameter value automatically clears its
 * previous value.  However, in some cases it is useful to immediately
 * release the resources used by the current parameter values; this can
 * be done by calling the method <code>clearParameters</code>.<p>
 * <!-- end generic documentation -->
 *
 * @exception SQLException if a database access error occurs
 */
public void clearParameters() throws SQLException {
    checkClosed();
    ArrayUtil.fillArray(parameterValues, null);
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:18,代码来源:jdbcPreparedStatement.java


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