Search in sources :

Example 11 with ILSMMergePolicy

use of org.apache.hyracks.storage.am.lsm.common.api.ILSMMergePolicy in project asterixdb by apache.

the class ConstantMergePolicyFactory method createMergePolicy.

@Override
public ILSMMergePolicy createMergePolicy(Map<String, String> configuration, INCServiceContext ctx) {
    ILSMMergePolicy policy = new ConstantMergePolicy();
    policy.configure(configuration);
    return policy;
}
Also used : ILSMMergePolicy(org.apache.hyracks.storage.am.lsm.common.api.ILSMMergePolicy)

Example 12 with ILSMMergePolicy

use of org.apache.hyracks.storage.am.lsm.common.api.ILSMMergePolicy in project asterixdb by apache.

the class PrefixMergePolicyFactory method createMergePolicy.

@Override
public ILSMMergePolicy createMergePolicy(Map<String, String> configuration, INCServiceContext ctx) {
    ILSMMergePolicy policy = new PrefixMergePolicy();
    policy.configure(configuration);
    return policy;
}
Also used : ILSMMergePolicy(org.apache.hyracks.storage.am.lsm.common.api.ILSMMergePolicy)

Aggregations

ILSMMergePolicy (org.apache.hyracks.storage.am.lsm.common.api.ILSMMergePolicy)12 IndexInfo (org.apache.asterix.common.context.IndexInfo)7 ArrayList (java.util.ArrayList)6 HyracksDataException (org.apache.hyracks.api.exceptions.HyracksDataException)6 ILSMDiskComponentId (org.apache.hyracks.storage.am.lsm.common.api.ILSMDiskComponentId)6 LSMDiskComponentId (org.apache.hyracks.storage.am.lsm.common.impls.LSMDiskComponentId)6 Test (org.junit.Test)6 IDatasetLifecycleManager (org.apache.asterix.common.api.IDatasetLifecycleManager)2 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 INcApplicationContext (org.apache.asterix.common.api.INcApplicationContext)1 CorrelatedPrefixMergePolicy (org.apache.asterix.common.context.CorrelatedPrefixMergePolicy)1 DatasetInfo (org.apache.asterix.common.context.DatasetInfo)1 FileReference (org.apache.hyracks.api.io.FileReference)1 IIOManager (org.apache.hyracks.api.io.IIOManager)1 ILSMIOOperationScheduler (org.apache.hyracks.storage.am.lsm.common.api.ILSMIOOperationScheduler)1 IVirtualBufferCache (org.apache.hyracks.storage.am.lsm.common.api.IVirtualBufferCache)1 IBufferCache (org.apache.hyracks.storage.common.buffercache.IBufferCache)1 IFileMapProvider (org.apache.hyracks.storage.common.file.IFileMapProvider)1