You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@orc.apache.org by "Yiqun Zhang (Jira)" <ji...@apache.org> on 2021/08/11 08:26:00 UTC

[jira] [Created] (ORC-937) Replace deprecated method

Yiqun Zhang created ORC-937:
-------------------------------

             Summary: Replace deprecated method
                 Key: ORC-937
                 URL: https://issues.apache.org/jira/browse/ORC-937
             Project: ORC
          Issue Type: Improvement
            Reporter: Yiqun Zhang


There are some deprecated method calls in the project that I think could be replaced by the recommended methods.

org.apache.commons.cli
OptionBuilder -> Option.builder
GnuParser -> DefaultParser

org.apache.parquet.avro
AvroParquetWriter.<GenericData.Record>builder(path)  ->  AvroParquetWriter.<GenericData.Record>builder(outputFile)
AvroParquetReader.<GenericData.Record>builder(path)  ->  AvroParquetReader.<GenericData.Record>builder(inputFile)

DateColumnStatistics
getMaximum -> getMaximumLocalDate
getMinimum -> getMinimumLocalDate

hadoop
FSDataOutputStream(OutputStream) -> FSDataOutputStream(OutputStream, FileSystem.Statistics) 
fileStatus.isDir -> fileStatus.isDirectory



--
This message was sent by Atlassian Jira
(v8.3.4#803005)