Class: ArrowFormat::FileWriter
- Inherits:
-
StreamingWriter
- Object
- StreamingWriter
- ArrowFormat::FileWriter
- Defined in:
- lib/arrow-format/file-writer.rb
Constant Summary collapse
- MAGIC =
"ARROW1".b
- MAGIC_PADDING =
"\x00\x00"
Constants inherited from StreamingWriter
StreamingWriter::ALIGNMENT_SIZE, StreamingWriter::CONTINUATION, StreamingWriter::EOS, StreamingWriter::METADATA_LARGEST_PADDING
Constants included from BufferAlignable
BufferAlignable::BUFFER_ALIGNMENT_SIZE
Instance Method Summary collapse
Methods inherited from StreamingWriter
#initialize, #write_record_batch
Constructor Details
This class inherits a constructor from ArrowFormat::StreamingWriter
Instance Method Details
#finish(metadata = nil) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/arrow-format/file-writer.rb', line 32 def finish(=nil) super() () write_data(MAGIC) @output end |
#start(schema) ⇒ Object
25 26 27 28 29 30 |
# File 'lib/arrow-format/file-writer.rb', line 25 def start(schema) @fb_schema = schema.to_flatbuffers write_data(MAGIC) write_data(MAGIC_PADDING) super end |