read_parquet_page {nanoparquet}R Documentation

Read a page from a Parquet file

Description

Read a page from a Parquet file

Usage

read_parquet_page(file, offset)

Arguments

file

Path to a Parquet file.

offset

Integer offset of the start of the page in the file. See read_parquet_pages() for a list of all pages and their offsets.

Value

Named list. Many entries correspond to the columns of the result of read_parquet_pages(). Additional entries are:

See Also

read_parquet_pages() for a summary of all pages.

Examples


file_name <- system.file("extdata/userdata1.parquet", package = "nanoparquet")
nanoparquet:::read_parquet_pages(file_name)
options(max.print = 100)  # otherwise long raw vector
nanoparquet:::read_parquet_page(file_name, 4L)


[Package nanoparquet version 0.4.2 Index]