Class AvroReaders.RowReaderBuilder
java.lang.Object
dev.hardwood.avro.AvroReaders.RowReaderBuilder
- Enclosing class:
AvroReaders
Builds an
AvroRowReader with optional projection, filter, and
head/tail row limit. Mirrors ParquetFileReader.RowReaderBuilder
— settings are forwarded to the underlying parquet row reader,
then wrapped in an AvroRowReader with the converted schema.-
Method Summary
Modifier and TypeMethodDescriptionbuild()filter(FilterPredicate filter) Apply a row-group / record-level filter predicate.head(long maxRows) Limit to the firstmaxRowsrows.projection(ColumnProjection projection) Restrict reading to the given columns.tail(long tailRows) Limit to the lasttailRowsrows.
-
Method Details
-
projection
Restrict reading to the given columns. Default: all columns. -
filter
Apply a row-group / record-level filter predicate. Default: no filter. -
head
Limit to the firstmaxRowsrows. Mutually exclusive withtail(long). -
tail
-
build
-