s2-tools
Version:
A collection of geospatial tools primarily designed for WGS84, Web Mercator, and S2.
32 lines • 1.1 kB
TypeScript
/**
* Sorts an array using external-sorting.
* @param inputs - a list of input files without their extensions. e.g. './file1', './file2', './file3'
* @param output - output folder to place the sorted keys
* @param maxHeap - max instance of the parsed entity in memory
* @param threadCount - number of workers
* @param tmpDir - temporary directory
*/
export declare function externalSort(inputs: string[], output: string, maxHeap?: number, threadCount?: number, tmpDir?: string): Promise<void>;
/** A File name and it's size */
export interface FileSize {
/** Name of the folder */
name: string;
/** Name of the input (there could be multiple input files to sort) */
input: string;
/** Total size of the key store */
keySize: number;
/** Total size of the item store */
valueSize: number;
/** Offset for values */
valueOffset: number;
}
/** A chunk of a file to be sorted */
export interface SortChunk {
name: string;
input: string;
outDir: string;
start: number;
end: number;
valueOffset: number;
}
//# sourceMappingURL=index.d.ts.map