]>
Commit | Line | Data |
---|---|---|
1d09f67e TL |
1 | // Licensed to the Apache Software Foundation (ASF) under one |
2 | // or more contributor license agreements. See the NOTICE file | |
3 | // distributed with this work for additional information | |
4 | // regarding copyright ownership. The ASF licenses this file | |
5 | // to you under the Apache License, Version 2.0 (the | |
6 | // "License"); you may not use this file except in compliance | |
7 | // with the License. You may obtain a copy of the License at | |
8 | // | |
9 | // http://www.apache.org/licenses/LICENSE-2.0 | |
10 | // | |
11 | // Unless required by applicable law or agreed to in writing, | |
12 | // software distributed under the License is distributed on an | |
13 | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
14 | // KIND, either express or implied. See the License for the | |
15 | // specific language governing permissions and limitations | |
16 | // under the License. | |
17 | ||
18 | #pragma once | |
19 | ||
20 | #include "arrow/type_fwd.h" | |
21 | #include "arrow/util/visibility.h" | |
22 | ||
23 | namespace arrow { | |
24 | namespace io { | |
25 | ||
26 | struct FileMode { | |
27 | enum type { READ, WRITE, READWRITE }; | |
28 | }; | |
29 | ||
30 | struct IOContext; | |
31 | struct CacheOptions; | |
32 | ||
33 | /// EXPERIMENTAL: convenience global singleton for default IOContext settings | |
34 | ARROW_EXPORT | |
35 | const IOContext& default_io_context(); | |
36 | ||
37 | /// \brief Get the capacity of the global I/O thread pool | |
38 | /// | |
39 | /// Return the number of worker threads in the thread pool to which | |
40 | /// Arrow dispatches various I/O-bound tasks. This is an ideal number, | |
41 | /// not necessarily the exact number of threads at a given point in time. | |
42 | /// | |
43 | /// You can change this number using SetIOThreadPoolCapacity(). | |
44 | ARROW_EXPORT int GetIOThreadPoolCapacity(); | |
45 | ||
46 | /// \brief Set the capacity of the global I/O thread pool | |
47 | /// | |
48 | /// Set the number of worker threads in the thread pool to which | |
49 | /// Arrow dispatches various I/O-bound tasks. | |
50 | /// | |
51 | /// The current number is returned by GetIOThreadPoolCapacity(). | |
52 | ARROW_EXPORT Status SetIOThreadPoolCapacity(int threads); | |
53 | ||
54 | class FileInterface; | |
55 | class Seekable; | |
56 | class Writable; | |
57 | class Readable; | |
58 | class OutputStream; | |
59 | class FileOutputStream; | |
60 | class InputStream; | |
61 | class ReadableFile; | |
62 | class RandomAccessFile; | |
63 | class MemoryMappedFile; | |
64 | class WritableFile; | |
65 | class ReadWriteFileInterface; | |
66 | ||
67 | class LatencyGenerator; | |
68 | ||
69 | class BufferReader; | |
70 | ||
71 | class BufferInputStream; | |
72 | class BufferOutputStream; | |
73 | class CompressedInputStream; | |
74 | class CompressedOutputStream; | |
75 | class BufferedInputStream; | |
76 | class BufferedOutputStream; | |
77 | ||
78 | } // namespace io | |
79 | } // namespace arrow |