|
| delegate DatumReader< T > | CreateDatumReader (Schema writerSchema, Schema readerSchema) |
| | Defines the signature for a function that returns a new DatumReader<T> given a writer and reader schema.
|
| |
| Header | GetHeader () |
| | Return the header for the input file or stream.- Returns
- Parsed header from the file or stream.
|
| |
| Schema | GetSchema () |
| | Return the schema as read from the file or stream.- Returns
- Parse schema from the file or stream.
|
| |
| ICollection< string > | GetMetaKeys () |
| | Return the list of keys in the metadata.- Returns
- Metadata keys from the header of the data file.
|
| |
| byte[] | GetMeta (string key) |
| | Return the byte value of a metadata property.- Parameters
-
| key | Key for the metadata entry. |
- Returns
- Raw bytes of the value of the metadata entry.
- Exceptions
-
| KeyNotFoundException | There is no metadata entry with the specified key . |
|
| |
| long | GetMetaLong (string key) |
| | Return the long value of a metadata property.- Parameters
-
| key | Key for the metadata entry. |
- Returns
- Metadata value as a long.
- Exceptions
-
| KeyNotFoundException | There is no metadata entry with the specified key . |
|
| |
| string | GetMetaString (string key) |
| | Return the string value of a metadata property. This method assumes that the string is a UTF-8 encoded in the header.- Parameters
-
| key | Key for the metadata entry. |
- Returns
- Metadata value as a string.
- Exceptions
-
| KeyNotFoundException | There is no metadata entry with the specified key . |
| AvroRuntimeException | Encountered an exception while decoding the value as a UTF-8 string. |
|
| |
| void | Seek (long position) |
| | Move to a specific, known synchronization point, one returned from IFileWriter<T>.Sync while writing.- Parameters
-
| position | Position to jump to. |
|
| |
| void | Sync (long position) |
| | Move to the next synchronization point after a position.- Parameters
-
| position | Position in the stream to start. |
|
| |
| bool | PastSync (long position) |
| | Return true if past the next synchronization point after a position.- Parameters
-
| position | Position to test. |
- Returns
- True if path the next synchronization point after position , false otherwise.
|
| |
| long | PreviousSync () |
| | Return the last synchronization point before our current position.- Returns
- Position of the last synchronization point before our current position.
|
| |
| long | Tell () |
| | Return the current position in the input.- Returns
- Current position in the input.
|
| |
| bool | HasNext () |
| | Returns true if more entries remain in this file.- Returns
- True if more entries remain in this file, false otherwise.
|
| |
|
void | Reset () |
| | Resets this reader.
|
| |
|
void | Dispose () |
| |
| T | Next () |
| | Read the next datum from the file.- Returns
- Next deserialized data entry.
|
| |
|
| static IFileReader< T > | OpenReader (string path) |
| | Open a reader for a file using path.
|
| |
| static IFileReader< T > | OpenReader (string path, Schema readerSchema) |
| | Open a reader for a file using path and the reader's schema.
|
| |
| static IFileReader< T > | OpenReader (Stream inStream) |
| | Open a reader for a stream.
|
| |
| static IFileReader< T > | OpenReader (Stream inStream, bool leaveOpen) |
| | Open a reader for a stream.
|
| |
| static IFileReader< T > | OpenReader (Stream inStream, Schema readerSchema) |
| | Open a reader for a stream using the reader's schema.
|
| |
| static IFileReader< T > | OpenReader (Stream inStream, Schema readerSchema, bool leaveOpen) |
| | Open a reader for a stream using the reader's schema.
|
| |
| static IFileReader< T > | OpenReader (Stream inStream, Schema readerSchema, CreateDatumReader datumReaderFactory) |
| | Open a reader for a stream using the reader's schema and a custom DatumReader.
|
| |
| static IFileReader< T > | OpenReader (Stream inStream, Schema readerSchema, CreateDatumReader datumReaderFactory, bool leaveOpen) |
| | Open a reader for a stream using the reader's schema and a custom DatumReader.
|
| |
Provides access to Avro data written using the DataFileWriter<T>.
- Template Parameters
-
| T | Type to deserialze data objects to. |
- See also
- IFileReader<T>