mirror of
https://github.com/asadbek064/hyparquet-compressors.git
synced 2026-01-12 21:56:36 +00:00
13 lines
303 B
JavaScript
13 lines
303 B
JavaScript
|
|
import { snappyUncompressor } from 'hysnappy'
|
||
|
|
import pako from 'pako'
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @typedef {import('hyparquet').Compressors} Compressors
|
||
|
|
*/
|
||
|
|
export const compressors = {
|
||
|
|
SNAPPY: snappyUncompressor(),
|
||
|
|
GZIP: pako.ungzip,
|
||
|
|
BROTLI: () => new Uint8Array(), // TODO
|
||
|
|
ZSTD: () => new Uint8Array(), // TODO
|
||
|
|
}
|