Avro C#
|
Defines the interface for an object that reads data from a file. More...
Public Member Functions | |
Header | GetHeader () |
Return the header for the input file or stream. More... | |
Schema | GetSchema () |
Return the schema as read from the file or stream. More... | |
ICollection< string > | GetMetaKeys () |
Return the list of keys in the metadata. More... | |
T | Next () |
Read the next datum from the file. More... | |
bool | HasNext () |
Returns true if more entries remain in this file. More... | |
byte [] | GetMeta (string key) |
Return the byte value of a metadata property. More... | |
long | GetMetaLong (string key) |
Return the long value of a metadata property. More... | |
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. More... | |
bool | PastSync (long position) |
Return true if past the next synchronization point after a position. More... | |
long | PreviousSync () |
Return the last synchronization point before our current position. More... | |
void | Seek (long position) |
Move to a specific, known synchronization point, one returned from IFileWriter<T>.Sync while writing. More... | |
void | Sync (long position) |
Move to the next synchronization point after a position. More... | |
long | Tell () |
Return the current position in the input. More... | |
Properties | |
IEnumerable< T > | NextEntries [get] |
Return an enumeration of the remaining entries in the file. More... | |
Defines the interface for an object that reads data from a file.
T | Type to serialize data to. |
Header Avro.File.IFileReader< T >.GetHeader | ( | ) |
Return the header for the input file or stream.
Implemented in Avro.File.DataFileReader< T >.
byte [] Avro.File.IFileReader< T >.GetMeta | ( | string | key | ) |
Return the byte value of a metadata property.
key | Key for the metadata entry. |
KeyNotFoundException | There is no metadata entry with the specified key . |
Implemented in Avro.File.DataFileReader< T >.
ICollection<string> Avro.File.IFileReader< T >.GetMetaKeys | ( | ) |
Return the list of keys in the metadata.
Implemented in Avro.File.DataFileReader< T >.
long Avro.File.IFileReader< T >.GetMetaLong | ( | string | key | ) |
Return the long value of a metadata property.
key | Key for the metadata entry. |
KeyNotFoundException | There is no metadata entry with the specified key . |
Implemented in Avro.File.DataFileReader< T >.
string Avro.File.IFileReader< T >.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.
key | Key for the metadata entry. |
KeyNotFoundException | There is no metadata entry with the specified key . |
AvroRuntimeException | Encountered an exception while decoding the value as a UTF-8 string. |
Implemented in Avro.File.DataFileReader< T >.
Schema Avro.File.IFileReader< T >.GetSchema | ( | ) |
Return the schema as read from the file or stream.
Implemented in Avro.File.DataFileReader< T >.
bool Avro.File.IFileReader< T >.HasNext | ( | ) |
Returns true if more entries remain in this file.
Implemented in Avro.File.DataFileReader< T >.
T Avro.File.IFileReader< T >.Next | ( | ) |
Read the next datum from the file.
Implemented in Avro.File.DataFileReader< T >.
bool Avro.File.IFileReader< T >.PastSync | ( | long | position | ) |
Return true if past the next synchronization point after a position.
position | Position to test. |
Implemented in Avro.File.DataFileReader< T >.
long Avro.File.IFileReader< T >.PreviousSync | ( | ) |
Return the last synchronization point before our current position.
Implemented in Avro.File.DataFileReader< T >.
void Avro.File.IFileReader< T >.Seek | ( | long | position | ) |
Move to a specific, known synchronization point, one returned from IFileWriter<T>.Sync while writing.
position | Position to jump to. |
Implemented in Avro.File.DataFileReader< T >.
void Avro.File.IFileReader< T >.Sync | ( | long | position | ) |
Move to the next synchronization point after a position.
position | Position in the stream to start. |
Implemented in Avro.File.DataFileReader< T >.
long Avro.File.IFileReader< T >.Tell | ( | ) |
Return the current position in the input.
Implemented in Avro.File.DataFileReader< T >.
|
get |
Return an enumeration of the remaining entries in the file.