orc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swalkaus <...@git.apache.org>
Subject [GitHub] orc pull request #41: ORC-58: Move code for reading rows from Reader to RowR...
Date Fri, 15 Jul 2016 16:51:39 GMT
Github user swalkaus commented on a diff in the pull request:

    https://github.com/apache/orc/pull/41#discussion_r71004296
  
    --- Diff: c++/src/Reader.cc ---
    @@ -1108,13 +1107,75 @@ namespace orc {
         // internal methods
         proto::StripeFooter getStripeFooter(const proto::StripeInformation& info);
         void startNextStripe();
    -    void checkOrcVersion();
         void selectType(const Type& type);
    -    void readMetadata() const;
         void updateSelected(const std::list<uint64_t>& fieldIds);
         void updateSelected(const std::list<std::string>& fieldNames);
     
       public:
    +   /**
    +    * Constructor that lets the user specify additional options.
    +    * @param filereader the object to read from
    +    * @param options options for reading
    +    */
    +    RowReaderImpl(const ReaderImpl* filereader,
    +           std::shared_ptr<ReaderOptions> options);
    +
    +    uint64_t getMemoryUse(int stripeIx = -1) override;
    +
    +    const std::vector<bool> getSelectedColumns() const override;
    +
    +    const Type& getSelectedType() const override;
    +
    +    std::unique_ptr<ColumnVectorBatch> createRowBatch(uint64_t size
    +                                                      ) const override;
    +
    +    bool next(ColumnVectorBatch& data) override;
    +
    +    const ReaderOptions& getReaderOptions() const;
    +
    +    CompressionKind getCompression() const;
    +
    +    uint64_t getCompressionSize() const;
    +
    +    uint64_t getRowNumber() const override;
    +
    +    void seekToRow(uint64_t rowNumber) override;
    +
    +    MemoryPool* getMemoryPool() const ;
    +
    +  };
    +
    +  class ReaderImpl : public Reader {
    +    friend class RowReaderImpl;
    --- End diff --
    
    Avoid using friend.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message