Skip to content

Question to in memory reading #89

Description

@Arnold1

Hi,

How can I read the entire data into a slice call Foo? Is there a better option than for loop with fr.Next() as you do it here https://github.com/fraugster/parquet-go/blob/master/examples/read-low-level/main.go#L44?

type Foo struct {
	Id						int64	`parquet:"name=id, type=INT64"`
	StartDate				int64	`parquet:"name=start_date, type=BYTE_ARRAY"`
	EndDate					int64	`parquet:"name=end_date, type=BYTE_ARRAY"`
}

fr, err := NewFileReaderWithOptions(bytes.NewReader(content))
u := make([]*Foo, fr.NumRows())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions