mirror of
https://github.com/asadbek064/hyparquet-compressors.git
synced 2026-01-12 05:36:37 +00:00
16 lines
362 B
JavaScript
16 lines
362 B
JavaScript
import { snappyUncompressor } from 'hysnappy'
|
|
import pako from 'pako'
|
|
import { LZ4, LZ4_RAW } from './lz4.js'
|
|
|
|
/**
|
|
* @type {import('hyparquet').Compressors}
|
|
*/
|
|
export const compressors = {
|
|
SNAPPY: snappyUncompressor(),
|
|
GZIP: input => pako.ungzip(input),
|
|
BROTLI: () => new Uint8Array(), // TODO
|
|
ZSTD: () => new Uint8Array(), // TODO
|
|
LZ4,
|
|
LZ4_RAW,
|
|
}
|