🍋
Menu
File Formats

Parquet

Apache Parquet

A columnar storage file format optimized for analytical queries, supporting efficient compression and encoding.

Chi tiết kỹ thuật

File parquet reduces storage and transmission size. DEFLATE (used in ZIP and gzip) combines LZ77 dictionary coding with Huffman coding. Brotli (RFC 7932) achieves 15-25% better compression than gzip for text content and is supported by all modern browsers for HTTP compression. Zstandard (zstd) offers tunable compression levels from fast (comparable to lz4) to high (comparable to LZMA). For files already in compressed formats (JPEG, MP3, ZIP), re-compression provides negligible benefit and may slightly increase file size.

Ví dụ

```javascript
// Detect and convert text encoding
const decoder = new TextDecoder('utf-8');
const text = decoder.decode(uint8Array);

// Check for BOM (Byte Order Mark)
if (bytes[0] === 0xEF && bytes[1] === 0xBB && bytes[2] === 0xBF) {
  console.log('UTF-8 with BOM detected');
}
```

Định dạng liên quan

Công cụ liên quan

Thuật ngữ liên quan