Netflix / iceberg

Iceberg is a table format for large, slow-moving tabular data
Apache License 2.0
478 stars 60 forks source link

Remove Closeable from TableScan interface. #87

Closed rdblue closed 6 years ago

rdblue commented 6 years ago

TableScan should be immutable so it can be shared between threads. If TableScan is Closeable, then it can't be shared because resources in use from one thread can be closed by another when the scan is closed.

Instead, the iterables created by a scan should be closeable.