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


Java Session.getResultMemoryRowCount方法代码示例

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


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

示例1: RowSetNavigatorDataTable

import org.hsqldb.Session; //导入方法依赖的package包/类
public RowSetNavigatorDataTable(Session session,
                                QuerySpecification select) {

    super(session);

    this.rangePosition = select.resultRangePosition;
    maxMemoryRowCount  = session.getResultMemoryRowCount();
    visibleColumnCount = select.indexLimitVisible;
    table              = select.resultTable.duplicate();
    store = session.sessionData.getNewResultRowStore(table,
            !select.isAggregated);
    table.store       = store;
    isAggregate       = select.isAggregated;
    isSimpleAggregate = select.isAggregated && !select.isGrouped;
    reindexTable      = select.isGrouped;
    mainIndex         = select.mainIndex;
    fullIndex         = select.fullIndex;
    orderIndex        = select.orderIndex;
    groupIndex        = select.groupIndex;
    idIndex           = select.idIndex;
    tempRowData       = new Object[1];
}
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:23,代码来源:RowSetNavigatorDataTable.java

示例2: RowSetNavigatorData

import org.hsqldb.Session; //导入方法依赖的package包/类
public RowSetNavigatorData(Session session, QuerySpecification select) {

        this.session       = session;
        maxMemoryRowCount  = session.getResultMemoryRowCount();
        visibleColumnCount = select.indexLimitVisible;
        table              = select.resultTable.duplicate();
        table.store = store = session.sessionData.getNewResultRowStore(table,
                !select.isAggregated);
        isAggregate       = select.isAggregated;
        isSimpleAggregate = select.isAggregated && !select.isGrouped;
        reindexTable      = select.isGrouped;
        mainIndex         = select.mainIndex;
        fullIndex         = select.fullIndex;
        orderIndex        = select.orderIndex;
        groupIndex        = select.groupIndex;
    }
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:17,代码来源:RowSetNavigatorData.java

示例3: RowSetNavigatorDataTable

import org.hsqldb.Session; //导入方法依赖的package包/类
public RowSetNavigatorDataTable(Session session,
                                QuerySpecification select) {

    super(session);

    this.session       = session;
    this.rangePosition = select.resultRangePosition;
    maxMemoryRowCount  = session.getResultMemoryRowCount();
    visibleColumnCount = select.indexLimitVisible;
    table              = select.resultTable.duplicate();
    table.store = store = session.sessionData.getNewResultRowStore(table,
            !select.isAggregated);
    isAggregate       = select.isAggregated;
    isSimpleAggregate = select.isAggregated && !select.isGrouped;
    reindexTable      = select.isGrouped;
    mainIndex         = select.mainIndex;
    fullIndex         = select.fullIndex;
    orderIndex        = select.orderIndex;
    groupIndex        = select.groupIndex;
    idIndex           = select.idIndex;
    tempRowData       = new Object[1];
}
 
开发者ID:Julien35,项目名称:dev-courses,代码行数:23,代码来源:RowSetNavigatorDataTable.java

示例4: RowStoreAVLHybrid

import org.hsqldb.Session; //导入方法依赖的package包/类
public RowStoreAVLHybrid(Session session, TableBase table,
                             boolean diskBased) {

        this.table             = table;
        this.maxMemoryRowCount = session.getResultMemoryRowCount();
        this.useDisk           = diskBased;

        if (maxMemoryRowCount == 0) {
            this.useDisk = false;
        }

        if (table.getTableType() == TableBase.RESULT_TABLE) {
            setTimestamp(session.getActionTimestamp());
        }

// test code to force use of cache
/*
        if (diskBased) {
            this.maxMemoryRowCount = 0;
            this.useDisk           = true;
        }
*/

//
        resetAccessorKeys(session, table.getIndexList());

        nullsList = new boolean[table.getColumnCount()];
    }
 
开发者ID:tiweGH,项目名称:OpenDiabetes,代码行数:29,代码来源:RowStoreAVLHybrid.java

示例5: RowStoreAVLHybrid

import org.hsqldb.Session; //导入方法依赖的package包/类
public RowStoreAVLHybrid(Session session,
                             PersistentStoreCollection manager,
                             TableBase table, boolean useCache) {

        this.session           = session;
        this.manager           = manager;
        this.table             = table;
        this.maxMemoryRowCount = session.getResultMemoryRowCount();
        this.rowIdMap          = new IntKeyHashMapConcurrent();
        this.useCache          = useCache;
        this.isTempTable       = table.getTableType() == TableBase.TEMP_TABLE;

        if (table.getTableType() == TableBase.RESULT_TABLE) {
            timestamp = session.getActionTimestamp();
        }

// temp code to force use of cache
/*
        if (useCache) {
            cache = session.sessionData.getResultCache();

            if (cache != null) {
                isCached = useCache;

                cache.storeCount++;
            }
        }
*/

//
        resetAccessorKeys(table.getIndexList());
        manager.setStore(table, this);
    }
 
开发者ID:s-store,项目名称:sstore-soft,代码行数:34,代码来源:RowStoreAVLHybrid.java

示例6: RowStoreAVLHybrid

import org.hsqldb.Session; //导入方法依赖的package包/类
public RowStoreAVLHybrid(Session session,
                             PersistentStoreCollection manager,
                             TableBase table, boolean diskBased) {

        this.manager           = manager;
        this.table             = table;
        this.maxMemoryRowCount = session.getResultMemoryRowCount();
        this.useDisk           = diskBased;

        if (maxMemoryRowCount == 0) {
            this.useDisk = false;
        }

        if (table.getTableType() == TableBase.RESULT_TABLE) {
            setTimestamp(session.getActionTimestamp());
        }

// test code to force use of cache
/*
        if (diskBased) {
            this.maxMemoryRowCount = 0;
            this.useDisk           = true;
        }
*/

//
        resetAccessorKeys(session, table.getIndexList());
        manager.setStore(table, this);

        nullsList = new boolean[table.getColumnCount()];
    }
 
开发者ID:Julien35,项目名称:dev-courses,代码行数:32,代码来源:RowStoreAVLHybrid.java


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