David Mollitor created PARQUET-1759:
---------------------------------------
Summary: InternalParquetRecordReader Use Singleton Set
Key: PARQUET-1759
URL: https://issues.apache.org/jira/browse/PARQUET-1759
Project: Parquet
Issue Type: Improvement
Reporter: David Mollitor
Assignee: David Mollitor
https://github.com/apache/parquet-mr/blob/d85a8f5dcfc1381655fcccaa81a2e83ba812f6a4/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/InternalParquetRecordReader.java#L260-L262
Code currently instantiates a {{HashSet}} (with a default internal data
structure of size 16}} and then makes it immutable. Use Collection#singleton
to achieve this same goal with fewer lines of code and less memory requirements.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)