public static void Write <T>(System.IO.Stream outputStream, IEnumerable <T> values, out Footer footer, SerializationConfiguration serializationConfiguration = null) where T : class { var bufferFactory = new OrcCompressedBufferFactory(256 * 1024, CompressionKind.Zlib, CompressionStrategy.Size); var stripeWriter = new StripeWriter(typeof(T), outputStream, false, 0.8, 18, 6, bufferFactory, 10000, 512 * 1024 * 1024, serializationConfiguration); stripeWriter.AddRows(values); stripeWriter.RowAddingCompleted(); footer = stripeWriter.GetFooter(); outputStream.Seek(0, SeekOrigin.Begin); }
public void Dispose() { _stripeWriter.RowAddingCompleted(); WriteTail(); }