|
| 1 | +%RECORDBATCHFILEWRITER Class for serializing record batches to a file using |
| 2 | +% the IPC format. |
| 3 | + |
| 4 | +% Licensed to the Apache Software Foundation (ASF) under one or more |
| 5 | +% contributor license agreements. See the NOTICE file distributed with |
| 6 | +% this work for additional information regarding copyright ownership. |
| 7 | +% The ASF licenses this file to you under the Apache License, Version |
| 8 | +% 2.0 (the "License"); you may not use this file except in compliance |
| 9 | +% with the License. You may obtain a copy of the License at |
| 10 | +% |
| 11 | +% http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | +% |
| 13 | +% Unless required by applicable law or agreed to in writing, software |
| 14 | +% distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | +% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 16 | +% implied. See the License for the specific language governing |
| 17 | +% permissions and limitations under the License. |
| 18 | + |
| 19 | +classdef RecordBatchFileWriter < matlab.mixin.Scalar |
| 20 | + |
| 21 | + properties(SetAccess=private, GetAccess=public, Hidden) |
| 22 | + Proxy |
| 23 | + end |
| 24 | + |
| 25 | + methods |
| 26 | + function obj = RecordBatchFileWriter(filename, schema) |
| 27 | + arguments |
| 28 | + filename(1, 1) string {mustBeNonzeroLengthText} |
| 29 | + schema(1, 1) arrow.tabular.Schema |
| 30 | + end |
| 31 | + args = struct(Filename=filename, SchemaProxyID=schema.Proxy.ID); |
| 32 | + proxyName = "arrow.io.ipc.proxy.RecordBatchFileWriter"; |
| 33 | + obj.Proxy = arrow.internal.proxy.create(proxyName, args); |
| 34 | + end |
| 35 | + end |
| 36 | +end |
0 commit comments