Search in sources :

Example 1 with LinkedMetadataPageManagerFactory

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);
}
Also used : Date(java.util.Date) LinkedMetadataPageManagerFactory(org.apache.hyracks.storage.am.common.freepage.LinkedMetadataPageManagerFactory)

Example 2 with LinkedMetadataPageManagerFactory

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);
}
Also used : IMetadataPageManagerFactory(org.apache.hyracks.storage.am.common.api.IMetadataPageManagerFactory) IMetadataPageManager(org.apache.hyracks.storage.am.common.api.IMetadataPageManager) LinkedMetadataPageManagerFactory(org.apache.hyracks.storage.am.common.freepage.LinkedMetadataPageManagerFactory)

Aggregations

LinkedMetadataPageManagerFactory (org.apache.hyracks.storage.am.common.freepage.LinkedMetadataPageManagerFactory)2 Date (java.util.Date)1 IMetadataPageManager (org.apache.hyracks.storage.am.common.api.IMetadataPageManager)1 IMetadataPageManagerFactory (org.apache.hyracks.storage.am.common.api.IMetadataPageManagerFactory)1