@Override public int getRecordsPerPage() { return actual.getRecordsPerPage(); }
public BatchingIdGetter( RecordStore<? extends AbstractBaseRecord> source ) { this( source, source.getRecordsPerPage() ); }
StoreScanAsInputIterator( RecordStore<RECORD> store ) { this.batchSize = store.getRecordsPerPage() * 10; this.highId = store.getHighId(); }
private static Configuration configWithRecordsPerPageBasedBatchSize( Configuration source, RecordStore<?> store ) { return Configuration.withBatchSize( source, store.getRecordsPerPage() * 10 ); }
@Override protected <R extends AbstractBaseRecord> RecordStore<R> wrapStore( RecordStore<R> store ) { AccessStats accessStats = new AccessStats( store.getClass().getSimpleName(), store.getRecordsPerPage() ); accessStatistics.register( store, accessStats ); return new AccessStatsKeepingRecordStore( store, accessStats ); }
public void warmUpCache() { int recordsPerPage = store.getRecordsPerPage(); long id = 0; long half = store.getHighId() / 2; RECORD record = store.newRecord(); while ( id < half ) { store.getRecord( id, record, FORCE ); id += recordsPerPage - 1; } } }
@Override public int getRecordsPerPage() { return actual.getRecordsPerPage(); }
public BatchingIdGetter( RecordStore<? extends AbstractBaseRecord> source ) { this( source, source.getRecordsPerPage() ); }
StoreScanAsInputIterator( RecordStore<RECORD> store ) { this.batchSize = store.getRecordsPerPage() * 10; this.highId = store.getHighId(); }
private static Configuration configWithRecordsPerPageBasedBatchSize( Configuration source, RecordStore<?> store ) { return Configuration.withBatchSize( source, store.getRecordsPerPage() * 10 ); }