From 6c90bb231768f0fc4a02a9d04ca5651f36105232 Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Wed, 12 Jun 2024 14:40:18 -0400 Subject: [PATCH] add stub RecordBatchFileWriter MATLAB class --- .../+arrow/+io/+ipc/RecordBatchFileWriter.m | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 matlab/src/matlab/+arrow/+io/+ipc/RecordBatchFileWriter.m diff --git a/matlab/src/matlab/+arrow/+io/+ipc/RecordBatchFileWriter.m b/matlab/src/matlab/+arrow/+io/+ipc/RecordBatchFileWriter.m new file mode 100644 index 0000000000000..229ac21be1f58 --- /dev/null +++ b/matlab/src/matlab/+arrow/+io/+ipc/RecordBatchFileWriter.m @@ -0,0 +1,35 @@ +%RECORDBATCHFILEWRITER Class for serializing record batches to files using +% the IPC format. + +% Licensed to the Apache Software Foundation (ASF) under one or more +% contributor license agreements. See the NOTICE file distributed with +% this work for additional information regarding copyright ownership. +% The ASF licenses this file to you under the Apache License, Version +% 2.0 (the "License"); you may not use this file except in compliance +% with the License. You may obtain a copy of the License at +% +% http://www.apache.org/licenses/LICENSE-2.0 +% +% Unless required by applicable law or agreed to in writing, software +% distributed under the License is distributed on an "AS IS" BASIS, +% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +% implied. See the License for the specific language governing +% permissions and limitations under the License. + +classdef RecordBatchFileWriter < matlab.mixin.Scalar + + properties (GetAccess=public, SetAccess=private, Hidden) + Proxy + end + + methods + function obj = RecordBatchFileWriter(filename, schema) + arguments + filename(1, 1) string {mustBeNonzeroLengthText} + schema(1, 1) arrow.tabular.Schema + end + args = struct(Filename=filename, SchemaProxyID=schema.Proxy.ID); + obj.Proxy = arrow.internal.proxy.create("arrow.io.csv.proxy.TableReader", args); + end + end +end \ No newline at end of file