ganapati 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +3 -0
- data/Gemfile.lock +20 -0
- data/Rakefile +2 -1
- data/docs/Ganapati.html +265 -0
- data/docs/Ganapati/Client.html +998 -0
- data/docs/Ganapati/FileUrl.html +469 -0
- data/docs/Ganapati/HFile.html +470 -0
- data/docs/README_rdoc.html +281 -0
- data/docs/ThriftHadoopFileSystem.html +336 -0
- data/docs/ThriftHadoopFileSystem/Append_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Append_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/BlockLocation.html +367 -0
- data/docs/ThriftHadoopFileSystem/Chmod_args.html +357 -0
- data/docs/ThriftHadoopFileSystem/Chmod_result.html +352 -0
- data/docs/ThriftHadoopFileSystem/Chown_args.html +362 -0
- data/docs/ThriftHadoopFileSystem/Chown_result.html +352 -0
- data/docs/ThriftHadoopFileSystem/Client.html +2327 -0
- data/docs/ThriftHadoopFileSystem/Close_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Close_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/CreateFile_args.html +377 -0
- data/docs/ThriftHadoopFileSystem/CreateFile_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/Create_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Create_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/Exists_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Exists_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/FileStatus.html +392 -0
- data/docs/ThriftHadoopFileSystem/GetFileBlockLocations_args.html +362 -0
- data/docs/ThriftHadoopFileSystem/GetFileBlockLocations_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/ListStatus_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/ListStatus_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/MalformedInputException.html +394 -0
- data/docs/ThriftHadoopFileSystem/Mkdirs_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Mkdirs_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/Open_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Open_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/Pathname.html +352 -0
- data/docs/ThriftHadoopFileSystem/Processor.html +1053 -0
- data/docs/ThriftHadoopFileSystem/Read_args.html +362 -0
- data/docs/ThriftHadoopFileSystem/Read_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/Rename_args.html +357 -0
- data/docs/ThriftHadoopFileSystem/Rename_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/Rm_args.html +357 -0
- data/docs/ThriftHadoopFileSystem/Rm_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_args.html +354 -0
- data/docs/ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_result.html +347 -0
- data/docs/ThriftHadoopFileSystem/SetReplication_args.html +357 -0
- data/docs/ThriftHadoopFileSystem/SetReplication_result.html +352 -0
- data/docs/ThriftHadoopFileSystem/Shutdown_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Shutdown_result.html +347 -0
- data/docs/ThriftHadoopFileSystem/Stat_args.html +352 -0
- data/docs/ThriftHadoopFileSystem/Stat_result.html +357 -0
- data/docs/ThriftHadoopFileSystem/ThriftHandle.html +352 -0
- data/docs/ThriftHadoopFileSystem/ThriftIOException.html +394 -0
- data/docs/ThriftHadoopFileSystem/Write_args.html +357 -0
- data/docs/ThriftHadoopFileSystem/Write_result.html +357 -0
- data/docs/created.rid +10 -1
- data/docs/images/brick.png +0 -0
- data/docs/images/brick_link.png +0 -0
- data/docs/images/bug.png +0 -0
- data/docs/images/bullet_black.png +0 -0
- data/docs/images/bullet_toggle_minus.png +0 -0
- data/docs/images/bullet_toggle_plus.png +0 -0
- data/docs/images/date.png +0 -0
- data/docs/images/find.png +0 -0
- data/docs/images/loadingAnimation.gif +0 -0
- data/docs/images/macFFBgHack.png +0 -0
- data/docs/images/package.png +0 -0
- data/docs/images/page_green.png +0 -0
- data/docs/images/page_white_text.png +0 -0
- data/docs/images/page_white_width.png +0 -0
- data/docs/images/plugin.png +0 -0
- data/docs/images/ruby.png +0 -0
- data/docs/images/tag_green.png +0 -0
- data/docs/images/wrench.png +0 -0
- data/docs/images/wrench_orange.png +0 -0
- data/docs/images/zoom.png +0 -0
- data/docs/index.html +544 -20
- data/docs/js/darkfish.js +116 -0
- data/docs/js/jquery.js +32 -0
- data/docs/js/quicksearch.js +114 -0
- data/docs/js/thickbox-compressed.js +10 -0
- data/docs/lib/ganapati/client_rb.html +52 -0
- data/docs/lib/ganapati/hfile_rb.html +52 -0
- data/docs/lib/ganapati/utils_rb.html +52 -0
- data/docs/lib/ganapati/version_rb.html +52 -0
- data/docs/lib/ganapati_rb.html +62 -0
- data/docs/lib/thrift/hadoopfs_constants_rb.html +58 -0
- data/docs/lib/thrift/hadoopfs_types_rb.html +56 -0
- data/docs/lib/thrift/thrift_hadoop_file_system_rb.html +60 -0
- data/docs/rdoc.css +759 -0
- data/lib/ganapati/client.rb +10 -10
- data/lib/ganapati/version.rb +1 -1
- metadata +112 -9
@@ -0,0 +1,352 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: ThriftHadoopFileSystem::Chown_result</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="class">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="../index.html">Home</a>
|
25
|
+
<a href="../index.html#classes">Classes</a>
|
26
|
+
<a href="../index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="../lib/thrift/thrift_hadoop_file_system_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/thrift/thrift_hadoop_file_system.rb">lib/thrift/thrift_hadoop_file_system.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
<!-- Parent Class -->
|
50
|
+
<div id="parent-class-section" class="section">
|
51
|
+
<h3 class="section-header">Parent</h3>
|
52
|
+
|
53
|
+
<p class="link">Object</p>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Method Quickref -->
|
64
|
+
<div id="method-list-section" class="section">
|
65
|
+
<h3 class="section-header">Methods</h3>
|
66
|
+
<ul class="link-list">
|
67
|
+
|
68
|
+
<li><a href="#method-i-struct_fields">#struct_fields</a></li>
|
69
|
+
|
70
|
+
<li><a href="#method-i-validate">#validate</a></li>
|
71
|
+
|
72
|
+
</ul>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
<!-- Included Modules -->
|
78
|
+
<div id="includes-section" class="section">
|
79
|
+
<h3 class="section-header">Included Modules</h3>
|
80
|
+
<ul class="link-list">
|
81
|
+
|
82
|
+
|
83
|
+
<li><span class="include">::Thrift::Struct</span></li>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
<li><span class="include">::Thrift::Struct_Union</span></li>
|
88
|
+
|
89
|
+
|
90
|
+
</ul>
|
91
|
+
</div>
|
92
|
+
|
93
|
+
</div>
|
94
|
+
|
95
|
+
<div id="project-metadata">
|
96
|
+
|
97
|
+
|
98
|
+
<div id="fileindex-section" class="section project-section">
|
99
|
+
<h3 class="section-header">Files</h3>
|
100
|
+
<ul>
|
101
|
+
|
102
|
+
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
103
|
+
|
104
|
+
</ul>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
|
108
|
+
<div id="classindex-section" class="section project-section">
|
109
|
+
<h3 class="section-header">Class/Module Index
|
110
|
+
<span class="search-toggle"><img src="../images/find.png"
|
111
|
+
height="16" width="16" alt="[+]"
|
112
|
+
title="show/hide quicksearch" /></span></h3>
|
113
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
114
|
+
<fieldset>
|
115
|
+
<legend>Quicksearch</legend>
|
116
|
+
<input type="text" name="quicksearch" value=""
|
117
|
+
class="quicksearch-field" />
|
118
|
+
</fieldset>
|
119
|
+
</form>
|
120
|
+
|
121
|
+
<ul class="link-list">
|
122
|
+
|
123
|
+
<li><a href="../ThriftHadoopFileSystem.html">ThriftHadoopFileSystem</a></li>
|
124
|
+
|
125
|
+
<li><a href="../ThriftHadoopFileSystem/Append_args.html">ThriftHadoopFileSystem::Append_args</a></li>
|
126
|
+
|
127
|
+
<li><a href="../ThriftHadoopFileSystem/Append_result.html">ThriftHadoopFileSystem::Append_result</a></li>
|
128
|
+
|
129
|
+
<li><a href="../ThriftHadoopFileSystem/BlockLocation.html">ThriftHadoopFileSystem::BlockLocation</a></li>
|
130
|
+
|
131
|
+
<li><a href="../ThriftHadoopFileSystem/Chmod_args.html">ThriftHadoopFileSystem::Chmod_args</a></li>
|
132
|
+
|
133
|
+
<li><a href="../ThriftHadoopFileSystem/Chmod_result.html">ThriftHadoopFileSystem::Chmod_result</a></li>
|
134
|
+
|
135
|
+
<li><a href="../ThriftHadoopFileSystem/Chown_args.html">ThriftHadoopFileSystem::Chown_args</a></li>
|
136
|
+
|
137
|
+
<li><a href="../ThriftHadoopFileSystem/Chown_result.html">ThriftHadoopFileSystem::Chown_result</a></li>
|
138
|
+
|
139
|
+
<li><a href="../ThriftHadoopFileSystem/Client.html">ThriftHadoopFileSystem::Client</a></li>
|
140
|
+
|
141
|
+
<li><a href="../ThriftHadoopFileSystem/Close_args.html">ThriftHadoopFileSystem::Close_args</a></li>
|
142
|
+
|
143
|
+
<li><a href="../ThriftHadoopFileSystem/Close_result.html">ThriftHadoopFileSystem::Close_result</a></li>
|
144
|
+
|
145
|
+
<li><a href="../ThriftHadoopFileSystem/CreateFile_args.html">ThriftHadoopFileSystem::CreateFile_args</a></li>
|
146
|
+
|
147
|
+
<li><a href="../ThriftHadoopFileSystem/CreateFile_result.html">ThriftHadoopFileSystem::CreateFile_result</a></li>
|
148
|
+
|
149
|
+
<li><a href="../ThriftHadoopFileSystem/Create_args.html">ThriftHadoopFileSystem::Create_args</a></li>
|
150
|
+
|
151
|
+
<li><a href="../ThriftHadoopFileSystem/Create_result.html">ThriftHadoopFileSystem::Create_result</a></li>
|
152
|
+
|
153
|
+
<li><a href="../ThriftHadoopFileSystem/Exists_args.html">ThriftHadoopFileSystem::Exists_args</a></li>
|
154
|
+
|
155
|
+
<li><a href="../ThriftHadoopFileSystem/Exists_result.html">ThriftHadoopFileSystem::Exists_result</a></li>
|
156
|
+
|
157
|
+
<li><a href="../ThriftHadoopFileSystem/FileStatus.html">ThriftHadoopFileSystem::FileStatus</a></li>
|
158
|
+
|
159
|
+
<li><a href="../ThriftHadoopFileSystem/GetFileBlockLocations_args.html">ThriftHadoopFileSystem::GetFileBlockLocations_args</a></li>
|
160
|
+
|
161
|
+
<li><a href="../ThriftHadoopFileSystem/GetFileBlockLocations_result.html">ThriftHadoopFileSystem::GetFileBlockLocations_result</a></li>
|
162
|
+
|
163
|
+
<li><a href="../ThriftHadoopFileSystem/ListStatus_args.html">ThriftHadoopFileSystem::ListStatus_args</a></li>
|
164
|
+
|
165
|
+
<li><a href="../ThriftHadoopFileSystem/ListStatus_result.html">ThriftHadoopFileSystem::ListStatus_result</a></li>
|
166
|
+
|
167
|
+
<li><a href="../ThriftHadoopFileSystem/MalformedInputException.html">ThriftHadoopFileSystem::MalformedInputException</a></li>
|
168
|
+
|
169
|
+
<li><a href="../ThriftHadoopFileSystem/Mkdirs_args.html">ThriftHadoopFileSystem::Mkdirs_args</a></li>
|
170
|
+
|
171
|
+
<li><a href="../ThriftHadoopFileSystem/Mkdirs_result.html">ThriftHadoopFileSystem::Mkdirs_result</a></li>
|
172
|
+
|
173
|
+
<li><a href="../ThriftHadoopFileSystem/Open_args.html">ThriftHadoopFileSystem::Open_args</a></li>
|
174
|
+
|
175
|
+
<li><a href="../ThriftHadoopFileSystem/Open_result.html">ThriftHadoopFileSystem::Open_result</a></li>
|
176
|
+
|
177
|
+
<li><a href="../ThriftHadoopFileSystem/Pathname.html">ThriftHadoopFileSystem::Pathname</a></li>
|
178
|
+
|
179
|
+
<li><a href="../ThriftHadoopFileSystem/Processor.html">ThriftHadoopFileSystem::Processor</a></li>
|
180
|
+
|
181
|
+
<li><a href="../ThriftHadoopFileSystem/Read_args.html">ThriftHadoopFileSystem::Read_args</a></li>
|
182
|
+
|
183
|
+
<li><a href="../ThriftHadoopFileSystem/Read_result.html">ThriftHadoopFileSystem::Read_result</a></li>
|
184
|
+
|
185
|
+
<li><a href="../ThriftHadoopFileSystem/Rename_args.html">ThriftHadoopFileSystem::Rename_args</a></li>
|
186
|
+
|
187
|
+
<li><a href="../ThriftHadoopFileSystem/Rename_result.html">ThriftHadoopFileSystem::Rename_result</a></li>
|
188
|
+
|
189
|
+
<li><a href="../ThriftHadoopFileSystem/Rm_args.html">ThriftHadoopFileSystem::Rm_args</a></li>
|
190
|
+
|
191
|
+
<li><a href="../ThriftHadoopFileSystem/Rm_result.html">ThriftHadoopFileSystem::Rm_result</a></li>
|
192
|
+
|
193
|
+
<li><a href="../ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_args.html">ThriftHadoopFileSystem::SetInactivityTimeoutPeriod_args</a></li>
|
194
|
+
|
195
|
+
<li><a href="../ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_result.html">ThriftHadoopFileSystem::SetInactivityTimeoutPeriod_result</a></li>
|
196
|
+
|
197
|
+
<li><a href="../ThriftHadoopFileSystem/SetReplication_args.html">ThriftHadoopFileSystem::SetReplication_args</a></li>
|
198
|
+
|
199
|
+
<li><a href="../ThriftHadoopFileSystem/SetReplication_result.html">ThriftHadoopFileSystem::SetReplication_result</a></li>
|
200
|
+
|
201
|
+
<li><a href="../ThriftHadoopFileSystem/Shutdown_args.html">ThriftHadoopFileSystem::Shutdown_args</a></li>
|
202
|
+
|
203
|
+
<li><a href="../ThriftHadoopFileSystem/Shutdown_result.html">ThriftHadoopFileSystem::Shutdown_result</a></li>
|
204
|
+
|
205
|
+
<li><a href="../ThriftHadoopFileSystem/Stat_args.html">ThriftHadoopFileSystem::Stat_args</a></li>
|
206
|
+
|
207
|
+
<li><a href="../ThriftHadoopFileSystem/Stat_result.html">ThriftHadoopFileSystem::Stat_result</a></li>
|
208
|
+
|
209
|
+
<li><a href="../ThriftHadoopFileSystem/ThriftHandle.html">ThriftHadoopFileSystem::ThriftHandle</a></li>
|
210
|
+
|
211
|
+
<li><a href="../ThriftHadoopFileSystem/ThriftIOException.html">ThriftHadoopFileSystem::ThriftIOException</a></li>
|
212
|
+
|
213
|
+
<li><a href="../ThriftHadoopFileSystem/Write_args.html">ThriftHadoopFileSystem::Write_args</a></li>
|
214
|
+
|
215
|
+
<li><a href="../ThriftHadoopFileSystem/Write_result.html">ThriftHadoopFileSystem::Write_result</a></li>
|
216
|
+
|
217
|
+
<li><a href="../Ganapati.html">Ganapati</a></li>
|
218
|
+
|
219
|
+
<li><a href="../Ganapati/Client.html">Ganapati::Client</a></li>
|
220
|
+
|
221
|
+
<li><a href="../Ganapati/FileUrl.html">Ganapati::FileUrl</a></li>
|
222
|
+
|
223
|
+
<li><a href="../Ganapati/HFile.html">Ganapati::HFile</a></li>
|
224
|
+
|
225
|
+
</ul>
|
226
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
227
|
+
</div>
|
228
|
+
|
229
|
+
|
230
|
+
</div>
|
231
|
+
</div>
|
232
|
+
|
233
|
+
<div id="documentation">
|
234
|
+
<h1 class="class">ThriftHadoopFileSystem::Chown_result</h1>
|
235
|
+
|
236
|
+
<div id="description" class="description">
|
237
|
+
|
238
|
+
</div><!-- description -->
|
239
|
+
|
240
|
+
|
241
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
<!-- Constants -->
|
248
|
+
<div id="constants-list" class="section">
|
249
|
+
<h3 class="section-header">Constants</h3>
|
250
|
+
<dl>
|
251
|
+
|
252
|
+
<dt><a name="FIELDS">FIELDS</a></dt>
|
253
|
+
|
254
|
+
<dd class="description"></dd>
|
255
|
+
|
256
|
+
|
257
|
+
<dt><a name="OUCH">OUCH</a></dt>
|
258
|
+
|
259
|
+
<dd class="description"></dd>
|
260
|
+
|
261
|
+
|
262
|
+
</dl>
|
263
|
+
</div>
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
<!-- Methods -->
|
269
|
+
|
270
|
+
<div id="public-instance-method-details" class="method-section section">
|
271
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
272
|
+
|
273
|
+
|
274
|
+
<div id="struct_fields-method" class="method-detail ">
|
275
|
+
<a name="method-i-struct_fields"></a>
|
276
|
+
|
277
|
+
|
278
|
+
<div class="method-heading">
|
279
|
+
<span class="method-name">struct_fields</span><span
|
280
|
+
class="method-args">()</span>
|
281
|
+
<span class="method-click-advice">click to toggle source</span>
|
282
|
+
</div>
|
283
|
+
|
284
|
+
|
285
|
+
<div class="method-description">
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
<div class="method-source-code" id="struct_fields-source">
|
292
|
+
<pre>
|
293
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 1107</span>
|
294
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">struct_fields</span>; <span class="ruby-constant">FIELDS</span>; <span class="ruby-keyword">end</span></pre>
|
295
|
+
</div><!-- struct_fields-source -->
|
296
|
+
|
297
|
+
</div>
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
</div><!-- struct_fields-method -->
|
303
|
+
|
304
|
+
|
305
|
+
<div id="validate-method" class="method-detail ">
|
306
|
+
<a name="method-i-validate"></a>
|
307
|
+
|
308
|
+
|
309
|
+
<div class="method-heading">
|
310
|
+
<span class="method-name">validate</span><span
|
311
|
+
class="method-args">()</span>
|
312
|
+
<span class="method-click-advice">click to toggle source</span>
|
313
|
+
</div>
|
314
|
+
|
315
|
+
|
316
|
+
<div class="method-description">
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
<div class="method-source-code" id="validate-source">
|
323
|
+
<pre>
|
324
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 1109</span>
|
325
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">validate</span>
|
326
|
+
<span class="ruby-keyword">end</span></pre>
|
327
|
+
</div><!-- validate-source -->
|
328
|
+
|
329
|
+
</div>
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
</div><!-- validate-method -->
|
335
|
+
|
336
|
+
|
337
|
+
</div><!-- public-instance-method-details -->
|
338
|
+
|
339
|
+
</div><!-- 5Buntitled-5D -->
|
340
|
+
|
341
|
+
|
342
|
+
</div><!-- documentation -->
|
343
|
+
|
344
|
+
<div id="validator-badges">
|
345
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
346
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
347
|
+
Rdoc Generator</a> 2</small>.</p>
|
348
|
+
</div>
|
349
|
+
|
350
|
+
</body>
|
351
|
+
</html>
|
352
|
+
|
@@ -0,0 +1,2327 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
5
|
+
<head>
|
6
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
7
|
+
|
8
|
+
<title>Class: ThriftHadoopFileSystem::Client</title>
|
9
|
+
|
10
|
+
<link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
|
11
|
+
|
12
|
+
<script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script>
|
13
|
+
<script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
|
14
|
+
<script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
|
15
|
+
<script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script>
|
16
|
+
|
17
|
+
</head>
|
18
|
+
<body id="top" class="class">
|
19
|
+
|
20
|
+
<div id="metadata">
|
21
|
+
<div id="home-metadata">
|
22
|
+
<div id="home-section" class="section">
|
23
|
+
<h3 class="section-header">
|
24
|
+
<a href="../index.html">Home</a>
|
25
|
+
<a href="../index.html#classes">Classes</a>
|
26
|
+
<a href="../index.html#methods">Methods</a>
|
27
|
+
</h3>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div id="file-metadata">
|
32
|
+
<div id="file-list-section" class="section">
|
33
|
+
<h3 class="section-header">In Files</h3>
|
34
|
+
<div class="section-body">
|
35
|
+
<ul>
|
36
|
+
|
37
|
+
<li><a href="../lib/thrift/thrift_hadoop_file_system_rb.html?TB_iframe=true&height=550&width=785"
|
38
|
+
class="thickbox" title="lib/thrift/thrift_hadoop_file_system.rb">lib/thrift/thrift_hadoop_file_system.rb</a></li>
|
39
|
+
|
40
|
+
</ul>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
|
44
|
+
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<div id="class-metadata">
|
48
|
+
|
49
|
+
<!-- Parent Class -->
|
50
|
+
<div id="parent-class-section" class="section">
|
51
|
+
<h3 class="section-header">Parent</h3>
|
52
|
+
|
53
|
+
<p class="link">Object</p>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
<!-- Method Quickref -->
|
64
|
+
<div id="method-list-section" class="section">
|
65
|
+
<h3 class="section-header">Methods</h3>
|
66
|
+
<ul class="link-list">
|
67
|
+
|
68
|
+
<li><a href="#method-i-append">#append</a></li>
|
69
|
+
|
70
|
+
<li><a href="#method-i-chmod">#chmod</a></li>
|
71
|
+
|
72
|
+
<li><a href="#method-i-chown">#chown</a></li>
|
73
|
+
|
74
|
+
<li><a href="#method-i-close">#close</a></li>
|
75
|
+
|
76
|
+
<li><a href="#method-i-create">#create</a></li>
|
77
|
+
|
78
|
+
<li><a href="#method-i-createFile">#createFile</a></li>
|
79
|
+
|
80
|
+
<li><a href="#method-i-exists">#exists</a></li>
|
81
|
+
|
82
|
+
<li><a href="#method-i-getFileBlockLocations">#getFileBlockLocations</a></li>
|
83
|
+
|
84
|
+
<li><a href="#method-i-listStatus">#listStatus</a></li>
|
85
|
+
|
86
|
+
<li><a href="#method-i-mkdirs">#mkdirs</a></li>
|
87
|
+
|
88
|
+
<li><a href="#method-i-open">#open</a></li>
|
89
|
+
|
90
|
+
<li><a href="#method-i-read">#read</a></li>
|
91
|
+
|
92
|
+
<li><a href="#method-i-recv_append">#recv_append</a></li>
|
93
|
+
|
94
|
+
<li><a href="#method-i-recv_chmod">#recv_chmod</a></li>
|
95
|
+
|
96
|
+
<li><a href="#method-i-recv_chown">#recv_chown</a></li>
|
97
|
+
|
98
|
+
<li><a href="#method-i-recv_close">#recv_close</a></li>
|
99
|
+
|
100
|
+
<li><a href="#method-i-recv_create">#recv_create</a></li>
|
101
|
+
|
102
|
+
<li><a href="#method-i-recv_createFile">#recv_createFile</a></li>
|
103
|
+
|
104
|
+
<li><a href="#method-i-recv_exists">#recv_exists</a></li>
|
105
|
+
|
106
|
+
<li><a href="#method-i-recv_getFileBlockLocations">#recv_getFileBlockLocations</a></li>
|
107
|
+
|
108
|
+
<li><a href="#method-i-recv_listStatus">#recv_listStatus</a></li>
|
109
|
+
|
110
|
+
<li><a href="#method-i-recv_mkdirs">#recv_mkdirs</a></li>
|
111
|
+
|
112
|
+
<li><a href="#method-i-recv_open">#recv_open</a></li>
|
113
|
+
|
114
|
+
<li><a href="#method-i-recv_read">#recv_read</a></li>
|
115
|
+
|
116
|
+
<li><a href="#method-i-recv_rename">#recv_rename</a></li>
|
117
|
+
|
118
|
+
<li><a href="#method-i-recv_rm">#recv_rm</a></li>
|
119
|
+
|
120
|
+
<li><a href="#method-i-recv_setInactivityTimeoutPeriod">#recv_setInactivityTimeoutPeriod</a></li>
|
121
|
+
|
122
|
+
<li><a href="#method-i-recv_setReplication">#recv_setReplication</a></li>
|
123
|
+
|
124
|
+
<li><a href="#method-i-recv_shutdown">#recv_shutdown</a></li>
|
125
|
+
|
126
|
+
<li><a href="#method-i-recv_stat">#recv_stat</a></li>
|
127
|
+
|
128
|
+
<li><a href="#method-i-recv_write">#recv_write</a></li>
|
129
|
+
|
130
|
+
<li><a href="#method-i-rename">#rename</a></li>
|
131
|
+
|
132
|
+
<li><a href="#method-i-rm">#rm</a></li>
|
133
|
+
|
134
|
+
<li><a href="#method-i-send_append">#send_append</a></li>
|
135
|
+
|
136
|
+
<li><a href="#method-i-send_chmod">#send_chmod</a></li>
|
137
|
+
|
138
|
+
<li><a href="#method-i-send_chown">#send_chown</a></li>
|
139
|
+
|
140
|
+
<li><a href="#method-i-send_close">#send_close</a></li>
|
141
|
+
|
142
|
+
<li><a href="#method-i-send_create">#send_create</a></li>
|
143
|
+
|
144
|
+
<li><a href="#method-i-send_createFile">#send_createFile</a></li>
|
145
|
+
|
146
|
+
<li><a href="#method-i-send_exists">#send_exists</a></li>
|
147
|
+
|
148
|
+
<li><a href="#method-i-send_getFileBlockLocations">#send_getFileBlockLocations</a></li>
|
149
|
+
|
150
|
+
<li><a href="#method-i-send_listStatus">#send_listStatus</a></li>
|
151
|
+
|
152
|
+
<li><a href="#method-i-send_mkdirs">#send_mkdirs</a></li>
|
153
|
+
|
154
|
+
<li><a href="#method-i-send_open">#send_open</a></li>
|
155
|
+
|
156
|
+
<li><a href="#method-i-send_read">#send_read</a></li>
|
157
|
+
|
158
|
+
<li><a href="#method-i-send_rename">#send_rename</a></li>
|
159
|
+
|
160
|
+
<li><a href="#method-i-send_rm">#send_rm</a></li>
|
161
|
+
|
162
|
+
<li><a href="#method-i-send_setInactivityTimeoutPeriod">#send_setInactivityTimeoutPeriod</a></li>
|
163
|
+
|
164
|
+
<li><a href="#method-i-send_setReplication">#send_setReplication</a></li>
|
165
|
+
|
166
|
+
<li><a href="#method-i-send_shutdown">#send_shutdown</a></li>
|
167
|
+
|
168
|
+
<li><a href="#method-i-send_stat">#send_stat</a></li>
|
169
|
+
|
170
|
+
<li><a href="#method-i-send_write">#send_write</a></li>
|
171
|
+
|
172
|
+
<li><a href="#method-i-setInactivityTimeoutPeriod">#setInactivityTimeoutPeriod</a></li>
|
173
|
+
|
174
|
+
<li><a href="#method-i-setReplication">#setReplication</a></li>
|
175
|
+
|
176
|
+
<li><a href="#method-i-shutdown">#shutdown</a></li>
|
177
|
+
|
178
|
+
<li><a href="#method-i-stat">#stat</a></li>
|
179
|
+
|
180
|
+
<li><a href="#method-i-write">#write</a></li>
|
181
|
+
|
182
|
+
</ul>
|
183
|
+
</div>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<!-- Included Modules -->
|
188
|
+
<div id="includes-section" class="section">
|
189
|
+
<h3 class="section-header">Included Modules</h3>
|
190
|
+
<ul class="link-list">
|
191
|
+
|
192
|
+
|
193
|
+
<li><span class="include">::Thrift::Client</span></li>
|
194
|
+
|
195
|
+
|
196
|
+
</ul>
|
197
|
+
</div>
|
198
|
+
|
199
|
+
</div>
|
200
|
+
|
201
|
+
<div id="project-metadata">
|
202
|
+
|
203
|
+
|
204
|
+
<div id="fileindex-section" class="section project-section">
|
205
|
+
<h3 class="section-header">Files</h3>
|
206
|
+
<ul>
|
207
|
+
|
208
|
+
<li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
|
209
|
+
|
210
|
+
</ul>
|
211
|
+
</div>
|
212
|
+
|
213
|
+
|
214
|
+
<div id="classindex-section" class="section project-section">
|
215
|
+
<h3 class="section-header">Class/Module Index
|
216
|
+
<span class="search-toggle"><img src="../images/find.png"
|
217
|
+
height="16" width="16" alt="[+]"
|
218
|
+
title="show/hide quicksearch" /></span></h3>
|
219
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
220
|
+
<fieldset>
|
221
|
+
<legend>Quicksearch</legend>
|
222
|
+
<input type="text" name="quicksearch" value=""
|
223
|
+
class="quicksearch-field" />
|
224
|
+
</fieldset>
|
225
|
+
</form>
|
226
|
+
|
227
|
+
<ul class="link-list">
|
228
|
+
|
229
|
+
<li><a href="../ThriftHadoopFileSystem.html">ThriftHadoopFileSystem</a></li>
|
230
|
+
|
231
|
+
<li><a href="../ThriftHadoopFileSystem/Append_args.html">ThriftHadoopFileSystem::Append_args</a></li>
|
232
|
+
|
233
|
+
<li><a href="../ThriftHadoopFileSystem/Append_result.html">ThriftHadoopFileSystem::Append_result</a></li>
|
234
|
+
|
235
|
+
<li><a href="../ThriftHadoopFileSystem/BlockLocation.html">ThriftHadoopFileSystem::BlockLocation</a></li>
|
236
|
+
|
237
|
+
<li><a href="../ThriftHadoopFileSystem/Chmod_args.html">ThriftHadoopFileSystem::Chmod_args</a></li>
|
238
|
+
|
239
|
+
<li><a href="../ThriftHadoopFileSystem/Chmod_result.html">ThriftHadoopFileSystem::Chmod_result</a></li>
|
240
|
+
|
241
|
+
<li><a href="../ThriftHadoopFileSystem/Chown_args.html">ThriftHadoopFileSystem::Chown_args</a></li>
|
242
|
+
|
243
|
+
<li><a href="../ThriftHadoopFileSystem/Chown_result.html">ThriftHadoopFileSystem::Chown_result</a></li>
|
244
|
+
|
245
|
+
<li><a href="../ThriftHadoopFileSystem/Client.html">ThriftHadoopFileSystem::Client</a></li>
|
246
|
+
|
247
|
+
<li><a href="../ThriftHadoopFileSystem/Close_args.html">ThriftHadoopFileSystem::Close_args</a></li>
|
248
|
+
|
249
|
+
<li><a href="../ThriftHadoopFileSystem/Close_result.html">ThriftHadoopFileSystem::Close_result</a></li>
|
250
|
+
|
251
|
+
<li><a href="../ThriftHadoopFileSystem/CreateFile_args.html">ThriftHadoopFileSystem::CreateFile_args</a></li>
|
252
|
+
|
253
|
+
<li><a href="../ThriftHadoopFileSystem/CreateFile_result.html">ThriftHadoopFileSystem::CreateFile_result</a></li>
|
254
|
+
|
255
|
+
<li><a href="../ThriftHadoopFileSystem/Create_args.html">ThriftHadoopFileSystem::Create_args</a></li>
|
256
|
+
|
257
|
+
<li><a href="../ThriftHadoopFileSystem/Create_result.html">ThriftHadoopFileSystem::Create_result</a></li>
|
258
|
+
|
259
|
+
<li><a href="../ThriftHadoopFileSystem/Exists_args.html">ThriftHadoopFileSystem::Exists_args</a></li>
|
260
|
+
|
261
|
+
<li><a href="../ThriftHadoopFileSystem/Exists_result.html">ThriftHadoopFileSystem::Exists_result</a></li>
|
262
|
+
|
263
|
+
<li><a href="../ThriftHadoopFileSystem/FileStatus.html">ThriftHadoopFileSystem::FileStatus</a></li>
|
264
|
+
|
265
|
+
<li><a href="../ThriftHadoopFileSystem/GetFileBlockLocations_args.html">ThriftHadoopFileSystem::GetFileBlockLocations_args</a></li>
|
266
|
+
|
267
|
+
<li><a href="../ThriftHadoopFileSystem/GetFileBlockLocations_result.html">ThriftHadoopFileSystem::GetFileBlockLocations_result</a></li>
|
268
|
+
|
269
|
+
<li><a href="../ThriftHadoopFileSystem/ListStatus_args.html">ThriftHadoopFileSystem::ListStatus_args</a></li>
|
270
|
+
|
271
|
+
<li><a href="../ThriftHadoopFileSystem/ListStatus_result.html">ThriftHadoopFileSystem::ListStatus_result</a></li>
|
272
|
+
|
273
|
+
<li><a href="../ThriftHadoopFileSystem/MalformedInputException.html">ThriftHadoopFileSystem::MalformedInputException</a></li>
|
274
|
+
|
275
|
+
<li><a href="../ThriftHadoopFileSystem/Mkdirs_args.html">ThriftHadoopFileSystem::Mkdirs_args</a></li>
|
276
|
+
|
277
|
+
<li><a href="../ThriftHadoopFileSystem/Mkdirs_result.html">ThriftHadoopFileSystem::Mkdirs_result</a></li>
|
278
|
+
|
279
|
+
<li><a href="../ThriftHadoopFileSystem/Open_args.html">ThriftHadoopFileSystem::Open_args</a></li>
|
280
|
+
|
281
|
+
<li><a href="../ThriftHadoopFileSystem/Open_result.html">ThriftHadoopFileSystem::Open_result</a></li>
|
282
|
+
|
283
|
+
<li><a href="../ThriftHadoopFileSystem/Pathname.html">ThriftHadoopFileSystem::Pathname</a></li>
|
284
|
+
|
285
|
+
<li><a href="../ThriftHadoopFileSystem/Processor.html">ThriftHadoopFileSystem::Processor</a></li>
|
286
|
+
|
287
|
+
<li><a href="../ThriftHadoopFileSystem/Read_args.html">ThriftHadoopFileSystem::Read_args</a></li>
|
288
|
+
|
289
|
+
<li><a href="../ThriftHadoopFileSystem/Read_result.html">ThriftHadoopFileSystem::Read_result</a></li>
|
290
|
+
|
291
|
+
<li><a href="../ThriftHadoopFileSystem/Rename_args.html">ThriftHadoopFileSystem::Rename_args</a></li>
|
292
|
+
|
293
|
+
<li><a href="../ThriftHadoopFileSystem/Rename_result.html">ThriftHadoopFileSystem::Rename_result</a></li>
|
294
|
+
|
295
|
+
<li><a href="../ThriftHadoopFileSystem/Rm_args.html">ThriftHadoopFileSystem::Rm_args</a></li>
|
296
|
+
|
297
|
+
<li><a href="../ThriftHadoopFileSystem/Rm_result.html">ThriftHadoopFileSystem::Rm_result</a></li>
|
298
|
+
|
299
|
+
<li><a href="../ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_args.html">ThriftHadoopFileSystem::SetInactivityTimeoutPeriod_args</a></li>
|
300
|
+
|
301
|
+
<li><a href="../ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_result.html">ThriftHadoopFileSystem::SetInactivityTimeoutPeriod_result</a></li>
|
302
|
+
|
303
|
+
<li><a href="../ThriftHadoopFileSystem/SetReplication_args.html">ThriftHadoopFileSystem::SetReplication_args</a></li>
|
304
|
+
|
305
|
+
<li><a href="../ThriftHadoopFileSystem/SetReplication_result.html">ThriftHadoopFileSystem::SetReplication_result</a></li>
|
306
|
+
|
307
|
+
<li><a href="../ThriftHadoopFileSystem/Shutdown_args.html">ThriftHadoopFileSystem::Shutdown_args</a></li>
|
308
|
+
|
309
|
+
<li><a href="../ThriftHadoopFileSystem/Shutdown_result.html">ThriftHadoopFileSystem::Shutdown_result</a></li>
|
310
|
+
|
311
|
+
<li><a href="../ThriftHadoopFileSystem/Stat_args.html">ThriftHadoopFileSystem::Stat_args</a></li>
|
312
|
+
|
313
|
+
<li><a href="../ThriftHadoopFileSystem/Stat_result.html">ThriftHadoopFileSystem::Stat_result</a></li>
|
314
|
+
|
315
|
+
<li><a href="../ThriftHadoopFileSystem/ThriftHandle.html">ThriftHadoopFileSystem::ThriftHandle</a></li>
|
316
|
+
|
317
|
+
<li><a href="../ThriftHadoopFileSystem/ThriftIOException.html">ThriftHadoopFileSystem::ThriftIOException</a></li>
|
318
|
+
|
319
|
+
<li><a href="../ThriftHadoopFileSystem/Write_args.html">ThriftHadoopFileSystem::Write_args</a></li>
|
320
|
+
|
321
|
+
<li><a href="../ThriftHadoopFileSystem/Write_result.html">ThriftHadoopFileSystem::Write_result</a></li>
|
322
|
+
|
323
|
+
<li><a href="../Ganapati.html">Ganapati</a></li>
|
324
|
+
|
325
|
+
<li><a href="../Ganapati/Client.html">Ganapati::Client</a></li>
|
326
|
+
|
327
|
+
<li><a href="../Ganapati/FileUrl.html">Ganapati::FileUrl</a></li>
|
328
|
+
|
329
|
+
<li><a href="../Ganapati/HFile.html">Ganapati::HFile</a></li>
|
330
|
+
|
331
|
+
</ul>
|
332
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
333
|
+
</div>
|
334
|
+
|
335
|
+
|
336
|
+
</div>
|
337
|
+
</div>
|
338
|
+
|
339
|
+
<div id="documentation">
|
340
|
+
<h1 class="class">ThriftHadoopFileSystem::Client</h1>
|
341
|
+
|
342
|
+
<div id="description" class="description">
|
343
|
+
|
344
|
+
</div><!-- description -->
|
345
|
+
|
346
|
+
|
347
|
+
<div id="5Buntitled-5D" class="documentation-section">
|
348
|
+
|
349
|
+
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
<!-- Methods -->
|
357
|
+
|
358
|
+
<div id="public-instance-method-details" class="method-section section">
|
359
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
360
|
+
|
361
|
+
|
362
|
+
<div id="append-method" class="method-detail ">
|
363
|
+
<a name="method-i-append"></a>
|
364
|
+
|
365
|
+
|
366
|
+
<div class="method-heading">
|
367
|
+
<span class="method-name">append</span><span
|
368
|
+
class="method-args">(path)</span>
|
369
|
+
<span class="method-click-advice">click to toggle source</span>
|
370
|
+
</div>
|
371
|
+
|
372
|
+
|
373
|
+
<div class="method-description">
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
<div class="method-source-code" id="append-source">
|
380
|
+
<pre>
|
381
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 90</span>
|
382
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">append</span>(<span class="ruby-identifier">path</span>)
|
383
|
+
<span class="ruby-identifier">send_append</span>(<span class="ruby-identifier">path</span>)
|
384
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">recv_append</span>()
|
385
|
+
<span class="ruby-keyword">end</span></pre>
|
386
|
+
</div><!-- append-source -->
|
387
|
+
|
388
|
+
</div>
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
</div><!-- append-method -->
|
394
|
+
|
395
|
+
|
396
|
+
<div id="chmod-method" class="method-detail ">
|
397
|
+
<a name="method-i-chmod"></a>
|
398
|
+
|
399
|
+
|
400
|
+
<div class="method-heading">
|
401
|
+
<span class="method-name">chmod</span><span
|
402
|
+
class="method-args">(path, mode)</span>
|
403
|
+
<span class="method-click-advice">click to toggle source</span>
|
404
|
+
</div>
|
405
|
+
|
406
|
+
|
407
|
+
<div class="method-description">
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
<div class="method-source-code" id="chmod-source">
|
414
|
+
<pre>
|
415
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 250</span>
|
416
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">chmod</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">mode</span>)
|
417
|
+
<span class="ruby-identifier">send_chmod</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">mode</span>)
|
418
|
+
<span class="ruby-identifier">recv_chmod</span>()
|
419
|
+
<span class="ruby-keyword">end</span></pre>
|
420
|
+
</div><!-- chmod-source -->
|
421
|
+
|
422
|
+
</div>
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
</div><!-- chmod-method -->
|
428
|
+
|
429
|
+
|
430
|
+
<div id="chown-method" class="method-detail ">
|
431
|
+
<a name="method-i-chown"></a>
|
432
|
+
|
433
|
+
|
434
|
+
<div class="method-heading">
|
435
|
+
<span class="method-name">chown</span><span
|
436
|
+
class="method-args">(path, owner, group)</span>
|
437
|
+
<span class="method-click-advice">click to toggle source</span>
|
438
|
+
</div>
|
439
|
+
|
440
|
+
|
441
|
+
<div class="method-description">
|
442
|
+
|
443
|
+
|
444
|
+
|
445
|
+
|
446
|
+
|
447
|
+
<div class="method-source-code" id="chown-source">
|
448
|
+
<pre>
|
449
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 265</span>
|
450
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">chown</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">owner</span>, <span class="ruby-identifier">group</span>)
|
451
|
+
<span class="ruby-identifier">send_chown</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">owner</span>, <span class="ruby-identifier">group</span>)
|
452
|
+
<span class="ruby-identifier">recv_chown</span>()
|
453
|
+
<span class="ruby-keyword">end</span></pre>
|
454
|
+
</div><!-- chown-source -->
|
455
|
+
|
456
|
+
</div>
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
</div><!-- chown-method -->
|
462
|
+
|
463
|
+
|
464
|
+
<div id="close-method" class="method-detail ">
|
465
|
+
<a name="method-i-close"></a>
|
466
|
+
|
467
|
+
|
468
|
+
<div class="method-heading">
|
469
|
+
<span class="method-name">close</span><span
|
470
|
+
class="method-args">(out)</span>
|
471
|
+
<span class="method-click-advice">click to toggle source</span>
|
472
|
+
</div>
|
473
|
+
|
474
|
+
|
475
|
+
<div class="method-description">
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
<div class="method-source-code" id="close-source">
|
482
|
+
<pre>
|
483
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 138</span>
|
484
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">close</span>(<span class="ruby-identifier">out</span>)
|
485
|
+
<span class="ruby-identifier">send_close</span>(<span class="ruby-identifier">out</span>)
|
486
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">recv_close</span>()
|
487
|
+
<span class="ruby-keyword">end</span></pre>
|
488
|
+
</div><!-- close-source -->
|
489
|
+
|
490
|
+
</div>
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
</div><!-- close-method -->
|
496
|
+
|
497
|
+
|
498
|
+
<div id="create-method" class="method-detail ">
|
499
|
+
<a name="method-i-create"></a>
|
500
|
+
|
501
|
+
|
502
|
+
<div class="method-heading">
|
503
|
+
<span class="method-name">create</span><span
|
504
|
+
class="method-args">(path)</span>
|
505
|
+
<span class="method-click-advice">click to toggle source</span>
|
506
|
+
</div>
|
507
|
+
|
508
|
+
|
509
|
+
<div class="method-description">
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
|
515
|
+
<div class="method-source-code" id="create-source">
|
516
|
+
<pre>
|
517
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 42</span>
|
518
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">create</span>(<span class="ruby-identifier">path</span>)
|
519
|
+
<span class="ruby-identifier">send_create</span>(<span class="ruby-identifier">path</span>)
|
520
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">recv_create</span>()
|
521
|
+
<span class="ruby-keyword">end</span></pre>
|
522
|
+
</div><!-- create-source -->
|
523
|
+
|
524
|
+
</div>
|
525
|
+
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
</div><!-- create-method -->
|
530
|
+
|
531
|
+
|
532
|
+
<div id="createFile-method" class="method-detail ">
|
533
|
+
<a name="method-i-createFile"></a>
|
534
|
+
|
535
|
+
|
536
|
+
<div class="method-heading">
|
537
|
+
<span class="method-name">createFile</span><span
|
538
|
+
class="method-args">(path, mode, overwrite, bufferSize, block_replication, blocksize)</span>
|
539
|
+
<span class="method-click-advice">click to toggle source</span>
|
540
|
+
</div>
|
541
|
+
|
542
|
+
|
543
|
+
<div class="method-description">
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
<div class="method-source-code" id="createFile-source">
|
550
|
+
<pre>
|
551
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 58</span>
|
552
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">createFile</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">mode</span>, <span class="ruby-identifier">overwrite</span>, <span class="ruby-identifier">bufferSize</span>, <span class="ruby-identifier">block_replication</span>, <span class="ruby-identifier">blocksize</span>)
|
553
|
+
<span class="ruby-identifier">send_createFile</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">mode</span>, <span class="ruby-identifier">overwrite</span>, <span class="ruby-identifier">bufferSize</span>, <span class="ruby-identifier">block_replication</span>, <span class="ruby-identifier">blocksize</span>)
|
554
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">recv_createFile</span>()
|
555
|
+
<span class="ruby-keyword">end</span></pre>
|
556
|
+
</div><!-- createFile-source -->
|
557
|
+
|
558
|
+
</div>
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
</div><!-- createFile-method -->
|
564
|
+
|
565
|
+
|
566
|
+
<div id="exists-method" class="method-detail ">
|
567
|
+
<a name="method-i-exists"></a>
|
568
|
+
|
569
|
+
|
570
|
+
<div class="method-heading">
|
571
|
+
<span class="method-name">exists</span><span
|
572
|
+
class="method-args">(path)</span>
|
573
|
+
<span class="method-click-advice">click to toggle source</span>
|
574
|
+
</div>
|
575
|
+
|
576
|
+
|
577
|
+
<div class="method-description">
|
578
|
+
|
579
|
+
|
580
|
+
|
581
|
+
|
582
|
+
|
583
|
+
<div class="method-source-code" id="exists-source">
|
584
|
+
<pre>
|
585
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 202</span>
|
586
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">exists</span>(<span class="ruby-identifier">path</span>)
|
587
|
+
<span class="ruby-identifier">send_exists</span>(<span class="ruby-identifier">path</span>)
|
588
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">recv_exists</span>()
|
589
|
+
<span class="ruby-keyword">end</span></pre>
|
590
|
+
</div><!-- exists-source -->
|
591
|
+
|
592
|
+
</div>
|
593
|
+
|
594
|
+
|
595
|
+
|
596
|
+
|
597
|
+
</div><!-- exists-method -->
|
598
|
+
|
599
|
+
|
600
|
+
<div id="getFileBlockLocations-method" class="method-detail ">
|
601
|
+
<a name="method-i-getFileBlockLocations"></a>
|
602
|
+
|
603
|
+
|
604
|
+
<div class="method-heading">
|
605
|
+
<span class="method-name">getFileBlockLocations</span><span
|
606
|
+
class="method-args">(path, start, length)</span>
|
607
|
+
<span class="method-click-advice">click to toggle source</span>
|
608
|
+
</div>
|
609
|
+
|
610
|
+
|
611
|
+
<div class="method-description">
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
<div class="method-source-code" id="getFileBlockLocations-source">
|
618
|
+
<pre>
|
619
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 295</span>
|
620
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">getFileBlockLocations</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">start</span>, <span class="ruby-identifier">length</span>)
|
621
|
+
<span class="ruby-identifier">send_getFileBlockLocations</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">start</span>, <span class="ruby-identifier">length</span>)
|
622
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">recv_getFileBlockLocations</span>()
|
623
|
+
<span class="ruby-keyword">end</span></pre>
|
624
|
+
</div><!-- getFileBlockLocations-source -->
|
625
|
+
|
626
|
+
</div>
|
627
|
+
|
628
|
+
|
629
|
+
|
630
|
+
|
631
|
+
</div><!-- getFileBlockLocations-method -->
|
632
|
+
|
633
|
+
|
634
|
+
<div id="listStatus-method" class="method-detail ">
|
635
|
+
<a name="method-i-listStatus"></a>
|
636
|
+
|
637
|
+
|
638
|
+
<div class="method-heading">
|
639
|
+
<span class="method-name">listStatus</span><span
|
640
|
+
class="method-args">(path)</span>
|
641
|
+
<span class="method-click-advice">click to toggle source</span>
|
642
|
+
</div>
|
643
|
+
|
644
|
+
|
645
|
+
<div class="method-description">
|
646
|
+
|
647
|
+
|
648
|
+
|
649
|
+
|
650
|
+
|
651
|
+
<div class="method-source-code" id="listStatus-source">
|
652
|
+
<pre>
|
653
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 234</span>
|
654
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">listStatus</span>(<span class="ruby-identifier">path</span>)
|
655
|
+
<span class="ruby-identifier">send_listStatus</span>(<span class="ruby-identifier">path</span>)
|
656
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">recv_listStatus</span>()
|
657
|
+
<span class="ruby-keyword">end</span></pre>
|
658
|
+
</div><!-- listStatus-source -->
|
659
|
+
|
660
|
+
</div>
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
</div><!-- listStatus-method -->
|
666
|
+
|
667
|
+
|
668
|
+
<div id="mkdirs-method" class="method-detail ">
|
669
|
+
<a name="method-i-mkdirs"></a>
|
670
|
+
|
671
|
+
|
672
|
+
<div class="method-heading">
|
673
|
+
<span class="method-name">mkdirs</span><span
|
674
|
+
class="method-args">(path)</span>
|
675
|
+
<span class="method-click-advice">click to toggle source</span>
|
676
|
+
</div>
|
677
|
+
|
678
|
+
|
679
|
+
<div class="method-description">
|
680
|
+
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
|
685
|
+
<div class="method-source-code" id="mkdirs-source">
|
686
|
+
<pre>
|
687
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 186</span>
|
688
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">mkdirs</span>(<span class="ruby-identifier">path</span>)
|
689
|
+
<span class="ruby-identifier">send_mkdirs</span>(<span class="ruby-identifier">path</span>)
|
690
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">recv_mkdirs</span>()
|
691
|
+
<span class="ruby-keyword">end</span></pre>
|
692
|
+
</div><!-- mkdirs-source -->
|
693
|
+
|
694
|
+
</div>
|
695
|
+
|
696
|
+
|
697
|
+
|
698
|
+
|
699
|
+
</div><!-- mkdirs-method -->
|
700
|
+
|
701
|
+
|
702
|
+
<div id="open-method" class="method-detail ">
|
703
|
+
<a name="method-i-open"></a>
|
704
|
+
|
705
|
+
|
706
|
+
<div class="method-heading">
|
707
|
+
<span class="method-name">open</span><span
|
708
|
+
class="method-args">(path)</span>
|
709
|
+
<span class="method-click-advice">click to toggle source</span>
|
710
|
+
</div>
|
711
|
+
|
712
|
+
|
713
|
+
<div class="method-description">
|
714
|
+
|
715
|
+
|
716
|
+
|
717
|
+
|
718
|
+
|
719
|
+
<div class="method-source-code" id="open-source">
|
720
|
+
<pre>
|
721
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 74</span>
|
722
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">open</span>(<span class="ruby-identifier">path</span>)
|
723
|
+
<span class="ruby-identifier">send_open</span>(<span class="ruby-identifier">path</span>)
|
724
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">recv_open</span>()
|
725
|
+
<span class="ruby-keyword">end</span></pre>
|
726
|
+
</div><!-- open-source -->
|
727
|
+
|
728
|
+
</div>
|
729
|
+
|
730
|
+
|
731
|
+
|
732
|
+
|
733
|
+
</div><!-- open-method -->
|
734
|
+
|
735
|
+
|
736
|
+
<div id="read-method" class="method-detail ">
|
737
|
+
<a name="method-i-read"></a>
|
738
|
+
|
739
|
+
|
740
|
+
<div class="method-heading">
|
741
|
+
<span class="method-name">read</span><span
|
742
|
+
class="method-args">(handle, offset, size)</span>
|
743
|
+
<span class="method-click-advice">click to toggle source</span>
|
744
|
+
</div>
|
745
|
+
|
746
|
+
|
747
|
+
<div class="method-description">
|
748
|
+
|
749
|
+
|
750
|
+
|
751
|
+
|
752
|
+
|
753
|
+
<div class="method-source-code" id="read-source">
|
754
|
+
<pre>
|
755
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 122</span>
|
756
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">read</span>(<span class="ruby-identifier">handle</span>, <span class="ruby-identifier">offset</span>, <span class="ruby-identifier">size</span>)
|
757
|
+
<span class="ruby-identifier">send_read</span>(<span class="ruby-identifier">handle</span>, <span class="ruby-identifier">offset</span>, <span class="ruby-identifier">size</span>)
|
758
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">recv_read</span>()
|
759
|
+
<span class="ruby-keyword">end</span></pre>
|
760
|
+
</div><!-- read-source -->
|
761
|
+
|
762
|
+
</div>
|
763
|
+
|
764
|
+
|
765
|
+
|
766
|
+
|
767
|
+
</div><!-- read-method -->
|
768
|
+
|
769
|
+
|
770
|
+
<div id="recv_append-method" class="method-detail ">
|
771
|
+
<a name="method-i-recv_append"></a>
|
772
|
+
|
773
|
+
|
774
|
+
<div class="method-heading">
|
775
|
+
<span class="method-name">recv_append</span><span
|
776
|
+
class="method-args">()</span>
|
777
|
+
<span class="method-click-advice">click to toggle source</span>
|
778
|
+
</div>
|
779
|
+
|
780
|
+
|
781
|
+
<div class="method-description">
|
782
|
+
|
783
|
+
|
784
|
+
|
785
|
+
|
786
|
+
|
787
|
+
<div class="method-source-code" id="recv_append-source">
|
788
|
+
<pre>
|
789
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 99</span>
|
790
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_append</span>()
|
791
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Append_result</span>)
|
792
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
793
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
794
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span><span class="ruby-operator">::</span><span class="ruby-constant">MISSING_RESULT</span>, <span class="ruby-string">'append failed: unknown result'</span>)
|
795
|
+
<span class="ruby-keyword">end</span></pre>
|
796
|
+
</div><!-- recv_append-source -->
|
797
|
+
|
798
|
+
</div>
|
799
|
+
|
800
|
+
|
801
|
+
|
802
|
+
|
803
|
+
</div><!-- recv_append-method -->
|
804
|
+
|
805
|
+
|
806
|
+
<div id="recv_chmod-method" class="method-detail ">
|
807
|
+
<a name="method-i-recv_chmod"></a>
|
808
|
+
|
809
|
+
|
810
|
+
<div class="method-heading">
|
811
|
+
<span class="method-name">recv_chmod</span><span
|
812
|
+
class="method-args">()</span>
|
813
|
+
<span class="method-click-advice">click to toggle source</span>
|
814
|
+
</div>
|
815
|
+
|
816
|
+
|
817
|
+
<div class="method-description">
|
818
|
+
|
819
|
+
|
820
|
+
|
821
|
+
|
822
|
+
|
823
|
+
<div class="method-source-code" id="recv_chmod-source">
|
824
|
+
<pre>
|
825
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 259</span>
|
826
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_chmod</span>()
|
827
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Chmod_result</span>)
|
828
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
829
|
+
<span class="ruby-keyword">return</span>
|
830
|
+
<span class="ruby-keyword">end</span></pre>
|
831
|
+
</div><!-- recv_chmod-source -->
|
832
|
+
|
833
|
+
</div>
|
834
|
+
|
835
|
+
|
836
|
+
|
837
|
+
|
838
|
+
</div><!-- recv_chmod-method -->
|
839
|
+
|
840
|
+
|
841
|
+
<div id="recv_chown-method" class="method-detail ">
|
842
|
+
<a name="method-i-recv_chown"></a>
|
843
|
+
|
844
|
+
|
845
|
+
<div class="method-heading">
|
846
|
+
<span class="method-name">recv_chown</span><span
|
847
|
+
class="method-args">()</span>
|
848
|
+
<span class="method-click-advice">click to toggle source</span>
|
849
|
+
</div>
|
850
|
+
|
851
|
+
|
852
|
+
<div class="method-description">
|
853
|
+
|
854
|
+
|
855
|
+
|
856
|
+
|
857
|
+
|
858
|
+
<div class="method-source-code" id="recv_chown-source">
|
859
|
+
<pre>
|
860
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 274</span>
|
861
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_chown</span>()
|
862
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Chown_result</span>)
|
863
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
864
|
+
<span class="ruby-keyword">return</span>
|
865
|
+
<span class="ruby-keyword">end</span></pre>
|
866
|
+
</div><!-- recv_chown-source -->
|
867
|
+
|
868
|
+
</div>
|
869
|
+
|
870
|
+
|
871
|
+
|
872
|
+
|
873
|
+
</div><!-- recv_chown-method -->
|
874
|
+
|
875
|
+
|
876
|
+
<div id="recv_close-method" class="method-detail ">
|
877
|
+
<a name="method-i-recv_close"></a>
|
878
|
+
|
879
|
+
|
880
|
+
<div class="method-heading">
|
881
|
+
<span class="method-name">recv_close</span><span
|
882
|
+
class="method-args">()</span>
|
883
|
+
<span class="method-click-advice">click to toggle source</span>
|
884
|
+
</div>
|
885
|
+
|
886
|
+
|
887
|
+
<div class="method-description">
|
888
|
+
|
889
|
+
|
890
|
+
|
891
|
+
|
892
|
+
|
893
|
+
<div class="method-source-code" id="recv_close-source">
|
894
|
+
<pre>
|
895
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 147</span>
|
896
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_close</span>()
|
897
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Close_result</span>)
|
898
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
899
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
900
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span><span class="ruby-operator">::</span><span class="ruby-constant">MISSING_RESULT</span>, <span class="ruby-string">'close failed: unknown result'</span>)
|
901
|
+
<span class="ruby-keyword">end</span></pre>
|
902
|
+
</div><!-- recv_close-source -->
|
903
|
+
|
904
|
+
</div>
|
905
|
+
|
906
|
+
|
907
|
+
|
908
|
+
|
909
|
+
</div><!-- recv_close-method -->
|
910
|
+
|
911
|
+
|
912
|
+
<div id="recv_create-method" class="method-detail ">
|
913
|
+
<a name="method-i-recv_create"></a>
|
914
|
+
|
915
|
+
|
916
|
+
<div class="method-heading">
|
917
|
+
<span class="method-name">recv_create</span><span
|
918
|
+
class="method-args">()</span>
|
919
|
+
<span class="method-click-advice">click to toggle source</span>
|
920
|
+
</div>
|
921
|
+
|
922
|
+
|
923
|
+
<div class="method-description">
|
924
|
+
|
925
|
+
|
926
|
+
|
927
|
+
|
928
|
+
|
929
|
+
<div class="method-source-code" id="recv_create-source">
|
930
|
+
<pre>
|
931
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 51</span>
|
932
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_create</span>()
|
933
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Create_result</span>)
|
934
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
935
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
936
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span><span class="ruby-operator">::</span><span class="ruby-constant">MISSING_RESULT</span>, <span class="ruby-string">'create failed: unknown result'</span>)
|
937
|
+
<span class="ruby-keyword">end</span></pre>
|
938
|
+
</div><!-- recv_create-source -->
|
939
|
+
|
940
|
+
</div>
|
941
|
+
|
942
|
+
|
943
|
+
|
944
|
+
|
945
|
+
</div><!-- recv_create-method -->
|
946
|
+
|
947
|
+
|
948
|
+
<div id="recv_createFile-method" class="method-detail ">
|
949
|
+
<a name="method-i-recv_createFile"></a>
|
950
|
+
|
951
|
+
|
952
|
+
<div class="method-heading">
|
953
|
+
<span class="method-name">recv_createFile</span><span
|
954
|
+
class="method-args">()</span>
|
955
|
+
<span class="method-click-advice">click to toggle source</span>
|
956
|
+
</div>
|
957
|
+
|
958
|
+
|
959
|
+
<div class="method-description">
|
960
|
+
|
961
|
+
|
962
|
+
|
963
|
+
|
964
|
+
|
965
|
+
<div class="method-source-code" id="recv_createFile-source">
|
966
|
+
<pre>
|
967
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 67</span>
|
968
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_createFile</span>()
|
969
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">CreateFile_result</span>)
|
970
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
971
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
972
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span><span class="ruby-operator">::</span><span class="ruby-constant">MISSING_RESULT</span>, <span class="ruby-string">'createFile failed: unknown result'</span>)
|
973
|
+
<span class="ruby-keyword">end</span></pre>
|
974
|
+
</div><!-- recv_createFile-source -->
|
975
|
+
|
976
|
+
</div>
|
977
|
+
|
978
|
+
|
979
|
+
|
980
|
+
|
981
|
+
</div><!-- recv_createFile-method -->
|
982
|
+
|
983
|
+
|
984
|
+
<div id="recv_exists-method" class="method-detail ">
|
985
|
+
<a name="method-i-recv_exists"></a>
|
986
|
+
|
987
|
+
|
988
|
+
<div class="method-heading">
|
989
|
+
<span class="method-name">recv_exists</span><span
|
990
|
+
class="method-args">()</span>
|
991
|
+
<span class="method-click-advice">click to toggle source</span>
|
992
|
+
</div>
|
993
|
+
|
994
|
+
|
995
|
+
<div class="method-description">
|
996
|
+
|
997
|
+
|
998
|
+
|
999
|
+
|
1000
|
+
|
1001
|
+
<div class="method-source-code" id="recv_exists-source">
|
1002
|
+
<pre>
|
1003
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 211</span>
|
1004
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_exists</span>()
|
1005
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Exists_result</span>)
|
1006
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
1007
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
1008
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span><span class="ruby-operator">::</span><span class="ruby-constant">MISSING_RESULT</span>, <span class="ruby-string">'exists failed: unknown result'</span>)
|
1009
|
+
<span class="ruby-keyword">end</span></pre>
|
1010
|
+
</div><!-- recv_exists-source -->
|
1011
|
+
|
1012
|
+
</div>
|
1013
|
+
|
1014
|
+
|
1015
|
+
|
1016
|
+
|
1017
|
+
</div><!-- recv_exists-method -->
|
1018
|
+
|
1019
|
+
|
1020
|
+
<div id="recv_getFileBlockLocations-method" class="method-detail ">
|
1021
|
+
<a name="method-i-recv_getFileBlockLocations"></a>
|
1022
|
+
|
1023
|
+
|
1024
|
+
<div class="method-heading">
|
1025
|
+
<span class="method-name">recv_getFileBlockLocations</span><span
|
1026
|
+
class="method-args">()</span>
|
1027
|
+
<span class="method-click-advice">click to toggle source</span>
|
1028
|
+
</div>
|
1029
|
+
|
1030
|
+
|
1031
|
+
<div class="method-description">
|
1032
|
+
|
1033
|
+
|
1034
|
+
|
1035
|
+
|
1036
|
+
|
1037
|
+
<div class="method-source-code" id="recv_getFileBlockLocations-source">
|
1038
|
+
<pre>
|
1039
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 304</span>
|
1040
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_getFileBlockLocations</span>()
|
1041
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">GetFileBlockLocations_result</span>)
|
1042
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
1043
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
1044
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span><span class="ruby-operator">::</span><span class="ruby-constant">MISSING_RESULT</span>, <span class="ruby-string">'getFileBlockLocations failed: unknown result'</span>)
|
1045
|
+
<span class="ruby-keyword">end</span></pre>
|
1046
|
+
</div><!-- recv_getFileBlockLocations-source -->
|
1047
|
+
|
1048
|
+
</div>
|
1049
|
+
|
1050
|
+
|
1051
|
+
|
1052
|
+
|
1053
|
+
</div><!-- recv_getFileBlockLocations-method -->
|
1054
|
+
|
1055
|
+
|
1056
|
+
<div id="recv_listStatus-method" class="method-detail ">
|
1057
|
+
<a name="method-i-recv_listStatus"></a>
|
1058
|
+
|
1059
|
+
|
1060
|
+
<div class="method-heading">
|
1061
|
+
<span class="method-name">recv_listStatus</span><span
|
1062
|
+
class="method-args">()</span>
|
1063
|
+
<span class="method-click-advice">click to toggle source</span>
|
1064
|
+
</div>
|
1065
|
+
|
1066
|
+
|
1067
|
+
<div class="method-description">
|
1068
|
+
|
1069
|
+
|
1070
|
+
|
1071
|
+
|
1072
|
+
|
1073
|
+
<div class="method-source-code" id="recv_listStatus-source">
|
1074
|
+
<pre>
|
1075
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 243</span>
|
1076
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_listStatus</span>()
|
1077
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">ListStatus_result</span>)
|
1078
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
1079
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
1080
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span><span class="ruby-operator">::</span><span class="ruby-constant">MISSING_RESULT</span>, <span class="ruby-string">'listStatus failed: unknown result'</span>)
|
1081
|
+
<span class="ruby-keyword">end</span></pre>
|
1082
|
+
</div><!-- recv_listStatus-source -->
|
1083
|
+
|
1084
|
+
</div>
|
1085
|
+
|
1086
|
+
|
1087
|
+
|
1088
|
+
|
1089
|
+
</div><!-- recv_listStatus-method -->
|
1090
|
+
|
1091
|
+
|
1092
|
+
<div id="recv_mkdirs-method" class="method-detail ">
|
1093
|
+
<a name="method-i-recv_mkdirs"></a>
|
1094
|
+
|
1095
|
+
|
1096
|
+
<div class="method-heading">
|
1097
|
+
<span class="method-name">recv_mkdirs</span><span
|
1098
|
+
class="method-args">()</span>
|
1099
|
+
<span class="method-click-advice">click to toggle source</span>
|
1100
|
+
</div>
|
1101
|
+
|
1102
|
+
|
1103
|
+
<div class="method-description">
|
1104
|
+
|
1105
|
+
|
1106
|
+
|
1107
|
+
|
1108
|
+
|
1109
|
+
<div class="method-source-code" id="recv_mkdirs-source">
|
1110
|
+
<pre>
|
1111
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 195</span>
|
1112
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_mkdirs</span>()
|
1113
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Mkdirs_result</span>)
|
1114
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
1115
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
1116
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span><span class="ruby-operator">::</span><span class="ruby-constant">MISSING_RESULT</span>, <span class="ruby-string">'mkdirs failed: unknown result'</span>)
|
1117
|
+
<span class="ruby-keyword">end</span></pre>
|
1118
|
+
</div><!-- recv_mkdirs-source -->
|
1119
|
+
|
1120
|
+
</div>
|
1121
|
+
|
1122
|
+
|
1123
|
+
|
1124
|
+
|
1125
|
+
</div><!-- recv_mkdirs-method -->
|
1126
|
+
|
1127
|
+
|
1128
|
+
<div id="recv_open-method" class="method-detail ">
|
1129
|
+
<a name="method-i-recv_open"></a>
|
1130
|
+
|
1131
|
+
|
1132
|
+
<div class="method-heading">
|
1133
|
+
<span class="method-name">recv_open</span><span
|
1134
|
+
class="method-args">()</span>
|
1135
|
+
<span class="method-click-advice">click to toggle source</span>
|
1136
|
+
</div>
|
1137
|
+
|
1138
|
+
|
1139
|
+
<div class="method-description">
|
1140
|
+
|
1141
|
+
|
1142
|
+
|
1143
|
+
|
1144
|
+
|
1145
|
+
<div class="method-source-code" id="recv_open-source">
|
1146
|
+
<pre>
|
1147
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 83</span>
|
1148
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_open</span>()
|
1149
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Open_result</span>)
|
1150
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
1151
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
1152
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span><span class="ruby-operator">::</span><span class="ruby-constant">MISSING_RESULT</span>, <span class="ruby-string">'open failed: unknown result'</span>)
|
1153
|
+
<span class="ruby-keyword">end</span></pre>
|
1154
|
+
</div><!-- recv_open-source -->
|
1155
|
+
|
1156
|
+
</div>
|
1157
|
+
|
1158
|
+
|
1159
|
+
|
1160
|
+
|
1161
|
+
</div><!-- recv_open-method -->
|
1162
|
+
|
1163
|
+
|
1164
|
+
<div id="recv_read-method" class="method-detail ">
|
1165
|
+
<a name="method-i-recv_read"></a>
|
1166
|
+
|
1167
|
+
|
1168
|
+
<div class="method-heading">
|
1169
|
+
<span class="method-name">recv_read</span><span
|
1170
|
+
class="method-args">()</span>
|
1171
|
+
<span class="method-click-advice">click to toggle source</span>
|
1172
|
+
</div>
|
1173
|
+
|
1174
|
+
|
1175
|
+
<div class="method-description">
|
1176
|
+
|
1177
|
+
|
1178
|
+
|
1179
|
+
|
1180
|
+
|
1181
|
+
<div class="method-source-code" id="recv_read-source">
|
1182
|
+
<pre>
|
1183
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 131</span>
|
1184
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_read</span>()
|
1185
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Read_result</span>)
|
1186
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
1187
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
1188
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span><span class="ruby-operator">::</span><span class="ruby-constant">MISSING_RESULT</span>, <span class="ruby-string">'read failed: unknown result'</span>)
|
1189
|
+
<span class="ruby-keyword">end</span></pre>
|
1190
|
+
</div><!-- recv_read-source -->
|
1191
|
+
|
1192
|
+
</div>
|
1193
|
+
|
1194
|
+
|
1195
|
+
|
1196
|
+
|
1197
|
+
</div><!-- recv_read-method -->
|
1198
|
+
|
1199
|
+
|
1200
|
+
<div id="recv_rename-method" class="method-detail ">
|
1201
|
+
<a name="method-i-recv_rename"></a>
|
1202
|
+
|
1203
|
+
|
1204
|
+
<div class="method-heading">
|
1205
|
+
<span class="method-name">recv_rename</span><span
|
1206
|
+
class="method-args">()</span>
|
1207
|
+
<span class="method-click-advice">click to toggle source</span>
|
1208
|
+
</div>
|
1209
|
+
|
1210
|
+
|
1211
|
+
<div class="method-description">
|
1212
|
+
|
1213
|
+
|
1214
|
+
|
1215
|
+
|
1216
|
+
|
1217
|
+
<div class="method-source-code" id="recv_rename-source">
|
1218
|
+
<pre>
|
1219
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 179</span>
|
1220
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_rename</span>()
|
1221
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Rename_result</span>)
|
1222
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
1223
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
1224
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span><span class="ruby-operator">::</span><span class="ruby-constant">MISSING_RESULT</span>, <span class="ruby-string">'rename failed: unknown result'</span>)
|
1225
|
+
<span class="ruby-keyword">end</span></pre>
|
1226
|
+
</div><!-- recv_rename-source -->
|
1227
|
+
|
1228
|
+
</div>
|
1229
|
+
|
1230
|
+
|
1231
|
+
|
1232
|
+
|
1233
|
+
</div><!-- recv_rename-method -->
|
1234
|
+
|
1235
|
+
|
1236
|
+
<div id="recv_rm-method" class="method-detail ">
|
1237
|
+
<a name="method-i-recv_rm"></a>
|
1238
|
+
|
1239
|
+
|
1240
|
+
<div class="method-heading">
|
1241
|
+
<span class="method-name">recv_rm</span><span
|
1242
|
+
class="method-args">()</span>
|
1243
|
+
<span class="method-click-advice">click to toggle source</span>
|
1244
|
+
</div>
|
1245
|
+
|
1246
|
+
|
1247
|
+
<div class="method-description">
|
1248
|
+
|
1249
|
+
|
1250
|
+
|
1251
|
+
|
1252
|
+
|
1253
|
+
<div class="method-source-code" id="recv_rm-source">
|
1254
|
+
<pre>
|
1255
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 163</span>
|
1256
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_rm</span>()
|
1257
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Rm_result</span>)
|
1258
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
1259
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
1260
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span><span class="ruby-operator">::</span><span class="ruby-constant">MISSING_RESULT</span>, <span class="ruby-string">'rm failed: unknown result'</span>)
|
1261
|
+
<span class="ruby-keyword">end</span></pre>
|
1262
|
+
</div><!-- recv_rm-source -->
|
1263
|
+
|
1264
|
+
</div>
|
1265
|
+
|
1266
|
+
|
1267
|
+
|
1268
|
+
|
1269
|
+
</div><!-- recv_rm-method -->
|
1270
|
+
|
1271
|
+
|
1272
|
+
<div id="recv_setInactivityTimeoutPeriod-method" class="method-detail ">
|
1273
|
+
<a name="method-i-recv_setInactivityTimeoutPeriod"></a>
|
1274
|
+
|
1275
|
+
|
1276
|
+
<div class="method-heading">
|
1277
|
+
<span class="method-name">recv_setInactivityTimeoutPeriod</span><span
|
1278
|
+
class="method-args">()</span>
|
1279
|
+
<span class="method-click-advice">click to toggle source</span>
|
1280
|
+
</div>
|
1281
|
+
|
1282
|
+
|
1283
|
+
<div class="method-description">
|
1284
|
+
|
1285
|
+
|
1286
|
+
|
1287
|
+
|
1288
|
+
|
1289
|
+
<div class="method-source-code" id="recv_setInactivityTimeoutPeriod-source">
|
1290
|
+
<pre>
|
1291
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 23</span>
|
1292
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_setInactivityTimeoutPeriod</span>()
|
1293
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">SetInactivityTimeoutPeriod_result</span>)
|
1294
|
+
<span class="ruby-keyword">return</span>
|
1295
|
+
<span class="ruby-keyword">end</span></pre>
|
1296
|
+
</div><!-- recv_setInactivityTimeoutPeriod-source -->
|
1297
|
+
|
1298
|
+
</div>
|
1299
|
+
|
1300
|
+
|
1301
|
+
|
1302
|
+
|
1303
|
+
</div><!-- recv_setInactivityTimeoutPeriod-method -->
|
1304
|
+
|
1305
|
+
|
1306
|
+
<div id="recv_setReplication-method" class="method-detail ">
|
1307
|
+
<a name="method-i-recv_setReplication"></a>
|
1308
|
+
|
1309
|
+
|
1310
|
+
<div class="method-heading">
|
1311
|
+
<span class="method-name">recv_setReplication</span><span
|
1312
|
+
class="method-args">()</span>
|
1313
|
+
<span class="method-click-advice">click to toggle source</span>
|
1314
|
+
</div>
|
1315
|
+
|
1316
|
+
|
1317
|
+
<div class="method-description">
|
1318
|
+
|
1319
|
+
|
1320
|
+
|
1321
|
+
|
1322
|
+
|
1323
|
+
<div class="method-source-code" id="recv_setReplication-source">
|
1324
|
+
<pre>
|
1325
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 289</span>
|
1326
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_setReplication</span>()
|
1327
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">SetReplication_result</span>)
|
1328
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
1329
|
+
<span class="ruby-keyword">return</span>
|
1330
|
+
<span class="ruby-keyword">end</span></pre>
|
1331
|
+
</div><!-- recv_setReplication-source -->
|
1332
|
+
|
1333
|
+
</div>
|
1334
|
+
|
1335
|
+
|
1336
|
+
|
1337
|
+
|
1338
|
+
</div><!-- recv_setReplication-method -->
|
1339
|
+
|
1340
|
+
|
1341
|
+
<div id="recv_shutdown-method" class="method-detail ">
|
1342
|
+
<a name="method-i-recv_shutdown"></a>
|
1343
|
+
|
1344
|
+
|
1345
|
+
<div class="method-heading">
|
1346
|
+
<span class="method-name">recv_shutdown</span><span
|
1347
|
+
class="method-args">()</span>
|
1348
|
+
<span class="method-click-advice">click to toggle source</span>
|
1349
|
+
</div>
|
1350
|
+
|
1351
|
+
|
1352
|
+
<div class="method-description">
|
1353
|
+
|
1354
|
+
|
1355
|
+
|
1356
|
+
|
1357
|
+
|
1358
|
+
<div class="method-source-code" id="recv_shutdown-source">
|
1359
|
+
<pre>
|
1360
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 37</span>
|
1361
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_shutdown</span>()
|
1362
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Shutdown_result</span>)
|
1363
|
+
<span class="ruby-keyword">return</span>
|
1364
|
+
<span class="ruby-keyword">end</span></pre>
|
1365
|
+
</div><!-- recv_shutdown-source -->
|
1366
|
+
|
1367
|
+
</div>
|
1368
|
+
|
1369
|
+
|
1370
|
+
|
1371
|
+
|
1372
|
+
</div><!-- recv_shutdown-method -->
|
1373
|
+
|
1374
|
+
|
1375
|
+
<div id="recv_stat-method" class="method-detail ">
|
1376
|
+
<a name="method-i-recv_stat"></a>
|
1377
|
+
|
1378
|
+
|
1379
|
+
<div class="method-heading">
|
1380
|
+
<span class="method-name">recv_stat</span><span
|
1381
|
+
class="method-args">()</span>
|
1382
|
+
<span class="method-click-advice">click to toggle source</span>
|
1383
|
+
</div>
|
1384
|
+
|
1385
|
+
|
1386
|
+
<div class="method-description">
|
1387
|
+
|
1388
|
+
|
1389
|
+
|
1390
|
+
|
1391
|
+
|
1392
|
+
<div class="method-source-code" id="recv_stat-source">
|
1393
|
+
<pre>
|
1394
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 227</span>
|
1395
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_stat</span>()
|
1396
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Stat_result</span>)
|
1397
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
1398
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
1399
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span><span class="ruby-operator">::</span><span class="ruby-constant">MISSING_RESULT</span>, <span class="ruby-string">'stat failed: unknown result'</span>)
|
1400
|
+
<span class="ruby-keyword">end</span></pre>
|
1401
|
+
</div><!-- recv_stat-source -->
|
1402
|
+
|
1403
|
+
</div>
|
1404
|
+
|
1405
|
+
|
1406
|
+
|
1407
|
+
|
1408
|
+
</div><!-- recv_stat-method -->
|
1409
|
+
|
1410
|
+
|
1411
|
+
<div id="recv_write-method" class="method-detail ">
|
1412
|
+
<a name="method-i-recv_write"></a>
|
1413
|
+
|
1414
|
+
|
1415
|
+
<div class="method-heading">
|
1416
|
+
<span class="method-name">recv_write</span><span
|
1417
|
+
class="method-args">()</span>
|
1418
|
+
<span class="method-click-advice">click to toggle source</span>
|
1419
|
+
</div>
|
1420
|
+
|
1421
|
+
|
1422
|
+
<div class="method-description">
|
1423
|
+
|
1424
|
+
|
1425
|
+
|
1426
|
+
|
1427
|
+
|
1428
|
+
<div class="method-source-code" id="recv_write-source">
|
1429
|
+
<pre>
|
1430
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 115</span>
|
1431
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">recv_write</span>()
|
1432
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Write_result</span>)
|
1433
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
1434
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
1435
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span>.<span class="ruby-identifier">new</span>(<span class="ruby-operator">::</span><span class="ruby-constant">Thrift</span><span class="ruby-operator">::</span><span class="ruby-constant">ApplicationException</span><span class="ruby-operator">::</span><span class="ruby-constant">MISSING_RESULT</span>, <span class="ruby-string">'write failed: unknown result'</span>)
|
1436
|
+
<span class="ruby-keyword">end</span></pre>
|
1437
|
+
</div><!-- recv_write-source -->
|
1438
|
+
|
1439
|
+
</div>
|
1440
|
+
|
1441
|
+
|
1442
|
+
|
1443
|
+
|
1444
|
+
</div><!-- recv_write-method -->
|
1445
|
+
|
1446
|
+
|
1447
|
+
<div id="rename-method" class="method-detail ">
|
1448
|
+
<a name="method-i-rename"></a>
|
1449
|
+
|
1450
|
+
|
1451
|
+
<div class="method-heading">
|
1452
|
+
<span class="method-name">rename</span><span
|
1453
|
+
class="method-args">(path, dest)</span>
|
1454
|
+
<span class="method-click-advice">click to toggle source</span>
|
1455
|
+
</div>
|
1456
|
+
|
1457
|
+
|
1458
|
+
<div class="method-description">
|
1459
|
+
|
1460
|
+
|
1461
|
+
|
1462
|
+
|
1463
|
+
|
1464
|
+
<div class="method-source-code" id="rename-source">
|
1465
|
+
<pre>
|
1466
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 170</span>
|
1467
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">rename</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">dest</span>)
|
1468
|
+
<span class="ruby-identifier">send_rename</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">dest</span>)
|
1469
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">recv_rename</span>()
|
1470
|
+
<span class="ruby-keyword">end</span></pre>
|
1471
|
+
</div><!-- rename-source -->
|
1472
|
+
|
1473
|
+
</div>
|
1474
|
+
|
1475
|
+
|
1476
|
+
|
1477
|
+
|
1478
|
+
</div><!-- rename-method -->
|
1479
|
+
|
1480
|
+
|
1481
|
+
<div id="rm-method" class="method-detail ">
|
1482
|
+
<a name="method-i-rm"></a>
|
1483
|
+
|
1484
|
+
|
1485
|
+
<div class="method-heading">
|
1486
|
+
<span class="method-name">rm</span><span
|
1487
|
+
class="method-args">(path, recursive)</span>
|
1488
|
+
<span class="method-click-advice">click to toggle source</span>
|
1489
|
+
</div>
|
1490
|
+
|
1491
|
+
|
1492
|
+
<div class="method-description">
|
1493
|
+
|
1494
|
+
|
1495
|
+
|
1496
|
+
|
1497
|
+
|
1498
|
+
<div class="method-source-code" id="rm-source">
|
1499
|
+
<pre>
|
1500
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 154</span>
|
1501
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">rm</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">recursive</span>)
|
1502
|
+
<span class="ruby-identifier">send_rm</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">recursive</span>)
|
1503
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">recv_rm</span>()
|
1504
|
+
<span class="ruby-keyword">end</span></pre>
|
1505
|
+
</div><!-- rm-source -->
|
1506
|
+
|
1507
|
+
</div>
|
1508
|
+
|
1509
|
+
|
1510
|
+
|
1511
|
+
|
1512
|
+
</div><!-- rm-method -->
|
1513
|
+
|
1514
|
+
|
1515
|
+
<div id="send_append-method" class="method-detail ">
|
1516
|
+
<a name="method-i-send_append"></a>
|
1517
|
+
|
1518
|
+
|
1519
|
+
<div class="method-heading">
|
1520
|
+
<span class="method-name">send_append</span><span
|
1521
|
+
class="method-args">(path)</span>
|
1522
|
+
<span class="method-click-advice">click to toggle source</span>
|
1523
|
+
</div>
|
1524
|
+
|
1525
|
+
|
1526
|
+
<div class="method-description">
|
1527
|
+
|
1528
|
+
|
1529
|
+
|
1530
|
+
|
1531
|
+
|
1532
|
+
<div class="method-source-code" id="send_append-source">
|
1533
|
+
<pre>
|
1534
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 95</span>
|
1535
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_append</span>(<span class="ruby-identifier">path</span>)
|
1536
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'append'</span>, <span class="ruby-constant">Append_args</span>, <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>)
|
1537
|
+
<span class="ruby-keyword">end</span></pre>
|
1538
|
+
</div><!-- send_append-source -->
|
1539
|
+
|
1540
|
+
</div>
|
1541
|
+
|
1542
|
+
|
1543
|
+
|
1544
|
+
|
1545
|
+
</div><!-- send_append-method -->
|
1546
|
+
|
1547
|
+
|
1548
|
+
<div id="send_chmod-method" class="method-detail ">
|
1549
|
+
<a name="method-i-send_chmod"></a>
|
1550
|
+
|
1551
|
+
|
1552
|
+
<div class="method-heading">
|
1553
|
+
<span class="method-name">send_chmod</span><span
|
1554
|
+
class="method-args">(path, mode)</span>
|
1555
|
+
<span class="method-click-advice">click to toggle source</span>
|
1556
|
+
</div>
|
1557
|
+
|
1558
|
+
|
1559
|
+
<div class="method-description">
|
1560
|
+
|
1561
|
+
|
1562
|
+
|
1563
|
+
|
1564
|
+
|
1565
|
+
<div class="method-source-code" id="send_chmod-source">
|
1566
|
+
<pre>
|
1567
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 255</span>
|
1568
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_chmod</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">mode</span>)
|
1569
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'chmod'</span>, <span class="ruby-constant">Chmod_args</span>, <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-value">:mode</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode</span>)
|
1570
|
+
<span class="ruby-keyword">end</span></pre>
|
1571
|
+
</div><!-- send_chmod-source -->
|
1572
|
+
|
1573
|
+
</div>
|
1574
|
+
|
1575
|
+
|
1576
|
+
|
1577
|
+
|
1578
|
+
</div><!-- send_chmod-method -->
|
1579
|
+
|
1580
|
+
|
1581
|
+
<div id="send_chown-method" class="method-detail ">
|
1582
|
+
<a name="method-i-send_chown"></a>
|
1583
|
+
|
1584
|
+
|
1585
|
+
<div class="method-heading">
|
1586
|
+
<span class="method-name">send_chown</span><span
|
1587
|
+
class="method-args">(path, owner, group)</span>
|
1588
|
+
<span class="method-click-advice">click to toggle source</span>
|
1589
|
+
</div>
|
1590
|
+
|
1591
|
+
|
1592
|
+
<div class="method-description">
|
1593
|
+
|
1594
|
+
|
1595
|
+
|
1596
|
+
|
1597
|
+
|
1598
|
+
<div class="method-source-code" id="send_chown-source">
|
1599
|
+
<pre>
|
1600
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 270</span>
|
1601
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_chown</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">owner</span>, <span class="ruby-identifier">group</span>)
|
1602
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'chown'</span>, <span class="ruby-constant">Chown_args</span>, <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-value">:owner</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">owner</span>, <span class="ruby-value">:group</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">group</span>)
|
1603
|
+
<span class="ruby-keyword">end</span></pre>
|
1604
|
+
</div><!-- send_chown-source -->
|
1605
|
+
|
1606
|
+
</div>
|
1607
|
+
|
1608
|
+
|
1609
|
+
|
1610
|
+
|
1611
|
+
</div><!-- send_chown-method -->
|
1612
|
+
|
1613
|
+
|
1614
|
+
<div id="send_close-method" class="method-detail ">
|
1615
|
+
<a name="method-i-send_close"></a>
|
1616
|
+
|
1617
|
+
|
1618
|
+
<div class="method-heading">
|
1619
|
+
<span class="method-name">send_close</span><span
|
1620
|
+
class="method-args">(out)</span>
|
1621
|
+
<span class="method-click-advice">click to toggle source</span>
|
1622
|
+
</div>
|
1623
|
+
|
1624
|
+
|
1625
|
+
<div class="method-description">
|
1626
|
+
|
1627
|
+
|
1628
|
+
|
1629
|
+
|
1630
|
+
|
1631
|
+
<div class="method-source-code" id="send_close-source">
|
1632
|
+
<pre>
|
1633
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 143</span>
|
1634
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_close</span>(<span class="ruby-identifier">out</span>)
|
1635
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'close'</span>, <span class="ruby-constant">Close_args</span>, <span class="ruby-value">:out</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">out</span>)
|
1636
|
+
<span class="ruby-keyword">end</span></pre>
|
1637
|
+
</div><!-- send_close-source -->
|
1638
|
+
|
1639
|
+
</div>
|
1640
|
+
|
1641
|
+
|
1642
|
+
|
1643
|
+
|
1644
|
+
</div><!-- send_close-method -->
|
1645
|
+
|
1646
|
+
|
1647
|
+
<div id="send_create-method" class="method-detail ">
|
1648
|
+
<a name="method-i-send_create"></a>
|
1649
|
+
|
1650
|
+
|
1651
|
+
<div class="method-heading">
|
1652
|
+
<span class="method-name">send_create</span><span
|
1653
|
+
class="method-args">(path)</span>
|
1654
|
+
<span class="method-click-advice">click to toggle source</span>
|
1655
|
+
</div>
|
1656
|
+
|
1657
|
+
|
1658
|
+
<div class="method-description">
|
1659
|
+
|
1660
|
+
|
1661
|
+
|
1662
|
+
|
1663
|
+
|
1664
|
+
<div class="method-source-code" id="send_create-source">
|
1665
|
+
<pre>
|
1666
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 47</span>
|
1667
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_create</span>(<span class="ruby-identifier">path</span>)
|
1668
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'create'</span>, <span class="ruby-constant">Create_args</span>, <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>)
|
1669
|
+
<span class="ruby-keyword">end</span></pre>
|
1670
|
+
</div><!-- send_create-source -->
|
1671
|
+
|
1672
|
+
</div>
|
1673
|
+
|
1674
|
+
|
1675
|
+
|
1676
|
+
|
1677
|
+
</div><!-- send_create-method -->
|
1678
|
+
|
1679
|
+
|
1680
|
+
<div id="send_createFile-method" class="method-detail ">
|
1681
|
+
<a name="method-i-send_createFile"></a>
|
1682
|
+
|
1683
|
+
|
1684
|
+
<div class="method-heading">
|
1685
|
+
<span class="method-name">send_createFile</span><span
|
1686
|
+
class="method-args">(path, mode, overwrite, bufferSize, block_replication, blocksize)</span>
|
1687
|
+
<span class="method-click-advice">click to toggle source</span>
|
1688
|
+
</div>
|
1689
|
+
|
1690
|
+
|
1691
|
+
<div class="method-description">
|
1692
|
+
|
1693
|
+
|
1694
|
+
|
1695
|
+
|
1696
|
+
|
1697
|
+
<div class="method-source-code" id="send_createFile-source">
|
1698
|
+
<pre>
|
1699
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 63</span>
|
1700
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_createFile</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">mode</span>, <span class="ruby-identifier">overwrite</span>, <span class="ruby-identifier">bufferSize</span>, <span class="ruby-identifier">block_replication</span>, <span class="ruby-identifier">blocksize</span>)
|
1701
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'createFile'</span>, <span class="ruby-constant">CreateFile_args</span>, <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-value">:mode</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode</span>, <span class="ruby-value">:overwrite</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">overwrite</span>, <span class="ruby-value">:bufferSize</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">bufferSize</span>, <span class="ruby-value">:block_replication</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">block_replication</span>, <span class="ruby-value">:blocksize</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">blocksize</span>)
|
1702
|
+
<span class="ruby-keyword">end</span></pre>
|
1703
|
+
</div><!-- send_createFile-source -->
|
1704
|
+
|
1705
|
+
</div>
|
1706
|
+
|
1707
|
+
|
1708
|
+
|
1709
|
+
|
1710
|
+
</div><!-- send_createFile-method -->
|
1711
|
+
|
1712
|
+
|
1713
|
+
<div id="send_exists-method" class="method-detail ">
|
1714
|
+
<a name="method-i-send_exists"></a>
|
1715
|
+
|
1716
|
+
|
1717
|
+
<div class="method-heading">
|
1718
|
+
<span class="method-name">send_exists</span><span
|
1719
|
+
class="method-args">(path)</span>
|
1720
|
+
<span class="method-click-advice">click to toggle source</span>
|
1721
|
+
</div>
|
1722
|
+
|
1723
|
+
|
1724
|
+
<div class="method-description">
|
1725
|
+
|
1726
|
+
|
1727
|
+
|
1728
|
+
|
1729
|
+
|
1730
|
+
<div class="method-source-code" id="send_exists-source">
|
1731
|
+
<pre>
|
1732
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 207</span>
|
1733
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_exists</span>(<span class="ruby-identifier">path</span>)
|
1734
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'exists'</span>, <span class="ruby-constant">Exists_args</span>, <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>)
|
1735
|
+
<span class="ruby-keyword">end</span></pre>
|
1736
|
+
</div><!-- send_exists-source -->
|
1737
|
+
|
1738
|
+
</div>
|
1739
|
+
|
1740
|
+
|
1741
|
+
|
1742
|
+
|
1743
|
+
</div><!-- send_exists-method -->
|
1744
|
+
|
1745
|
+
|
1746
|
+
<div id="send_getFileBlockLocations-method" class="method-detail ">
|
1747
|
+
<a name="method-i-send_getFileBlockLocations"></a>
|
1748
|
+
|
1749
|
+
|
1750
|
+
<div class="method-heading">
|
1751
|
+
<span class="method-name">send_getFileBlockLocations</span><span
|
1752
|
+
class="method-args">(path, start, length)</span>
|
1753
|
+
<span class="method-click-advice">click to toggle source</span>
|
1754
|
+
</div>
|
1755
|
+
|
1756
|
+
|
1757
|
+
<div class="method-description">
|
1758
|
+
|
1759
|
+
|
1760
|
+
|
1761
|
+
|
1762
|
+
|
1763
|
+
<div class="method-source-code" id="send_getFileBlockLocations-source">
|
1764
|
+
<pre>
|
1765
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 300</span>
|
1766
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_getFileBlockLocations</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">start</span>, <span class="ruby-identifier">length</span>)
|
1767
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'getFileBlockLocations'</span>, <span class="ruby-constant">GetFileBlockLocations_args</span>, <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-value">:start</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">start</span>, <span class="ruby-value">:length</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">length</span>)
|
1768
|
+
<span class="ruby-keyword">end</span></pre>
|
1769
|
+
</div><!-- send_getFileBlockLocations-source -->
|
1770
|
+
|
1771
|
+
</div>
|
1772
|
+
|
1773
|
+
|
1774
|
+
|
1775
|
+
|
1776
|
+
</div><!-- send_getFileBlockLocations-method -->
|
1777
|
+
|
1778
|
+
|
1779
|
+
<div id="send_listStatus-method" class="method-detail ">
|
1780
|
+
<a name="method-i-send_listStatus"></a>
|
1781
|
+
|
1782
|
+
|
1783
|
+
<div class="method-heading">
|
1784
|
+
<span class="method-name">send_listStatus</span><span
|
1785
|
+
class="method-args">(path)</span>
|
1786
|
+
<span class="method-click-advice">click to toggle source</span>
|
1787
|
+
</div>
|
1788
|
+
|
1789
|
+
|
1790
|
+
<div class="method-description">
|
1791
|
+
|
1792
|
+
|
1793
|
+
|
1794
|
+
|
1795
|
+
|
1796
|
+
<div class="method-source-code" id="send_listStatus-source">
|
1797
|
+
<pre>
|
1798
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 239</span>
|
1799
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_listStatus</span>(<span class="ruby-identifier">path</span>)
|
1800
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'listStatus'</span>, <span class="ruby-constant">ListStatus_args</span>, <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>)
|
1801
|
+
<span class="ruby-keyword">end</span></pre>
|
1802
|
+
</div><!-- send_listStatus-source -->
|
1803
|
+
|
1804
|
+
</div>
|
1805
|
+
|
1806
|
+
|
1807
|
+
|
1808
|
+
|
1809
|
+
</div><!-- send_listStatus-method -->
|
1810
|
+
|
1811
|
+
|
1812
|
+
<div id="send_mkdirs-method" class="method-detail ">
|
1813
|
+
<a name="method-i-send_mkdirs"></a>
|
1814
|
+
|
1815
|
+
|
1816
|
+
<div class="method-heading">
|
1817
|
+
<span class="method-name">send_mkdirs</span><span
|
1818
|
+
class="method-args">(path)</span>
|
1819
|
+
<span class="method-click-advice">click to toggle source</span>
|
1820
|
+
</div>
|
1821
|
+
|
1822
|
+
|
1823
|
+
<div class="method-description">
|
1824
|
+
|
1825
|
+
|
1826
|
+
|
1827
|
+
|
1828
|
+
|
1829
|
+
<div class="method-source-code" id="send_mkdirs-source">
|
1830
|
+
<pre>
|
1831
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 191</span>
|
1832
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_mkdirs</span>(<span class="ruby-identifier">path</span>)
|
1833
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'mkdirs'</span>, <span class="ruby-constant">Mkdirs_args</span>, <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>)
|
1834
|
+
<span class="ruby-keyword">end</span></pre>
|
1835
|
+
</div><!-- send_mkdirs-source -->
|
1836
|
+
|
1837
|
+
</div>
|
1838
|
+
|
1839
|
+
|
1840
|
+
|
1841
|
+
|
1842
|
+
</div><!-- send_mkdirs-method -->
|
1843
|
+
|
1844
|
+
|
1845
|
+
<div id="send_open-method" class="method-detail ">
|
1846
|
+
<a name="method-i-send_open"></a>
|
1847
|
+
|
1848
|
+
|
1849
|
+
<div class="method-heading">
|
1850
|
+
<span class="method-name">send_open</span><span
|
1851
|
+
class="method-args">(path)</span>
|
1852
|
+
<span class="method-click-advice">click to toggle source</span>
|
1853
|
+
</div>
|
1854
|
+
|
1855
|
+
|
1856
|
+
<div class="method-description">
|
1857
|
+
|
1858
|
+
|
1859
|
+
|
1860
|
+
|
1861
|
+
|
1862
|
+
<div class="method-source-code" id="send_open-source">
|
1863
|
+
<pre>
|
1864
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 79</span>
|
1865
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_open</span>(<span class="ruby-identifier">path</span>)
|
1866
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'open'</span>, <span class="ruby-constant">Open_args</span>, <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>)
|
1867
|
+
<span class="ruby-keyword">end</span></pre>
|
1868
|
+
</div><!-- send_open-source -->
|
1869
|
+
|
1870
|
+
</div>
|
1871
|
+
|
1872
|
+
|
1873
|
+
|
1874
|
+
|
1875
|
+
</div><!-- send_open-method -->
|
1876
|
+
|
1877
|
+
|
1878
|
+
<div id="send_read-method" class="method-detail ">
|
1879
|
+
<a name="method-i-send_read"></a>
|
1880
|
+
|
1881
|
+
|
1882
|
+
<div class="method-heading">
|
1883
|
+
<span class="method-name">send_read</span><span
|
1884
|
+
class="method-args">(handle, offset, size)</span>
|
1885
|
+
<span class="method-click-advice">click to toggle source</span>
|
1886
|
+
</div>
|
1887
|
+
|
1888
|
+
|
1889
|
+
<div class="method-description">
|
1890
|
+
|
1891
|
+
|
1892
|
+
|
1893
|
+
|
1894
|
+
|
1895
|
+
<div class="method-source-code" id="send_read-source">
|
1896
|
+
<pre>
|
1897
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 127</span>
|
1898
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_read</span>(<span class="ruby-identifier">handle</span>, <span class="ruby-identifier">offset</span>, <span class="ruby-identifier">size</span>)
|
1899
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'read'</span>, <span class="ruby-constant">Read_args</span>, <span class="ruby-value">:handle</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">handle</span>, <span class="ruby-value">:offset</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">offset</span>, <span class="ruby-value">:size</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">size</span>)
|
1900
|
+
<span class="ruby-keyword">end</span></pre>
|
1901
|
+
</div><!-- send_read-source -->
|
1902
|
+
|
1903
|
+
</div>
|
1904
|
+
|
1905
|
+
|
1906
|
+
|
1907
|
+
|
1908
|
+
</div><!-- send_read-method -->
|
1909
|
+
|
1910
|
+
|
1911
|
+
<div id="send_rename-method" class="method-detail ">
|
1912
|
+
<a name="method-i-send_rename"></a>
|
1913
|
+
|
1914
|
+
|
1915
|
+
<div class="method-heading">
|
1916
|
+
<span class="method-name">send_rename</span><span
|
1917
|
+
class="method-args">(path, dest)</span>
|
1918
|
+
<span class="method-click-advice">click to toggle source</span>
|
1919
|
+
</div>
|
1920
|
+
|
1921
|
+
|
1922
|
+
<div class="method-description">
|
1923
|
+
|
1924
|
+
|
1925
|
+
|
1926
|
+
|
1927
|
+
|
1928
|
+
<div class="method-source-code" id="send_rename-source">
|
1929
|
+
<pre>
|
1930
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 175</span>
|
1931
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_rename</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">dest</span>)
|
1932
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'rename'</span>, <span class="ruby-constant">Rename_args</span>, <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-value">:dest</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">dest</span>)
|
1933
|
+
<span class="ruby-keyword">end</span></pre>
|
1934
|
+
</div><!-- send_rename-source -->
|
1935
|
+
|
1936
|
+
</div>
|
1937
|
+
|
1938
|
+
|
1939
|
+
|
1940
|
+
|
1941
|
+
</div><!-- send_rename-method -->
|
1942
|
+
|
1943
|
+
|
1944
|
+
<div id="send_rm-method" class="method-detail ">
|
1945
|
+
<a name="method-i-send_rm"></a>
|
1946
|
+
|
1947
|
+
|
1948
|
+
<div class="method-heading">
|
1949
|
+
<span class="method-name">send_rm</span><span
|
1950
|
+
class="method-args">(path, recursive)</span>
|
1951
|
+
<span class="method-click-advice">click to toggle source</span>
|
1952
|
+
</div>
|
1953
|
+
|
1954
|
+
|
1955
|
+
<div class="method-description">
|
1956
|
+
|
1957
|
+
|
1958
|
+
|
1959
|
+
|
1960
|
+
|
1961
|
+
<div class="method-source-code" id="send_rm-source">
|
1962
|
+
<pre>
|
1963
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 159</span>
|
1964
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_rm</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">recursive</span>)
|
1965
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'rm'</span>, <span class="ruby-constant">Rm_args</span>, <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-value">:recursive</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">recursive</span>)
|
1966
|
+
<span class="ruby-keyword">end</span></pre>
|
1967
|
+
</div><!-- send_rm-source -->
|
1968
|
+
|
1969
|
+
</div>
|
1970
|
+
|
1971
|
+
|
1972
|
+
|
1973
|
+
|
1974
|
+
</div><!-- send_rm-method -->
|
1975
|
+
|
1976
|
+
|
1977
|
+
<div id="send_setInactivityTimeoutPeriod-method" class="method-detail ">
|
1978
|
+
<a name="method-i-send_setInactivityTimeoutPeriod"></a>
|
1979
|
+
|
1980
|
+
|
1981
|
+
<div class="method-heading">
|
1982
|
+
<span class="method-name">send_setInactivityTimeoutPeriod</span><span
|
1983
|
+
class="method-args">(periodInSeconds)</span>
|
1984
|
+
<span class="method-click-advice">click to toggle source</span>
|
1985
|
+
</div>
|
1986
|
+
|
1987
|
+
|
1988
|
+
<div class="method-description">
|
1989
|
+
|
1990
|
+
|
1991
|
+
|
1992
|
+
|
1993
|
+
|
1994
|
+
<div class="method-source-code" id="send_setInactivityTimeoutPeriod-source">
|
1995
|
+
<pre>
|
1996
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 19</span>
|
1997
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_setInactivityTimeoutPeriod</span>(<span class="ruby-identifier">periodInSeconds</span>)
|
1998
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'setInactivityTimeoutPeriod'</span>, <span class="ruby-constant">SetInactivityTimeoutPeriod_args</span>, <span class="ruby-value">:periodInSeconds</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">periodInSeconds</span>)
|
1999
|
+
<span class="ruby-keyword">end</span></pre>
|
2000
|
+
</div><!-- send_setInactivityTimeoutPeriod-source -->
|
2001
|
+
|
2002
|
+
</div>
|
2003
|
+
|
2004
|
+
|
2005
|
+
|
2006
|
+
|
2007
|
+
</div><!-- send_setInactivityTimeoutPeriod-method -->
|
2008
|
+
|
2009
|
+
|
2010
|
+
<div id="send_setReplication-method" class="method-detail ">
|
2011
|
+
<a name="method-i-send_setReplication"></a>
|
2012
|
+
|
2013
|
+
|
2014
|
+
<div class="method-heading">
|
2015
|
+
<span class="method-name">send_setReplication</span><span
|
2016
|
+
class="method-args">(path, replication)</span>
|
2017
|
+
<span class="method-click-advice">click to toggle source</span>
|
2018
|
+
</div>
|
2019
|
+
|
2020
|
+
|
2021
|
+
<div class="method-description">
|
2022
|
+
|
2023
|
+
|
2024
|
+
|
2025
|
+
|
2026
|
+
|
2027
|
+
<div class="method-source-code" id="send_setReplication-source">
|
2028
|
+
<pre>
|
2029
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 285</span>
|
2030
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_setReplication</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">replication</span>)
|
2031
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'setReplication'</span>, <span class="ruby-constant">SetReplication_args</span>, <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-value">:replication</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">replication</span>)
|
2032
|
+
<span class="ruby-keyword">end</span></pre>
|
2033
|
+
</div><!-- send_setReplication-source -->
|
2034
|
+
|
2035
|
+
</div>
|
2036
|
+
|
2037
|
+
|
2038
|
+
|
2039
|
+
|
2040
|
+
</div><!-- send_setReplication-method -->
|
2041
|
+
|
2042
|
+
|
2043
|
+
<div id="send_shutdown-method" class="method-detail ">
|
2044
|
+
<a name="method-i-send_shutdown"></a>
|
2045
|
+
|
2046
|
+
|
2047
|
+
<div class="method-heading">
|
2048
|
+
<span class="method-name">send_shutdown</span><span
|
2049
|
+
class="method-args">(status)</span>
|
2050
|
+
<span class="method-click-advice">click to toggle source</span>
|
2051
|
+
</div>
|
2052
|
+
|
2053
|
+
|
2054
|
+
<div class="method-description">
|
2055
|
+
|
2056
|
+
|
2057
|
+
|
2058
|
+
|
2059
|
+
|
2060
|
+
<div class="method-source-code" id="send_shutdown-source">
|
2061
|
+
<pre>
|
2062
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 33</span>
|
2063
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_shutdown</span>(<span class="ruby-identifier">status</span>)
|
2064
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'shutdown'</span>, <span class="ruby-constant">Shutdown_args</span>, <span class="ruby-value">:status</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">status</span>)
|
2065
|
+
<span class="ruby-keyword">end</span></pre>
|
2066
|
+
</div><!-- send_shutdown-source -->
|
2067
|
+
|
2068
|
+
</div>
|
2069
|
+
|
2070
|
+
|
2071
|
+
|
2072
|
+
|
2073
|
+
</div><!-- send_shutdown-method -->
|
2074
|
+
|
2075
|
+
|
2076
|
+
<div id="send_stat-method" class="method-detail ">
|
2077
|
+
<a name="method-i-send_stat"></a>
|
2078
|
+
|
2079
|
+
|
2080
|
+
<div class="method-heading">
|
2081
|
+
<span class="method-name">send_stat</span><span
|
2082
|
+
class="method-args">(path)</span>
|
2083
|
+
<span class="method-click-advice">click to toggle source</span>
|
2084
|
+
</div>
|
2085
|
+
|
2086
|
+
|
2087
|
+
<div class="method-description">
|
2088
|
+
|
2089
|
+
|
2090
|
+
|
2091
|
+
|
2092
|
+
|
2093
|
+
<div class="method-source-code" id="send_stat-source">
|
2094
|
+
<pre>
|
2095
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 223</span>
|
2096
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_stat</span>(<span class="ruby-identifier">path</span>)
|
2097
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'stat'</span>, <span class="ruby-constant">Stat_args</span>, <span class="ruby-value">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>)
|
2098
|
+
<span class="ruby-keyword">end</span></pre>
|
2099
|
+
</div><!-- send_stat-source -->
|
2100
|
+
|
2101
|
+
</div>
|
2102
|
+
|
2103
|
+
|
2104
|
+
|
2105
|
+
|
2106
|
+
</div><!-- send_stat-method -->
|
2107
|
+
|
2108
|
+
|
2109
|
+
<div id="send_write-method" class="method-detail ">
|
2110
|
+
<a name="method-i-send_write"></a>
|
2111
|
+
|
2112
|
+
|
2113
|
+
<div class="method-heading">
|
2114
|
+
<span class="method-name">send_write</span><span
|
2115
|
+
class="method-args">(handle, data)</span>
|
2116
|
+
<span class="method-click-advice">click to toggle source</span>
|
2117
|
+
</div>
|
2118
|
+
|
2119
|
+
|
2120
|
+
<div class="method-description">
|
2121
|
+
|
2122
|
+
|
2123
|
+
|
2124
|
+
|
2125
|
+
|
2126
|
+
<div class="method-source-code" id="send_write-source">
|
2127
|
+
<pre>
|
2128
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 111</span>
|
2129
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_write</span>(<span class="ruby-identifier">handle</span>, <span class="ruby-identifier">data</span>)
|
2130
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-string">'write'</span>, <span class="ruby-constant">Write_args</span>, <span class="ruby-value">:handle</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">handle</span>, <span class="ruby-value">:data</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">data</span>)
|
2131
|
+
<span class="ruby-keyword">end</span></pre>
|
2132
|
+
</div><!-- send_write-source -->
|
2133
|
+
|
2134
|
+
</div>
|
2135
|
+
|
2136
|
+
|
2137
|
+
|
2138
|
+
|
2139
|
+
</div><!-- send_write-method -->
|
2140
|
+
|
2141
|
+
|
2142
|
+
<div id="setInactivityTimeoutPeriod-method" class="method-detail ">
|
2143
|
+
<a name="method-i-setInactivityTimeoutPeriod"></a>
|
2144
|
+
|
2145
|
+
|
2146
|
+
<div class="method-heading">
|
2147
|
+
<span class="method-name">setInactivityTimeoutPeriod</span><span
|
2148
|
+
class="method-args">(periodInSeconds)</span>
|
2149
|
+
<span class="method-click-advice">click to toggle source</span>
|
2150
|
+
</div>
|
2151
|
+
|
2152
|
+
|
2153
|
+
<div class="method-description">
|
2154
|
+
|
2155
|
+
|
2156
|
+
|
2157
|
+
|
2158
|
+
|
2159
|
+
<div class="method-source-code" id="setInactivityTimeoutPeriod-source">
|
2160
|
+
<pre>
|
2161
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 14</span>
|
2162
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">setInactivityTimeoutPeriod</span>(<span class="ruby-identifier">periodInSeconds</span>)
|
2163
|
+
<span class="ruby-identifier">send_setInactivityTimeoutPeriod</span>(<span class="ruby-identifier">periodInSeconds</span>)
|
2164
|
+
<span class="ruby-identifier">recv_setInactivityTimeoutPeriod</span>()
|
2165
|
+
<span class="ruby-keyword">end</span></pre>
|
2166
|
+
</div><!-- setInactivityTimeoutPeriod-source -->
|
2167
|
+
|
2168
|
+
</div>
|
2169
|
+
|
2170
|
+
|
2171
|
+
|
2172
|
+
|
2173
|
+
</div><!-- setInactivityTimeoutPeriod-method -->
|
2174
|
+
|
2175
|
+
|
2176
|
+
<div id="setReplication-method" class="method-detail ">
|
2177
|
+
<a name="method-i-setReplication"></a>
|
2178
|
+
|
2179
|
+
|
2180
|
+
<div class="method-heading">
|
2181
|
+
<span class="method-name">setReplication</span><span
|
2182
|
+
class="method-args">(path, replication)</span>
|
2183
|
+
<span class="method-click-advice">click to toggle source</span>
|
2184
|
+
</div>
|
2185
|
+
|
2186
|
+
|
2187
|
+
<div class="method-description">
|
2188
|
+
|
2189
|
+
|
2190
|
+
|
2191
|
+
|
2192
|
+
|
2193
|
+
<div class="method-source-code" id="setReplication-source">
|
2194
|
+
<pre>
|
2195
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 280</span>
|
2196
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">setReplication</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">replication</span>)
|
2197
|
+
<span class="ruby-identifier">send_setReplication</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">replication</span>)
|
2198
|
+
<span class="ruby-identifier">recv_setReplication</span>()
|
2199
|
+
<span class="ruby-keyword">end</span></pre>
|
2200
|
+
</div><!-- setReplication-source -->
|
2201
|
+
|
2202
|
+
</div>
|
2203
|
+
|
2204
|
+
|
2205
|
+
|
2206
|
+
|
2207
|
+
</div><!-- setReplication-method -->
|
2208
|
+
|
2209
|
+
|
2210
|
+
<div id="shutdown-method" class="method-detail ">
|
2211
|
+
<a name="method-i-shutdown"></a>
|
2212
|
+
|
2213
|
+
|
2214
|
+
<div class="method-heading">
|
2215
|
+
<span class="method-name">shutdown</span><span
|
2216
|
+
class="method-args">(status)</span>
|
2217
|
+
<span class="method-click-advice">click to toggle source</span>
|
2218
|
+
</div>
|
2219
|
+
|
2220
|
+
|
2221
|
+
<div class="method-description">
|
2222
|
+
|
2223
|
+
|
2224
|
+
|
2225
|
+
|
2226
|
+
|
2227
|
+
<div class="method-source-code" id="shutdown-source">
|
2228
|
+
<pre>
|
2229
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 28</span>
|
2230
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">shutdown</span>(<span class="ruby-identifier">status</span>)
|
2231
|
+
<span class="ruby-identifier">send_shutdown</span>(<span class="ruby-identifier">status</span>)
|
2232
|
+
<span class="ruby-identifier">recv_shutdown</span>()
|
2233
|
+
<span class="ruby-keyword">end</span></pre>
|
2234
|
+
</div><!-- shutdown-source -->
|
2235
|
+
|
2236
|
+
</div>
|
2237
|
+
|
2238
|
+
|
2239
|
+
|
2240
|
+
|
2241
|
+
</div><!-- shutdown-method -->
|
2242
|
+
|
2243
|
+
|
2244
|
+
<div id="stat-method" class="method-detail ">
|
2245
|
+
<a name="method-i-stat"></a>
|
2246
|
+
|
2247
|
+
|
2248
|
+
<div class="method-heading">
|
2249
|
+
<span class="method-name">stat</span><span
|
2250
|
+
class="method-args">(path)</span>
|
2251
|
+
<span class="method-click-advice">click to toggle source</span>
|
2252
|
+
</div>
|
2253
|
+
|
2254
|
+
|
2255
|
+
<div class="method-description">
|
2256
|
+
|
2257
|
+
|
2258
|
+
|
2259
|
+
|
2260
|
+
|
2261
|
+
<div class="method-source-code" id="stat-source">
|
2262
|
+
<pre>
|
2263
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 218</span>
|
2264
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">stat</span>(<span class="ruby-identifier">path</span>)
|
2265
|
+
<span class="ruby-identifier">send_stat</span>(<span class="ruby-identifier">path</span>)
|
2266
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">recv_stat</span>()
|
2267
|
+
<span class="ruby-keyword">end</span></pre>
|
2268
|
+
</div><!-- stat-source -->
|
2269
|
+
|
2270
|
+
</div>
|
2271
|
+
|
2272
|
+
|
2273
|
+
|
2274
|
+
|
2275
|
+
</div><!-- stat-method -->
|
2276
|
+
|
2277
|
+
|
2278
|
+
<div id="write-method" class="method-detail ">
|
2279
|
+
<a name="method-i-write"></a>
|
2280
|
+
|
2281
|
+
|
2282
|
+
<div class="method-heading">
|
2283
|
+
<span class="method-name">write</span><span
|
2284
|
+
class="method-args">(handle, data)</span>
|
2285
|
+
<span class="method-click-advice">click to toggle source</span>
|
2286
|
+
</div>
|
2287
|
+
|
2288
|
+
|
2289
|
+
<div class="method-description">
|
2290
|
+
|
2291
|
+
|
2292
|
+
|
2293
|
+
|
2294
|
+
|
2295
|
+
<div class="method-source-code" id="write-source">
|
2296
|
+
<pre>
|
2297
|
+
<span class="ruby-comment"># File lib/thrift/thrift_hadoop_file_system.rb, line 106</span>
|
2298
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">write</span>(<span class="ruby-identifier">handle</span>, <span class="ruby-identifier">data</span>)
|
2299
|
+
<span class="ruby-identifier">send_write</span>(<span class="ruby-identifier">handle</span>, <span class="ruby-identifier">data</span>)
|
2300
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">recv_write</span>()
|
2301
|
+
<span class="ruby-keyword">end</span></pre>
|
2302
|
+
</div><!-- write-source -->
|
2303
|
+
|
2304
|
+
</div>
|
2305
|
+
|
2306
|
+
|
2307
|
+
|
2308
|
+
|
2309
|
+
</div><!-- write-method -->
|
2310
|
+
|
2311
|
+
|
2312
|
+
</div><!-- public-instance-method-details -->
|
2313
|
+
|
2314
|
+
</div><!-- 5Buntitled-5D -->
|
2315
|
+
|
2316
|
+
|
2317
|
+
</div><!-- documentation -->
|
2318
|
+
|
2319
|
+
<div id="validator-badges">
|
2320
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
2321
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
2322
|
+
Rdoc Generator</a> 2</small>.</p>
|
2323
|
+
</div>
|
2324
|
+
|
2325
|
+
</body>
|
2326
|
+
</html>
|
2327
|
+
|