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 parquet_pages() for a list of all pages and their offsets.

Value

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

See Also

parquet_pages() for a summary of all pages.

Examples


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


[Package nanoparquet version 0.3.1 Index]