iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iceberg::avro::AvroInputStream Class Reference
Inheritance diagram for iceberg::avro::AvroInputStream:

Public Member Functions

 AvroInputStream (std::shared_ptr<::arrow::io::RandomAccessFile > input_stream, int64_t buffer_size)
 
bool next (const uint8_t **data, size_t *len) override
 Returns some of available data.
 
void backup (size_t len) override
 "Returns" back some of the data to the stream. The returned data must be less than what was obtained in the last call to next().
 
void skip (size_t len) override
 Skips number of bytes specified by len.
 
size_t byteCount () const override
 Returns the number of bytes read from this stream so far. All the bytes made available through next are considered to be used unless, returned back using backup.
 
void seek (int64_t position) override
 Seek to a specific position in the stream. This may invalidate pointers returned from next(). This will also reset byteCount() to the given position.
 

Member Function Documentation

◆ next()

bool iceberg::avro::AvroInputStream::next ( const uint8_t **  data,
size_t *  len 
)
override

Returns some of available data.

Returns
true if some data is available, false if no more data is available or an error has occurred.

The documentation for this class was generated from the following files: