Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules2/hyperformula/es/Lookup/SearchStrategy.js
T

13 lines
425 B
JavaScript
Raw Normal View History

2026-09-10 15:40:10 +08:00
/**
* @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);
}
}