Esempio n. 1
0
        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));
                }
            }
        }
Esempio n. 2
0
        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));
                }
            }
        }
Esempio n. 3
0
 public ArrowFooter(Flatbuf.Footer footer)
     : this(Ipc.MessageSerializer.GetSchema(footer.Schema.GetValueOrDefault()), GetDictionaries(footer),
            GetRecordBatches(footer))
 {
 }