本文整理汇总了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];
}
示例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;
}
示例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];
}
示例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()];
}
示例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);
}
示例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()];
}