13 lines
425 B
JavaScript
13 lines
425 B
JavaScript
/**
|
|||
|
|
* @license
|
||
|
|
* Copyright (c) 2024 Handsoncode. All rights reserved.
|
||
|
|
*/
|
||
|
|
import { ColumnBinarySearch } from './ColumnBinarySearch';
|
||
|
|
import { ColumnIndex } from './ColumnIndex';
|
||
|
|
export function buildColumnSearchStrategy(dependencyGraph, config, statistics) {
|
||
|
|
if (config.useColumnIndex) {
|
||
|
|
return new ColumnIndex(dependencyGraph, config, statistics);
|
||
|
|
} else {
|
||
|
|
return new ColumnBinarySearch(dependencyGraph);
|
||
|
|
}
|
||
|
|
}
|