1 | /** |
---|
2 | * Autogenerated by Thrift |
---|
3 | * |
---|
4 | * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING |
---|
5 | */ |
---|
6 | |
---|
7 | #import <Cocoa/Cocoa.h> |
---|
8 | |
---|
9 | #import <TProtocol.h> |
---|
10 | #import <TApplicationException.h> |
---|
11 | #import <TProtocolUtil.h> |
---|
12 | |
---|
13 | |
---|
14 | @interface ThriftHandle : NSObject { |
---|
15 | int64_t __id; |
---|
16 | |
---|
17 | BOOL __id_isset; |
---|
18 | } |
---|
19 | |
---|
20 | - (id) initWithId: (int64_t) id; |
---|
21 | |
---|
22 | - (void) read: (id <TProtocol>) inProtocol; |
---|
23 | - (void) write: (id <TProtocol>) outProtocol; |
---|
24 | |
---|
25 | - (int64_t) id; |
---|
26 | - (void) setId: (int64_t) id; |
---|
27 | - (BOOL) idIsSet; |
---|
28 | |
---|
29 | @end |
---|
30 | |
---|
31 | @interface Pathname : NSObject { |
---|
32 | NSString * __pathname; |
---|
33 | |
---|
34 | BOOL __pathname_isset; |
---|
35 | } |
---|
36 | |
---|
37 | - (id) initWithPathname: (NSString *) pathname; |
---|
38 | |
---|
39 | - (void) read: (id <TProtocol>) inProtocol; |
---|
40 | - (void) write: (id <TProtocol>) outProtocol; |
---|
41 | |
---|
42 | - (NSString *) pathname; |
---|
43 | - (void) setPathname: (NSString *) pathname; |
---|
44 | - (BOOL) pathnameIsSet; |
---|
45 | |
---|
46 | @end |
---|
47 | |
---|
48 | @interface FileStatus : NSObject { |
---|
49 | NSString * __path; |
---|
50 | int64_t __length; |
---|
51 | BOOL __isdir; |
---|
52 | int16_t __block_replication; |
---|
53 | int64_t __blocksize; |
---|
54 | int64_t __modification_time; |
---|
55 | NSString * __permission; |
---|
56 | NSString * __owner; |
---|
57 | NSString * __group; |
---|
58 | |
---|
59 | BOOL __path_isset; |
---|
60 | BOOL __length_isset; |
---|
61 | BOOL __isdir_isset; |
---|
62 | BOOL __block_replication_isset; |
---|
63 | BOOL __blocksize_isset; |
---|
64 | BOOL __modification_time_isset; |
---|
65 | BOOL __permission_isset; |
---|
66 | BOOL __owner_isset; |
---|
67 | BOOL __group_isset; |
---|
68 | } |
---|
69 | |
---|
70 | - (id) initWithPath: (NSString *) path length: (int64_t) length isdir: (BOOL) isdir block_replication: (int16_t) block_replication blocksize: (int64_t) blocksize modification_time: (int64_t) modification_time permission: (NSString *) permission owner: (NSString *) owner group: (NSString *) group; |
---|
71 | |
---|
72 | - (void) read: (id <TProtocol>) inProtocol; |
---|
73 | - (void) write: (id <TProtocol>) outProtocol; |
---|
74 | |
---|
75 | - (NSString *) path; |
---|
76 | - (void) setPath: (NSString *) path; |
---|
77 | - (BOOL) pathIsSet; |
---|
78 | |
---|
79 | - (int64_t) length; |
---|
80 | - (void) setLength: (int64_t) length; |
---|
81 | - (BOOL) lengthIsSet; |
---|
82 | |
---|
83 | - (BOOL) isdir; |
---|
84 | - (void) setIsdir: (BOOL) isdir; |
---|
85 | - (BOOL) isdirIsSet; |
---|
86 | |
---|
87 | - (int16_t) block_replication; |
---|
88 | - (void) setBlock_replication: (int16_t) block_replication; |
---|
89 | - (BOOL) block_replicationIsSet; |
---|
90 | |
---|
91 | - (int64_t) blocksize; |
---|
92 | - (void) setBlocksize: (int64_t) blocksize; |
---|
93 | - (BOOL) blocksizeIsSet; |
---|
94 | |
---|
95 | - (int64_t) modification_time; |
---|
96 | - (void) setModification_time: (int64_t) modification_time; |
---|
97 | - (BOOL) modification_timeIsSet; |
---|
98 | |
---|
99 | - (NSString *) permission; |
---|
100 | - (void) setPermission: (NSString *) permission; |
---|
101 | - (BOOL) permissionIsSet; |
---|
102 | |
---|
103 | - (NSString *) owner; |
---|
104 | - (void) setOwner: (NSString *) owner; |
---|
105 | - (BOOL) ownerIsSet; |
---|
106 | |
---|
107 | - (NSString *) group; |
---|
108 | - (void) setGroup: (NSString *) group; |
---|
109 | - (BOOL) groupIsSet; |
---|
110 | |
---|
111 | @end |
---|
112 | |
---|
113 | @interface BlockLocation : NSObject { |
---|
114 | NSArray * __hosts; |
---|
115 | NSArray * __names; |
---|
116 | int64_t __offset; |
---|
117 | int64_t __length; |
---|
118 | |
---|
119 | BOOL __hosts_isset; |
---|
120 | BOOL __names_isset; |
---|
121 | BOOL __offset_isset; |
---|
122 | BOOL __length_isset; |
---|
123 | } |
---|
124 | |
---|
125 | - (id) initWithHosts: (NSArray *) hosts names: (NSArray *) names offset: (int64_t) offset length: (int64_t) length; |
---|
126 | |
---|
127 | - (void) read: (id <TProtocol>) inProtocol; |
---|
128 | - (void) write: (id <TProtocol>) outProtocol; |
---|
129 | |
---|
130 | - (NSArray *) hosts; |
---|
131 | - (void) setHosts: (NSArray *) hosts; |
---|
132 | - (BOOL) hostsIsSet; |
---|
133 | |
---|
134 | - (NSArray *) names; |
---|
135 | - (void) setNames: (NSArray *) names; |
---|
136 | - (BOOL) namesIsSet; |
---|
137 | |
---|
138 | - (int64_t) offset; |
---|
139 | - (void) setOffset: (int64_t) offset; |
---|
140 | - (BOOL) offsetIsSet; |
---|
141 | |
---|
142 | - (int64_t) length; |
---|
143 | - (void) setLength: (int64_t) length; |
---|
144 | - (BOOL) lengthIsSet; |
---|
145 | |
---|
146 | @end |
---|
147 | |
---|
148 | @interface MalformedInputException : NSException { |
---|
149 | NSString * __message; |
---|
150 | |
---|
151 | BOOL __message_isset; |
---|
152 | } |
---|
153 | |
---|
154 | - (id) initWithMessage: (NSString *) message; |
---|
155 | |
---|
156 | - (void) read: (id <TProtocol>) inProtocol; |
---|
157 | - (void) write: (id <TProtocol>) outProtocol; |
---|
158 | |
---|
159 | - (NSString *) message; |
---|
160 | - (void) setMessage: (NSString *) message; |
---|
161 | - (BOOL) messageIsSet; |
---|
162 | |
---|
163 | @end |
---|
164 | |
---|
165 | @interface ThriftIOException : NSException { |
---|
166 | NSString * __message; |
---|
167 | |
---|
168 | BOOL __message_isset; |
---|
169 | } |
---|
170 | |
---|
171 | - (id) initWithMessage: (NSString *) message; |
---|
172 | |
---|
173 | - (void) read: (id <TProtocol>) inProtocol; |
---|
174 | - (void) write: (id <TProtocol>) outProtocol; |
---|
175 | |
---|
176 | - (NSString *) message; |
---|
177 | - (void) setMessage: (NSString *) message; |
---|
178 | - (BOOL) messageIsSet; |
---|
179 | |
---|
180 | @end |
---|
181 | |
---|
182 | @protocol ThriftHadoopFileSystem <NSObject> |
---|
183 | - (void) setInactivityTimeoutPeriod: (int64_t) periodInSeconds; // throws TException |
---|
184 | - (void) shutdown: (int32_t) status; // throws TException |
---|
185 | - (ThriftHandle *) create: (Pathname *) path; // throws ThriftIOException *, TException |
---|
186 | - (ThriftHandle *) createFile: (Pathname *) path : (int16_t) mode : (BOOL) overwrite : (int32_t) bufferSize : (int16_t) block_replication : (int64_t) blocksize; // throws ThriftIOException *, TException |
---|
187 | - (ThriftHandle *) open: (Pathname *) path; // throws ThriftIOException *, TException |
---|
188 | - (ThriftHandle *) append: (Pathname *) path; // throws ThriftIOException *, TException |
---|
189 | - (BOOL) write: (ThriftHandle *) handle : (NSString *) data; // throws ThriftIOException *, TException |
---|
190 | - (NSString *) read: (ThriftHandle *) handle : (int64_t) offset : (int32_t) size; // throws ThriftIOException *, TException |
---|
191 | - (BOOL) close: (ThriftHandle *) out; // throws ThriftIOException *, TException |
---|
192 | - (BOOL) rm: (Pathname *) path : (BOOL) recursive; // throws ThriftIOException *, TException |
---|
193 | - (BOOL) rename: (Pathname *) path : (Pathname *) dest; // throws ThriftIOException *, TException |
---|
194 | - (BOOL) mkdirs: (Pathname *) path; // throws ThriftIOException *, TException |
---|
195 | - (BOOL) exists: (Pathname *) path; // throws ThriftIOException *, TException |
---|
196 | - (FileStatus *) stat: (Pathname *) path; // throws ThriftIOException *, TException |
---|
197 | - (NSArray *) listStatus: (Pathname *) path; // throws ThriftIOException *, TException |
---|
198 | - (void) chmod: (Pathname *) path : (int16_t) mode; // throws ThriftIOException *, TException |
---|
199 | - (void) chown: (Pathname *) path : (NSString *) owner : (NSString *) group; // throws ThriftIOException *, TException |
---|
200 | - (void) setReplication: (Pathname *) path : (int16_t) replication; // throws ThriftIOException *, TException |
---|
201 | - (NSArray *) getFileBlockLocations: (Pathname *) path : (int64_t) start : (int64_t) length; // throws ThriftIOException *, TException |
---|
202 | @end |
---|
203 | |
---|
204 | @interface ThriftHadoopFileSystemClient : NSObject <ThriftHadoopFileSystem> { |
---|
205 | id <TProtocol> inProtocol; |
---|
206 | id <TProtocol> outProtocol; |
---|
207 | } |
---|
208 | - (id) initWithProtocol: (id <TProtocol>) protocol; |
---|
209 | - (id) initWithInProtocol: (id <TProtocol>) inProtocol outProtocol: (id <TProtocol>) outProtocol; |
---|
210 | @end |
---|
211 | |
---|
212 | @interface hadoopfsConstants { |
---|
213 | } |
---|
214 | @end |
---|