use of org.apache.hyracks.storage.am.common.freepage.LinkedMetadataPageManagerFactory in project asterixdb by apache.
the class BTreeTestHarness method setUp.
public void setUp() throws HyracksDataException {
ctx = TestUtils.create(getHyracksFrameSize());
TestStorageManagerComponentHolder.init(pageSize, numPages, maxOpenFiles);
bufferCache = TestStorageManagerComponentHolder.getBufferCache(ctx.getJobletContext().getServiceContext());
fileMapProvider = TestStorageManagerComponentHolder.getFileMapProvider();
file = ctx.getIoManager().getFileReference(0, simpleDateFormat.format(new Date()));
pageManagerFactory = new LinkedMetadataPageManagerFactory();
rnd.setSeed(RANDOM_SEED);
}
use of org.apache.hyracks.storage.am.common.freepage.LinkedMetadataPageManagerFactory in project asterixdb by apache.
the class BTreeModificationOperationCallbackTest method createIndexInstance.
@Override
protected void createIndexInstance() throws Exception {
IMetadataPageManagerFactory freePageManagerFactory = new LinkedMetadataPageManagerFactory();
IMetadataPageManager freePageManager = freePageManagerFactory.createPageManager(harness.getBufferCache());
index = BTreeUtils.createBTree(harness.getBufferCache(), harness.getFileMapProvider(), SerdeUtils.serdesToTypeTraits(keySerdes), SerdeUtils.serdesToComparatorFactories(keySerdes, keySerdes.length), BTreeLeafFrameType.REGULAR_NSM, harness.getFileReference(), freePageManager);
}
Aggregations