private static IEnumerable <Block> GetRecordBatches(Flatbuf.Footer footer) { for (var i = 0; i < footer.RecordBatchesLength; i++) { var block = footer.RecordBatches(i); if (block.HasValue) { yield return(new Block(block.Value)); } } }
private static IEnumerable <Block> GetDictionaries(Flatbuf.Footer footer) { for (int i = 0; i < footer.DictionariesLength; i++) { Flatbuf.Block?block = footer.Dictionaries(i); if (block.HasValue) { yield return(new Block(block.Value)); } } }
public ArrowFooter(Flatbuf.Footer footer) : this(Ipc.MessageSerializer.GetSchema(footer.Schema.GetValueOrDefault()), GetDictionaries(footer), GetRecordBatches(footer)) { }