forked from apache/parquet-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PARQUET-284: Clean up ParquetMetadataConverter
makes all method static, removes unused thread-unsafe cache, etc. Turns out the "cache" was only read from *after* rebuilding what needed to be cached... so no performance gain there (and no loss by getting rid of it) However, I don't know if this will fix the issue mentioned in PARQUET-284, I don't think concurrent access to a HashMap will cause deadlock, it would just cause undefined behavior in reads or maybe ConcurrentModificationException UPDATE: I'm wrong, it can cause an infinite loop so this should fix the issue https://gist.github.com/rednaxelafx/1081908 UPDATE2: Put the cache back in, made it static + thread safe Author: Alex Levenson <[email protected]> Closes apache#220 from isnotinvain/alexlevenson/PARQUET-284 and squashes the following commits: 4797b48 [Alex Levenson] Fix merge conflict issue 8ff5775 [Alex Levenson] Merge branch 'master' into alexlevenson/PARQUET-284 ccd4776 [Alex Levenson] add encoding cache back in 9ea5a5f [Alex Levenson] Clean up ParquetMetadataConverter: make all method static, remove unused thread-unsafe cache
- Loading branch information
1 parent
46448e9
commit 5c2ba72
Showing
5 changed files
with
130 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.