Kinetica   C#   API  Version 7.2.3.0
IFileReader.cs
Go to the documentation of this file.
1 
18 using System;
19 using System.Collections.Generic;
20 using System.Linq;
21 using System.Text;
22 
23 namespace Avro.File
24 {
25  public interface IFileReader<T> : IDisposable
26  {
32  Header GetHeader();
33 
39  Schema GetSchema();
40 
45  ICollection<string> GetMetaKeys();
46 
51  IEnumerable<T> NextEntries { get; }
52 
56  T Next();
57 
61  bool HasNext();
62 
68  byte[] GetMeta(string key);
69 
75  long GetMetaLong(string key);
76 
82  string GetMetaString(string key);
83 
90  bool PastSync(long position);
91 
97  long PreviousSync();
98 
104  void Seek(long position);
105 
111  void Sync(long position);
112 
117  long Tell();
118  }
119 }
long GetMetaLong(string key)
Return the long value of a metadata property
IEnumerable< T > NextEntries
Return an enumeration of the remaining entries in the file
Definition: IFileReader.cs:51
Base class for all schema types
Definition: Schema.cs:29
long PreviousSync()
Return the last synchronization point before our current position
void Seek(long position)
Move to a specific, known synchronization point, one returned from IFileWriter.Sync() while writing
T Next()
Read the next datum from the file.
bool HasNext()
True if more entries remain in this file.
Schema GetSchema()
Return the schema as read from the input file / stream
string GetMetaString(string key)
Return the string value of a metadata property
long Tell()
Return the current position in the input
void Sync(long position)
Move to the next synchronization point after a position
ICollection< string > GetMetaKeys()
Return the list of keys in the metadata
Header GetHeader()
Return the header for the input file / stream
bool PastSync(long position)
Return true if past the next synchronization point after a position
byte [] GetMeta(string key)
Return the byte value of a metadata property