ganapati 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +674 -0
- data/README.rdoc +86 -0
- data/Rakefile +32 -0
- data/bin/hcp +64 -0
- data/bin/hls +42 -0
- data/docs/classes/Ganapati.html +138 -0
- data/docs/classes/Ganapati/Client.html +666 -0
- data/docs/classes/Ganapati/FileUrl.html +253 -0
- data/docs/classes/Ganapati/HFile.html +271 -0
- data/docs/classes/ThriftHadoopFileSystem.html +169 -0
- data/docs/classes/ThriftHadoopFileSystem/Append_args.html +193 -0
- data/docs/classes/ThriftHadoopFileSystem/Append_result.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/BlockLocation.html +208 -0
- data/docs/classes/ThriftHadoopFileSystem/Chmod_args.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/Chmod_result.html +193 -0
- data/docs/classes/ThriftHadoopFileSystem/Chown_args.html +203 -0
- data/docs/classes/ThriftHadoopFileSystem/Chown_result.html +193 -0
- data/docs/classes/ThriftHadoopFileSystem/Client.html +1566 -0
- data/docs/classes/ThriftHadoopFileSystem/Close_args.html +193 -0
- data/docs/classes/ThriftHadoopFileSystem/Close_result.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/CreateFile_args.html +218 -0
- data/docs/classes/ThriftHadoopFileSystem/CreateFile_result.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/Create_args.html +193 -0
- data/docs/classes/ThriftHadoopFileSystem/Create_result.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/Exists_args.html +193 -0
- data/docs/classes/ThriftHadoopFileSystem/Exists_result.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/FileStatus.html +233 -0
- data/docs/classes/ThriftHadoopFileSystem/GetFileBlockLocations_args.html +203 -0
- data/docs/classes/ThriftHadoopFileSystem/GetFileBlockLocations_result.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/ListStatus_args.html +193 -0
- data/docs/classes/ThriftHadoopFileSystem/ListStatus_result.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/MalformedInputException.html +220 -0
- data/docs/classes/ThriftHadoopFileSystem/Mkdirs_args.html +193 -0
- data/docs/classes/ThriftHadoopFileSystem/Mkdirs_result.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/Open_args.html +193 -0
- data/docs/classes/ThriftHadoopFileSystem/Open_result.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/Pathname.html +193 -0
- data/docs/classes/ThriftHadoopFileSystem/Processor.html +710 -0
- data/docs/classes/ThriftHadoopFileSystem/Read_args.html +203 -0
- data/docs/classes/ThriftHadoopFileSystem/Read_result.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/Rename_args.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/Rename_result.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/Rm_args.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/Rm_result.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_args.html +199 -0
- data/docs/classes/ThriftHadoopFileSystem/SetInactivityTimeoutPeriod_result.html +188 -0
- data/docs/classes/ThriftHadoopFileSystem/SetReplication_args.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/SetReplication_result.html +193 -0
- data/docs/classes/ThriftHadoopFileSystem/Shutdown_args.html +193 -0
- data/docs/classes/ThriftHadoopFileSystem/Shutdown_result.html +188 -0
- data/docs/classes/ThriftHadoopFileSystem/Stat_args.html +193 -0
- data/docs/classes/ThriftHadoopFileSystem/Stat_result.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/ThriftHandle.html +193 -0
- data/docs/classes/ThriftHadoopFileSystem/ThriftIOException.html +220 -0
- data/docs/classes/ThriftHadoopFileSystem/Write_args.html +198 -0
- data/docs/classes/ThriftHadoopFileSystem/Write_result.html +198 -0
- data/docs/created.rid +1 -0
- data/docs/files/README_rdoc.html +209 -0
- data/docs/files/lib/ganapati/client_rb.html +101 -0
- data/docs/files/lib/ganapati/hfile_rb.html +101 -0
- data/docs/files/lib/ganapati/utils_rb.html +101 -0
- data/docs/files/lib/ganapati/version_rb.html +101 -0
- data/docs/files/lib/ganapati_rb.html +112 -0
- data/docs/files/lib/thrift/hadoopfs_constants_rb.html +117 -0
- data/docs/files/lib/thrift/hadoopfs_types_rb.html +110 -0
- data/docs/files/lib/thrift/thrift_hadoop_file_system_rb.html +118 -0
- data/docs/fr_class_index.html +77 -0
- data/docs/fr_file_index.html +35 -0
- data/docs/fr_method_index.html +222 -0
- data/docs/index.html +24 -0
- data/docs/rdoc-style.css +208 -0
- data/lib/ganapati.rb +1 -0
- data/lib/ganapati/client.rb +4 -2
- data/lib/ganapati/utils.rb +47 -0
- data/lib/ganapati/version.rb +3 -0
- metadata +79 -4
@@ -0,0 +1,203 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: ThriftHadoopFileSystem::Chown_args</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">ThriftHadoopFileSystem::Chown_args</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/thrift/thrift_hadoop_file_system_rb.html">
|
59
|
+
lib/thrift/thrift_hadoop_file_system.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="method-list">
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
87
|
+
|
88
|
+
<div class="name-list">
|
89
|
+
<a href="#M000122">struct_fields</a>
|
90
|
+
<a href="#M000123">validate</a>
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
</div>
|
95
|
+
|
96
|
+
|
97
|
+
<!-- if includes -->
|
98
|
+
<div id="includes">
|
99
|
+
<h3 class="section-bar">Included Modules</h3>
|
100
|
+
|
101
|
+
<div id="includes-list">
|
102
|
+
<span class="include-name">::Thrift::Struct</span>
|
103
|
+
<span class="include-name">::Thrift::Struct_Union</span>
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<div id="section">
|
108
|
+
|
109
|
+
|
110
|
+
<div id="constants-list">
|
111
|
+
<h3 class="section-bar">Constants</h3>
|
112
|
+
|
113
|
+
<div class="name-list">
|
114
|
+
<table summary="Constants">
|
115
|
+
<tr class="top-aligned-row context-row">
|
116
|
+
<td class="context-item-name">PATH</td>
|
117
|
+
<td>=</td>
|
118
|
+
<td class="context-item-value">1</td>
|
119
|
+
</tr>
|
120
|
+
<tr class="top-aligned-row context-row">
|
121
|
+
<td class="context-item-name">OWNER</td>
|
122
|
+
<td>=</td>
|
123
|
+
<td class="context-item-value">2</td>
|
124
|
+
</tr>
|
125
|
+
<tr class="top-aligned-row context-row">
|
126
|
+
<td class="context-item-name">GROUP</td>
|
127
|
+
<td>=</td>
|
128
|
+
<td class="context-item-value">3</td>
|
129
|
+
</tr>
|
130
|
+
<tr class="top-aligned-row context-row">
|
131
|
+
<td class="context-item-name">FIELDS</td>
|
132
|
+
<td>=</td>
|
133
|
+
<td class="context-item-value">{ PATH => {:type => ::Thrift::Types::STRUCT, :name => 'path', :class => Pathname}, OWNER => {:type => ::Thrift::Types::STRING, :name => 'owner'}, GROUP => {:type => ::Thrift::Types::STRING, :name => 'group'}</td>
|
134
|
+
</tr>
|
135
|
+
</table>
|
136
|
+
</div>
|
137
|
+
</div>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
<!-- if method_list -->
|
145
|
+
<div id="methods">
|
146
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
147
|
+
|
148
|
+
<div id="method-M000122" class="method-detail">
|
149
|
+
<a name="M000122"></a>
|
150
|
+
|
151
|
+
<div class="method-heading">
|
152
|
+
<a href="#M000122" class="method-signature">
|
153
|
+
<span class="method-name">struct_fields</span><span class="method-args">()</span>
|
154
|
+
</a>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
<div class="method-description">
|
158
|
+
<p><a class="source-toggle" href="#"
|
159
|
+
onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
|
160
|
+
<div class="method-source-code" id="M000122-source">
|
161
|
+
<pre>
|
162
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 1091</span>
|
163
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">struct_fields</span>; <span class="ruby-constant">FIELDS</span>; <span class="ruby-keyword kw">end</span>
|
164
|
+
</pre>
|
165
|
+
</div>
|
166
|
+
</div>
|
167
|
+
</div>
|
168
|
+
|
169
|
+
<div id="method-M000123" class="method-detail">
|
170
|
+
<a name="M000123"></a>
|
171
|
+
|
172
|
+
<div class="method-heading">
|
173
|
+
<a href="#M000123" class="method-signature">
|
174
|
+
<span class="method-name">validate</span><span class="method-args">()</span>
|
175
|
+
</a>
|
176
|
+
</div>
|
177
|
+
|
178
|
+
<div class="method-description">
|
179
|
+
<p><a class="source-toggle" href="#"
|
180
|
+
onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
|
181
|
+
<div class="method-source-code" id="M000123-source">
|
182
|
+
<pre>
|
183
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 1093</span>
|
184
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate</span>
|
185
|
+
<span class="ruby-keyword kw">end</span>
|
186
|
+
</pre>
|
187
|
+
</div>
|
188
|
+
</div>
|
189
|
+
</div>
|
190
|
+
|
191
|
+
|
192
|
+
</div>
|
193
|
+
|
194
|
+
|
195
|
+
</div>
|
196
|
+
|
197
|
+
|
198
|
+
<div id="validator-badges">
|
199
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
200
|
+
</div>
|
201
|
+
|
202
|
+
</body>
|
203
|
+
</html>
|
@@ -0,0 +1,193 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: ThriftHadoopFileSystem::Chown_result</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">ThriftHadoopFileSystem::Chown_result</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/thrift/thrift_hadoop_file_system_rb.html">
|
59
|
+
lib/thrift/thrift_hadoop_file_system.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="method-list">
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
87
|
+
|
88
|
+
<div class="name-list">
|
89
|
+
<a href="#M000132">struct_fields</a>
|
90
|
+
<a href="#M000133">validate</a>
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
|
94
|
+
</div>
|
95
|
+
|
96
|
+
|
97
|
+
<!-- if includes -->
|
98
|
+
<div id="includes">
|
99
|
+
<h3 class="section-bar">Included Modules</h3>
|
100
|
+
|
101
|
+
<div id="includes-list">
|
102
|
+
<span class="include-name">::Thrift::Struct</span>
|
103
|
+
<span class="include-name">::Thrift::Struct_Union</span>
|
104
|
+
</div>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<div id="section">
|
108
|
+
|
109
|
+
|
110
|
+
<div id="constants-list">
|
111
|
+
<h3 class="section-bar">Constants</h3>
|
112
|
+
|
113
|
+
<div class="name-list">
|
114
|
+
<table summary="Constants">
|
115
|
+
<tr class="top-aligned-row context-row">
|
116
|
+
<td class="context-item-name">OUCH</td>
|
117
|
+
<td>=</td>
|
118
|
+
<td class="context-item-value">1</td>
|
119
|
+
</tr>
|
120
|
+
<tr class="top-aligned-row context-row">
|
121
|
+
<td class="context-item-name">FIELDS</td>
|
122
|
+
<td>=</td>
|
123
|
+
<td class="context-item-value">{ OUCH => {:type => ::Thrift::Types::STRUCT, :name => 'ouch', :class => ThriftIOException}</td>
|
124
|
+
</tr>
|
125
|
+
</table>
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
<!-- if method_list -->
|
135
|
+
<div id="methods">
|
136
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
137
|
+
|
138
|
+
<div id="method-M000132" class="method-detail">
|
139
|
+
<a name="M000132"></a>
|
140
|
+
|
141
|
+
<div class="method-heading">
|
142
|
+
<a href="#M000132" class="method-signature">
|
143
|
+
<span class="method-name">struct_fields</span><span class="method-args">()</span>
|
144
|
+
</a>
|
145
|
+
</div>
|
146
|
+
|
147
|
+
<div class="method-description">
|
148
|
+
<p><a class="source-toggle" href="#"
|
149
|
+
onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
|
150
|
+
<div class="method-source-code" id="M000132-source">
|
151
|
+
<pre>
|
152
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 1107</span>
|
153
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">struct_fields</span>; <span class="ruby-constant">FIELDS</span>; <span class="ruby-keyword kw">end</span>
|
154
|
+
</pre>
|
155
|
+
</div>
|
156
|
+
</div>
|
157
|
+
</div>
|
158
|
+
|
159
|
+
<div id="method-M000133" class="method-detail">
|
160
|
+
<a name="M000133"></a>
|
161
|
+
|
162
|
+
<div class="method-heading">
|
163
|
+
<a href="#M000133" class="method-signature">
|
164
|
+
<span class="method-name">validate</span><span class="method-args">()</span>
|
165
|
+
</a>
|
166
|
+
</div>
|
167
|
+
|
168
|
+
<div class="method-description">
|
169
|
+
<p><a class="source-toggle" href="#"
|
170
|
+
onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
|
171
|
+
<div class="method-source-code" id="M000133-source">
|
172
|
+
<pre>
|
173
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 1109</span>
|
174
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate</span>
|
175
|
+
<span class="ruby-keyword kw">end</span>
|
176
|
+
</pre>
|
177
|
+
</div>
|
178
|
+
</div>
|
179
|
+
</div>
|
180
|
+
|
181
|
+
|
182
|
+
</div>
|
183
|
+
|
184
|
+
|
185
|
+
</div>
|
186
|
+
|
187
|
+
|
188
|
+
<div id="validator-badges">
|
189
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
190
|
+
</div>
|
191
|
+
|
192
|
+
</body>
|
193
|
+
</html>
|
@@ -0,0 +1,1566 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE html
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
+
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
+
<head>
|
8
|
+
<title>Class: ThriftHadoopFileSystem::Client</title>
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
+
<script type="text/javascript">
|
13
|
+
// <![CDATA[
|
14
|
+
|
15
|
+
function popupCode( url ) {
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
+
}
|
18
|
+
|
19
|
+
function toggleCode( id ) {
|
20
|
+
if ( document.getElementById )
|
21
|
+
elem = document.getElementById( id );
|
22
|
+
else if ( document.all )
|
23
|
+
elem = eval( "document.all." + id );
|
24
|
+
else
|
25
|
+
return false;
|
26
|
+
|
27
|
+
elemStyle = elem.style;
|
28
|
+
|
29
|
+
if ( elemStyle.display != "block" ) {
|
30
|
+
elemStyle.display = "block"
|
31
|
+
} else {
|
32
|
+
elemStyle.display = "none"
|
33
|
+
}
|
34
|
+
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
|
38
|
+
// Make codeblocks hidden by default
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
+
|
41
|
+
// ]]>
|
42
|
+
</script>
|
43
|
+
|
44
|
+
</head>
|
45
|
+
<body>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<div id="classHeader">
|
50
|
+
<table class="header-table">
|
51
|
+
<tr class="top-aligned-row">
|
52
|
+
<td><strong>Class</strong></td>
|
53
|
+
<td class="class-name-in-header">ThriftHadoopFileSystem::Client</td>
|
54
|
+
</tr>
|
55
|
+
<tr class="top-aligned-row">
|
56
|
+
<td><strong>In:</strong></td>
|
57
|
+
<td>
|
58
|
+
<a href="../../files/lib/thrift/thrift_hadoop_file_system_rb.html">
|
59
|
+
lib/thrift/thrift_hadoop_file_system.rb
|
60
|
+
</a>
|
61
|
+
<br />
|
62
|
+
</td>
|
63
|
+
</tr>
|
64
|
+
|
65
|
+
<tr class="top-aligned-row">
|
66
|
+
<td><strong>Parent:</strong></td>
|
67
|
+
<td>
|
68
|
+
Object
|
69
|
+
</td>
|
70
|
+
</tr>
|
71
|
+
</table>
|
72
|
+
</div>
|
73
|
+
<!-- banner header -->
|
74
|
+
|
75
|
+
<div id="bodyContent">
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<div id="contextContent">
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
<div id="method-list">
|
86
|
+
<h3 class="section-bar">Methods</h3>
|
87
|
+
|
88
|
+
<div class="name-list">
|
89
|
+
<a href="#M000055">append</a>
|
90
|
+
<a href="#M000085">chmod</a>
|
91
|
+
<a href="#M000088">chown</a>
|
92
|
+
<a href="#M000064">close</a>
|
93
|
+
<a href="#M000046">create</a>
|
94
|
+
<a href="#M000049">createFile</a>
|
95
|
+
<a href="#M000076">exists</a>
|
96
|
+
<a href="#M000094">getFileBlockLocations</a>
|
97
|
+
<a href="#M000082">listStatus</a>
|
98
|
+
<a href="#M000073">mkdirs</a>
|
99
|
+
<a href="#M000052">open</a>
|
100
|
+
<a href="#M000061">read</a>
|
101
|
+
<a href="#M000057">recv_append</a>
|
102
|
+
<a href="#M000087">recv_chmod</a>
|
103
|
+
<a href="#M000090">recv_chown</a>
|
104
|
+
<a href="#M000066">recv_close</a>
|
105
|
+
<a href="#M000048">recv_create</a>
|
106
|
+
<a href="#M000051">recv_createFile</a>
|
107
|
+
<a href="#M000078">recv_exists</a>
|
108
|
+
<a href="#M000096">recv_getFileBlockLocations</a>
|
109
|
+
<a href="#M000084">recv_listStatus</a>
|
110
|
+
<a href="#M000075">recv_mkdirs</a>
|
111
|
+
<a href="#M000054">recv_open</a>
|
112
|
+
<a href="#M000063">recv_read</a>
|
113
|
+
<a href="#M000072">recv_rename</a>
|
114
|
+
<a href="#M000069">recv_rm</a>
|
115
|
+
<a href="#M000042">recv_setInactivityTimeoutPeriod</a>
|
116
|
+
<a href="#M000093">recv_setReplication</a>
|
117
|
+
<a href="#M000045">recv_shutdown</a>
|
118
|
+
<a href="#M000081">recv_stat</a>
|
119
|
+
<a href="#M000060">recv_write</a>
|
120
|
+
<a href="#M000070">rename</a>
|
121
|
+
<a href="#M000067">rm</a>
|
122
|
+
<a href="#M000056">send_append</a>
|
123
|
+
<a href="#M000086">send_chmod</a>
|
124
|
+
<a href="#M000089">send_chown</a>
|
125
|
+
<a href="#M000065">send_close</a>
|
126
|
+
<a href="#M000047">send_create</a>
|
127
|
+
<a href="#M000050">send_createFile</a>
|
128
|
+
<a href="#M000077">send_exists</a>
|
129
|
+
<a href="#M000095">send_getFileBlockLocations</a>
|
130
|
+
<a href="#M000083">send_listStatus</a>
|
131
|
+
<a href="#M000074">send_mkdirs</a>
|
132
|
+
<a href="#M000053">send_open</a>
|
133
|
+
<a href="#M000062">send_read</a>
|
134
|
+
<a href="#M000071">send_rename</a>
|
135
|
+
<a href="#M000068">send_rm</a>
|
136
|
+
<a href="#M000041">send_setInactivityTimeoutPeriod</a>
|
137
|
+
<a href="#M000092">send_setReplication</a>
|
138
|
+
<a href="#M000044">send_shutdown</a>
|
139
|
+
<a href="#M000080">send_stat</a>
|
140
|
+
<a href="#M000059">send_write</a>
|
141
|
+
<a href="#M000040">setInactivityTimeoutPeriod</a>
|
142
|
+
<a href="#M000091">setReplication</a>
|
143
|
+
<a href="#M000043">shutdown</a>
|
144
|
+
<a href="#M000079">stat</a>
|
145
|
+
<a href="#M000058">write</a>
|
146
|
+
</div>
|
147
|
+
</div>
|
148
|
+
|
149
|
+
</div>
|
150
|
+
|
151
|
+
|
152
|
+
<!-- if includes -->
|
153
|
+
<div id="includes">
|
154
|
+
<h3 class="section-bar">Included Modules</h3>
|
155
|
+
|
156
|
+
<div id="includes-list">
|
157
|
+
<span class="include-name">::Thrift::Client</span>
|
158
|
+
</div>
|
159
|
+
</div>
|
160
|
+
|
161
|
+
<div id="section">
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
<!-- if method_list -->
|
171
|
+
<div id="methods">
|
172
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
173
|
+
|
174
|
+
<div id="method-M000055" class="method-detail">
|
175
|
+
<a name="M000055"></a>
|
176
|
+
|
177
|
+
<div class="method-heading">
|
178
|
+
<a href="#M000055" class="method-signature">
|
179
|
+
<span class="method-name">append</span><span class="method-args">(path)</span>
|
180
|
+
</a>
|
181
|
+
</div>
|
182
|
+
|
183
|
+
<div class="method-description">
|
184
|
+
<p><a class="source-toggle" href="#"
|
185
|
+
onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
|
186
|
+
<div class="method-source-code" id="M000055-source">
|
187
|
+
<pre>
|
188
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 90</span>
|
189
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">append</span>(<span class="ruby-identifier">path</span>)
|
190
|
+
<span class="ruby-identifier">send_append</span>(<span class="ruby-identifier">path</span>)
|
191
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">recv_append</span>()
|
192
|
+
<span class="ruby-keyword kw">end</span>
|
193
|
+
</pre>
|
194
|
+
</div>
|
195
|
+
</div>
|
196
|
+
</div>
|
197
|
+
|
198
|
+
<div id="method-M000085" class="method-detail">
|
199
|
+
<a name="M000085"></a>
|
200
|
+
|
201
|
+
<div class="method-heading">
|
202
|
+
<a href="#M000085" class="method-signature">
|
203
|
+
<span class="method-name">chmod</span><span class="method-args">(path, mode)</span>
|
204
|
+
</a>
|
205
|
+
</div>
|
206
|
+
|
207
|
+
<div class="method-description">
|
208
|
+
<p><a class="source-toggle" href="#"
|
209
|
+
onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
|
210
|
+
<div class="method-source-code" id="M000085-source">
|
211
|
+
<pre>
|
212
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 250</span>
|
213
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chmod</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">mode</span>)
|
214
|
+
<span class="ruby-identifier">send_chmod</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">mode</span>)
|
215
|
+
<span class="ruby-identifier">recv_chmod</span>()
|
216
|
+
<span class="ruby-keyword kw">end</span>
|
217
|
+
</pre>
|
218
|
+
</div>
|
219
|
+
</div>
|
220
|
+
</div>
|
221
|
+
|
222
|
+
<div id="method-M000088" class="method-detail">
|
223
|
+
<a name="M000088"></a>
|
224
|
+
|
225
|
+
<div class="method-heading">
|
226
|
+
<a href="#M000088" class="method-signature">
|
227
|
+
<span class="method-name">chown</span><span class="method-args">(path, owner, group)</span>
|
228
|
+
</a>
|
229
|
+
</div>
|
230
|
+
|
231
|
+
<div class="method-description">
|
232
|
+
<p><a class="source-toggle" href="#"
|
233
|
+
onclick="toggleCode('M000088-source');return false;">[Source]</a></p>
|
234
|
+
<div class="method-source-code" id="M000088-source">
|
235
|
+
<pre>
|
236
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 265</span>
|
237
|
+
<span class="ruby-keyword kw">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>)
|
238
|
+
<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>)
|
239
|
+
<span class="ruby-identifier">recv_chown</span>()
|
240
|
+
<span class="ruby-keyword kw">end</span>
|
241
|
+
</pre>
|
242
|
+
</div>
|
243
|
+
</div>
|
244
|
+
</div>
|
245
|
+
|
246
|
+
<div id="method-M000064" class="method-detail">
|
247
|
+
<a name="M000064"></a>
|
248
|
+
|
249
|
+
<div class="method-heading">
|
250
|
+
<a href="#M000064" class="method-signature">
|
251
|
+
<span class="method-name">close</span><span class="method-args">(out)</span>
|
252
|
+
</a>
|
253
|
+
</div>
|
254
|
+
|
255
|
+
<div class="method-description">
|
256
|
+
<p><a class="source-toggle" href="#"
|
257
|
+
onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
|
258
|
+
<div class="method-source-code" id="M000064-source">
|
259
|
+
<pre>
|
260
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 138</span>
|
261
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">close</span>(<span class="ruby-identifier">out</span>)
|
262
|
+
<span class="ruby-identifier">send_close</span>(<span class="ruby-identifier">out</span>)
|
263
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">recv_close</span>()
|
264
|
+
<span class="ruby-keyword kw">end</span>
|
265
|
+
</pre>
|
266
|
+
</div>
|
267
|
+
</div>
|
268
|
+
</div>
|
269
|
+
|
270
|
+
<div id="method-M000046" class="method-detail">
|
271
|
+
<a name="M000046"></a>
|
272
|
+
|
273
|
+
<div class="method-heading">
|
274
|
+
<a href="#M000046" class="method-signature">
|
275
|
+
<span class="method-name">create</span><span class="method-args">(path)</span>
|
276
|
+
</a>
|
277
|
+
</div>
|
278
|
+
|
279
|
+
<div class="method-description">
|
280
|
+
<p><a class="source-toggle" href="#"
|
281
|
+
onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
|
282
|
+
<div class="method-source-code" id="M000046-source">
|
283
|
+
<pre>
|
284
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 42</span>
|
285
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span>(<span class="ruby-identifier">path</span>)
|
286
|
+
<span class="ruby-identifier">send_create</span>(<span class="ruby-identifier">path</span>)
|
287
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">recv_create</span>()
|
288
|
+
<span class="ruby-keyword kw">end</span>
|
289
|
+
</pre>
|
290
|
+
</div>
|
291
|
+
</div>
|
292
|
+
</div>
|
293
|
+
|
294
|
+
<div id="method-M000049" class="method-detail">
|
295
|
+
<a name="M000049"></a>
|
296
|
+
|
297
|
+
<div class="method-heading">
|
298
|
+
<a href="#M000049" class="method-signature">
|
299
|
+
<span class="method-name">createFile</span><span class="method-args">(path, mode, overwrite, bufferSize, block_replication, blocksize)</span>
|
300
|
+
</a>
|
301
|
+
</div>
|
302
|
+
|
303
|
+
<div class="method-description">
|
304
|
+
<p><a class="source-toggle" href="#"
|
305
|
+
onclick="toggleCode('M000049-source');return false;">[Source]</a></p>
|
306
|
+
<div class="method-source-code" id="M000049-source">
|
307
|
+
<pre>
|
308
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 58</span>
|
309
|
+
<span class="ruby-keyword kw">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>)
|
310
|
+
<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>)
|
311
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">recv_createFile</span>()
|
312
|
+
<span class="ruby-keyword kw">end</span>
|
313
|
+
</pre>
|
314
|
+
</div>
|
315
|
+
</div>
|
316
|
+
</div>
|
317
|
+
|
318
|
+
<div id="method-M000076" class="method-detail">
|
319
|
+
<a name="M000076"></a>
|
320
|
+
|
321
|
+
<div class="method-heading">
|
322
|
+
<a href="#M000076" class="method-signature">
|
323
|
+
<span class="method-name">exists</span><span class="method-args">(path)</span>
|
324
|
+
</a>
|
325
|
+
</div>
|
326
|
+
|
327
|
+
<div class="method-description">
|
328
|
+
<p><a class="source-toggle" href="#"
|
329
|
+
onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
|
330
|
+
<div class="method-source-code" id="M000076-source">
|
331
|
+
<pre>
|
332
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 202</span>
|
333
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exists</span>(<span class="ruby-identifier">path</span>)
|
334
|
+
<span class="ruby-identifier">send_exists</span>(<span class="ruby-identifier">path</span>)
|
335
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">recv_exists</span>()
|
336
|
+
<span class="ruby-keyword kw">end</span>
|
337
|
+
</pre>
|
338
|
+
</div>
|
339
|
+
</div>
|
340
|
+
</div>
|
341
|
+
|
342
|
+
<div id="method-M000094" class="method-detail">
|
343
|
+
<a name="M000094"></a>
|
344
|
+
|
345
|
+
<div class="method-heading">
|
346
|
+
<a href="#M000094" class="method-signature">
|
347
|
+
<span class="method-name">getFileBlockLocations</span><span class="method-args">(path, start, length)</span>
|
348
|
+
</a>
|
349
|
+
</div>
|
350
|
+
|
351
|
+
<div class="method-description">
|
352
|
+
<p><a class="source-toggle" href="#"
|
353
|
+
onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
|
354
|
+
<div class="method-source-code" id="M000094-source">
|
355
|
+
<pre>
|
356
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 295</span>
|
357
|
+
<span class="ruby-keyword kw">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>)
|
358
|
+
<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>)
|
359
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">recv_getFileBlockLocations</span>()
|
360
|
+
<span class="ruby-keyword kw">end</span>
|
361
|
+
</pre>
|
362
|
+
</div>
|
363
|
+
</div>
|
364
|
+
</div>
|
365
|
+
|
366
|
+
<div id="method-M000082" class="method-detail">
|
367
|
+
<a name="M000082"></a>
|
368
|
+
|
369
|
+
<div class="method-heading">
|
370
|
+
<a href="#M000082" class="method-signature">
|
371
|
+
<span class="method-name">listStatus</span><span class="method-args">(path)</span>
|
372
|
+
</a>
|
373
|
+
</div>
|
374
|
+
|
375
|
+
<div class="method-description">
|
376
|
+
<p><a class="source-toggle" href="#"
|
377
|
+
onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
|
378
|
+
<div class="method-source-code" id="M000082-source">
|
379
|
+
<pre>
|
380
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 234</span>
|
381
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">listStatus</span>(<span class="ruby-identifier">path</span>)
|
382
|
+
<span class="ruby-identifier">send_listStatus</span>(<span class="ruby-identifier">path</span>)
|
383
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">recv_listStatus</span>()
|
384
|
+
<span class="ruby-keyword kw">end</span>
|
385
|
+
</pre>
|
386
|
+
</div>
|
387
|
+
</div>
|
388
|
+
</div>
|
389
|
+
|
390
|
+
<div id="method-M000073" class="method-detail">
|
391
|
+
<a name="M000073"></a>
|
392
|
+
|
393
|
+
<div class="method-heading">
|
394
|
+
<a href="#M000073" class="method-signature">
|
395
|
+
<span class="method-name">mkdirs</span><span class="method-args">(path)</span>
|
396
|
+
</a>
|
397
|
+
</div>
|
398
|
+
|
399
|
+
<div class="method-description">
|
400
|
+
<p><a class="source-toggle" href="#"
|
401
|
+
onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
|
402
|
+
<div class="method-source-code" id="M000073-source">
|
403
|
+
<pre>
|
404
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 186</span>
|
405
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">mkdirs</span>(<span class="ruby-identifier">path</span>)
|
406
|
+
<span class="ruby-identifier">send_mkdirs</span>(<span class="ruby-identifier">path</span>)
|
407
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">recv_mkdirs</span>()
|
408
|
+
<span class="ruby-keyword kw">end</span>
|
409
|
+
</pre>
|
410
|
+
</div>
|
411
|
+
</div>
|
412
|
+
</div>
|
413
|
+
|
414
|
+
<div id="method-M000052" class="method-detail">
|
415
|
+
<a name="M000052"></a>
|
416
|
+
|
417
|
+
<div class="method-heading">
|
418
|
+
<a href="#M000052" class="method-signature">
|
419
|
+
<span class="method-name">open</span><span class="method-args">(path)</span>
|
420
|
+
</a>
|
421
|
+
</div>
|
422
|
+
|
423
|
+
<div class="method-description">
|
424
|
+
<p><a class="source-toggle" href="#"
|
425
|
+
onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
|
426
|
+
<div class="method-source-code" id="M000052-source">
|
427
|
+
<pre>
|
428
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 74</span>
|
429
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">open</span>(<span class="ruby-identifier">path</span>)
|
430
|
+
<span class="ruby-identifier">send_open</span>(<span class="ruby-identifier">path</span>)
|
431
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">recv_open</span>()
|
432
|
+
<span class="ruby-keyword kw">end</span>
|
433
|
+
</pre>
|
434
|
+
</div>
|
435
|
+
</div>
|
436
|
+
</div>
|
437
|
+
|
438
|
+
<div id="method-M000061" class="method-detail">
|
439
|
+
<a name="M000061"></a>
|
440
|
+
|
441
|
+
<div class="method-heading">
|
442
|
+
<a href="#M000061" class="method-signature">
|
443
|
+
<span class="method-name">read</span><span class="method-args">(handle, offset, size)</span>
|
444
|
+
</a>
|
445
|
+
</div>
|
446
|
+
|
447
|
+
<div class="method-description">
|
448
|
+
<p><a class="source-toggle" href="#"
|
449
|
+
onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
|
450
|
+
<div class="method-source-code" id="M000061-source">
|
451
|
+
<pre>
|
452
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 122</span>
|
453
|
+
<span class="ruby-keyword kw">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>)
|
454
|
+
<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>)
|
455
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">recv_read</span>()
|
456
|
+
<span class="ruby-keyword kw">end</span>
|
457
|
+
</pre>
|
458
|
+
</div>
|
459
|
+
</div>
|
460
|
+
</div>
|
461
|
+
|
462
|
+
<div id="method-M000057" class="method-detail">
|
463
|
+
<a name="M000057"></a>
|
464
|
+
|
465
|
+
<div class="method-heading">
|
466
|
+
<a href="#M000057" class="method-signature">
|
467
|
+
<span class="method-name">recv_append</span><span class="method-args">()</span>
|
468
|
+
</a>
|
469
|
+
</div>
|
470
|
+
|
471
|
+
<div class="method-description">
|
472
|
+
<p><a class="source-toggle" href="#"
|
473
|
+
onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
|
474
|
+
<div class="method-source-code" id="M000057-source">
|
475
|
+
<pre>
|
476
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 99</span>
|
477
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_append</span>()
|
478
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Append_result</span>)
|
479
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
480
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
481
|
+
<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-value str">'append failed: unknown result'</span>)
|
482
|
+
<span class="ruby-keyword kw">end</span>
|
483
|
+
</pre>
|
484
|
+
</div>
|
485
|
+
</div>
|
486
|
+
</div>
|
487
|
+
|
488
|
+
<div id="method-M000087" class="method-detail">
|
489
|
+
<a name="M000087"></a>
|
490
|
+
|
491
|
+
<div class="method-heading">
|
492
|
+
<a href="#M000087" class="method-signature">
|
493
|
+
<span class="method-name">recv_chmod</span><span class="method-args">()</span>
|
494
|
+
</a>
|
495
|
+
</div>
|
496
|
+
|
497
|
+
<div class="method-description">
|
498
|
+
<p><a class="source-toggle" href="#"
|
499
|
+
onclick="toggleCode('M000087-source');return false;">[Source]</a></p>
|
500
|
+
<div class="method-source-code" id="M000087-source">
|
501
|
+
<pre>
|
502
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 259</span>
|
503
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_chmod</span>()
|
504
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Chmod_result</span>)
|
505
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
506
|
+
<span class="ruby-keyword kw">return</span>
|
507
|
+
<span class="ruby-keyword kw">end</span>
|
508
|
+
</pre>
|
509
|
+
</div>
|
510
|
+
</div>
|
511
|
+
</div>
|
512
|
+
|
513
|
+
<div id="method-M000090" class="method-detail">
|
514
|
+
<a name="M000090"></a>
|
515
|
+
|
516
|
+
<div class="method-heading">
|
517
|
+
<a href="#M000090" class="method-signature">
|
518
|
+
<span class="method-name">recv_chown</span><span class="method-args">()</span>
|
519
|
+
</a>
|
520
|
+
</div>
|
521
|
+
|
522
|
+
<div class="method-description">
|
523
|
+
<p><a class="source-toggle" href="#"
|
524
|
+
onclick="toggleCode('M000090-source');return false;">[Source]</a></p>
|
525
|
+
<div class="method-source-code" id="M000090-source">
|
526
|
+
<pre>
|
527
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 274</span>
|
528
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_chown</span>()
|
529
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Chown_result</span>)
|
530
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
531
|
+
<span class="ruby-keyword kw">return</span>
|
532
|
+
<span class="ruby-keyword kw">end</span>
|
533
|
+
</pre>
|
534
|
+
</div>
|
535
|
+
</div>
|
536
|
+
</div>
|
537
|
+
|
538
|
+
<div id="method-M000066" class="method-detail">
|
539
|
+
<a name="M000066"></a>
|
540
|
+
|
541
|
+
<div class="method-heading">
|
542
|
+
<a href="#M000066" class="method-signature">
|
543
|
+
<span class="method-name">recv_close</span><span class="method-args">()</span>
|
544
|
+
</a>
|
545
|
+
</div>
|
546
|
+
|
547
|
+
<div class="method-description">
|
548
|
+
<p><a class="source-toggle" href="#"
|
549
|
+
onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
|
550
|
+
<div class="method-source-code" id="M000066-source">
|
551
|
+
<pre>
|
552
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 147</span>
|
553
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_close</span>()
|
554
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Close_result</span>)
|
555
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
556
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
557
|
+
<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-value str">'close failed: unknown result'</span>)
|
558
|
+
<span class="ruby-keyword kw">end</span>
|
559
|
+
</pre>
|
560
|
+
</div>
|
561
|
+
</div>
|
562
|
+
</div>
|
563
|
+
|
564
|
+
<div id="method-M000048" class="method-detail">
|
565
|
+
<a name="M000048"></a>
|
566
|
+
|
567
|
+
<div class="method-heading">
|
568
|
+
<a href="#M000048" class="method-signature">
|
569
|
+
<span class="method-name">recv_create</span><span class="method-args">()</span>
|
570
|
+
</a>
|
571
|
+
</div>
|
572
|
+
|
573
|
+
<div class="method-description">
|
574
|
+
<p><a class="source-toggle" href="#"
|
575
|
+
onclick="toggleCode('M000048-source');return false;">[Source]</a></p>
|
576
|
+
<div class="method-source-code" id="M000048-source">
|
577
|
+
<pre>
|
578
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 51</span>
|
579
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_create</span>()
|
580
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Create_result</span>)
|
581
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
582
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
583
|
+
<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-value str">'create failed: unknown result'</span>)
|
584
|
+
<span class="ruby-keyword kw">end</span>
|
585
|
+
</pre>
|
586
|
+
</div>
|
587
|
+
</div>
|
588
|
+
</div>
|
589
|
+
|
590
|
+
<div id="method-M000051" class="method-detail">
|
591
|
+
<a name="M000051"></a>
|
592
|
+
|
593
|
+
<div class="method-heading">
|
594
|
+
<a href="#M000051" class="method-signature">
|
595
|
+
<span class="method-name">recv_createFile</span><span class="method-args">()</span>
|
596
|
+
</a>
|
597
|
+
</div>
|
598
|
+
|
599
|
+
<div class="method-description">
|
600
|
+
<p><a class="source-toggle" href="#"
|
601
|
+
onclick="toggleCode('M000051-source');return false;">[Source]</a></p>
|
602
|
+
<div class="method-source-code" id="M000051-source">
|
603
|
+
<pre>
|
604
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 67</span>
|
605
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_createFile</span>()
|
606
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">CreateFile_result</span>)
|
607
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
608
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
609
|
+
<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-value str">'createFile failed: unknown result'</span>)
|
610
|
+
<span class="ruby-keyword kw">end</span>
|
611
|
+
</pre>
|
612
|
+
</div>
|
613
|
+
</div>
|
614
|
+
</div>
|
615
|
+
|
616
|
+
<div id="method-M000078" class="method-detail">
|
617
|
+
<a name="M000078"></a>
|
618
|
+
|
619
|
+
<div class="method-heading">
|
620
|
+
<a href="#M000078" class="method-signature">
|
621
|
+
<span class="method-name">recv_exists</span><span class="method-args">()</span>
|
622
|
+
</a>
|
623
|
+
</div>
|
624
|
+
|
625
|
+
<div class="method-description">
|
626
|
+
<p><a class="source-toggle" href="#"
|
627
|
+
onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
|
628
|
+
<div class="method-source-code" id="M000078-source">
|
629
|
+
<pre>
|
630
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 211</span>
|
631
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_exists</span>()
|
632
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Exists_result</span>)
|
633
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
634
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
635
|
+
<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-value str">'exists failed: unknown result'</span>)
|
636
|
+
<span class="ruby-keyword kw">end</span>
|
637
|
+
</pre>
|
638
|
+
</div>
|
639
|
+
</div>
|
640
|
+
</div>
|
641
|
+
|
642
|
+
<div id="method-M000096" class="method-detail">
|
643
|
+
<a name="M000096"></a>
|
644
|
+
|
645
|
+
<div class="method-heading">
|
646
|
+
<a href="#M000096" class="method-signature">
|
647
|
+
<span class="method-name">recv_getFileBlockLocations</span><span class="method-args">()</span>
|
648
|
+
</a>
|
649
|
+
</div>
|
650
|
+
|
651
|
+
<div class="method-description">
|
652
|
+
<p><a class="source-toggle" href="#"
|
653
|
+
onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
|
654
|
+
<div class="method-source-code" id="M000096-source">
|
655
|
+
<pre>
|
656
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 304</span>
|
657
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_getFileBlockLocations</span>()
|
658
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">GetFileBlockLocations_result</span>)
|
659
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
660
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
661
|
+
<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-value str">'getFileBlockLocations failed: unknown result'</span>)
|
662
|
+
<span class="ruby-keyword kw">end</span>
|
663
|
+
</pre>
|
664
|
+
</div>
|
665
|
+
</div>
|
666
|
+
</div>
|
667
|
+
|
668
|
+
<div id="method-M000084" class="method-detail">
|
669
|
+
<a name="M000084"></a>
|
670
|
+
|
671
|
+
<div class="method-heading">
|
672
|
+
<a href="#M000084" class="method-signature">
|
673
|
+
<span class="method-name">recv_listStatus</span><span class="method-args">()</span>
|
674
|
+
</a>
|
675
|
+
</div>
|
676
|
+
|
677
|
+
<div class="method-description">
|
678
|
+
<p><a class="source-toggle" href="#"
|
679
|
+
onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
|
680
|
+
<div class="method-source-code" id="M000084-source">
|
681
|
+
<pre>
|
682
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 243</span>
|
683
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_listStatus</span>()
|
684
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">ListStatus_result</span>)
|
685
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
686
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
687
|
+
<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-value str">'listStatus failed: unknown result'</span>)
|
688
|
+
<span class="ruby-keyword kw">end</span>
|
689
|
+
</pre>
|
690
|
+
</div>
|
691
|
+
</div>
|
692
|
+
</div>
|
693
|
+
|
694
|
+
<div id="method-M000075" class="method-detail">
|
695
|
+
<a name="M000075"></a>
|
696
|
+
|
697
|
+
<div class="method-heading">
|
698
|
+
<a href="#M000075" class="method-signature">
|
699
|
+
<span class="method-name">recv_mkdirs</span><span class="method-args">()</span>
|
700
|
+
</a>
|
701
|
+
</div>
|
702
|
+
|
703
|
+
<div class="method-description">
|
704
|
+
<p><a class="source-toggle" href="#"
|
705
|
+
onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
|
706
|
+
<div class="method-source-code" id="M000075-source">
|
707
|
+
<pre>
|
708
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 195</span>
|
709
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_mkdirs</span>()
|
710
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Mkdirs_result</span>)
|
711
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
712
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
713
|
+
<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-value str">'mkdirs failed: unknown result'</span>)
|
714
|
+
<span class="ruby-keyword kw">end</span>
|
715
|
+
</pre>
|
716
|
+
</div>
|
717
|
+
</div>
|
718
|
+
</div>
|
719
|
+
|
720
|
+
<div id="method-M000054" class="method-detail">
|
721
|
+
<a name="M000054"></a>
|
722
|
+
|
723
|
+
<div class="method-heading">
|
724
|
+
<a href="#M000054" class="method-signature">
|
725
|
+
<span class="method-name">recv_open</span><span class="method-args">()</span>
|
726
|
+
</a>
|
727
|
+
</div>
|
728
|
+
|
729
|
+
<div class="method-description">
|
730
|
+
<p><a class="source-toggle" href="#"
|
731
|
+
onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
|
732
|
+
<div class="method-source-code" id="M000054-source">
|
733
|
+
<pre>
|
734
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 83</span>
|
735
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_open</span>()
|
736
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Open_result</span>)
|
737
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
738
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
739
|
+
<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-value str">'open failed: unknown result'</span>)
|
740
|
+
<span class="ruby-keyword kw">end</span>
|
741
|
+
</pre>
|
742
|
+
</div>
|
743
|
+
</div>
|
744
|
+
</div>
|
745
|
+
|
746
|
+
<div id="method-M000063" class="method-detail">
|
747
|
+
<a name="M000063"></a>
|
748
|
+
|
749
|
+
<div class="method-heading">
|
750
|
+
<a href="#M000063" class="method-signature">
|
751
|
+
<span class="method-name">recv_read</span><span class="method-args">()</span>
|
752
|
+
</a>
|
753
|
+
</div>
|
754
|
+
|
755
|
+
<div class="method-description">
|
756
|
+
<p><a class="source-toggle" href="#"
|
757
|
+
onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
|
758
|
+
<div class="method-source-code" id="M000063-source">
|
759
|
+
<pre>
|
760
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 131</span>
|
761
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_read</span>()
|
762
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Read_result</span>)
|
763
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
764
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
765
|
+
<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-value str">'read failed: unknown result'</span>)
|
766
|
+
<span class="ruby-keyword kw">end</span>
|
767
|
+
</pre>
|
768
|
+
</div>
|
769
|
+
</div>
|
770
|
+
</div>
|
771
|
+
|
772
|
+
<div id="method-M000072" class="method-detail">
|
773
|
+
<a name="M000072"></a>
|
774
|
+
|
775
|
+
<div class="method-heading">
|
776
|
+
<a href="#M000072" class="method-signature">
|
777
|
+
<span class="method-name">recv_rename</span><span class="method-args">()</span>
|
778
|
+
</a>
|
779
|
+
</div>
|
780
|
+
|
781
|
+
<div class="method-description">
|
782
|
+
<p><a class="source-toggle" href="#"
|
783
|
+
onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
|
784
|
+
<div class="method-source-code" id="M000072-source">
|
785
|
+
<pre>
|
786
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 179</span>
|
787
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_rename</span>()
|
788
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Rename_result</span>)
|
789
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
790
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
791
|
+
<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-value str">'rename failed: unknown result'</span>)
|
792
|
+
<span class="ruby-keyword kw">end</span>
|
793
|
+
</pre>
|
794
|
+
</div>
|
795
|
+
</div>
|
796
|
+
</div>
|
797
|
+
|
798
|
+
<div id="method-M000069" class="method-detail">
|
799
|
+
<a name="M000069"></a>
|
800
|
+
|
801
|
+
<div class="method-heading">
|
802
|
+
<a href="#M000069" class="method-signature">
|
803
|
+
<span class="method-name">recv_rm</span><span class="method-args">()</span>
|
804
|
+
</a>
|
805
|
+
</div>
|
806
|
+
|
807
|
+
<div class="method-description">
|
808
|
+
<p><a class="source-toggle" href="#"
|
809
|
+
onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
|
810
|
+
<div class="method-source-code" id="M000069-source">
|
811
|
+
<pre>
|
812
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 163</span>
|
813
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_rm</span>()
|
814
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Rm_result</span>)
|
815
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
816
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
817
|
+
<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-value str">'rm failed: unknown result'</span>)
|
818
|
+
<span class="ruby-keyword kw">end</span>
|
819
|
+
</pre>
|
820
|
+
</div>
|
821
|
+
</div>
|
822
|
+
</div>
|
823
|
+
|
824
|
+
<div id="method-M000042" class="method-detail">
|
825
|
+
<a name="M000042"></a>
|
826
|
+
|
827
|
+
<div class="method-heading">
|
828
|
+
<a href="#M000042" class="method-signature">
|
829
|
+
<span class="method-name">recv_setInactivityTimeoutPeriod</span><span class="method-args">()</span>
|
830
|
+
</a>
|
831
|
+
</div>
|
832
|
+
|
833
|
+
<div class="method-description">
|
834
|
+
<p><a class="source-toggle" href="#"
|
835
|
+
onclick="toggleCode('M000042-source');return false;">[Source]</a></p>
|
836
|
+
<div class="method-source-code" id="M000042-source">
|
837
|
+
<pre>
|
838
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 23</span>
|
839
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_setInactivityTimeoutPeriod</span>()
|
840
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">SetInactivityTimeoutPeriod_result</span>)
|
841
|
+
<span class="ruby-keyword kw">return</span>
|
842
|
+
<span class="ruby-keyword kw">end</span>
|
843
|
+
</pre>
|
844
|
+
</div>
|
845
|
+
</div>
|
846
|
+
</div>
|
847
|
+
|
848
|
+
<div id="method-M000093" class="method-detail">
|
849
|
+
<a name="M000093"></a>
|
850
|
+
|
851
|
+
<div class="method-heading">
|
852
|
+
<a href="#M000093" class="method-signature">
|
853
|
+
<span class="method-name">recv_setReplication</span><span class="method-args">()</span>
|
854
|
+
</a>
|
855
|
+
</div>
|
856
|
+
|
857
|
+
<div class="method-description">
|
858
|
+
<p><a class="source-toggle" href="#"
|
859
|
+
onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
|
860
|
+
<div class="method-source-code" id="M000093-source">
|
861
|
+
<pre>
|
862
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 289</span>
|
863
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_setReplication</span>()
|
864
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">SetReplication_result</span>)
|
865
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
866
|
+
<span class="ruby-keyword kw">return</span>
|
867
|
+
<span class="ruby-keyword kw">end</span>
|
868
|
+
</pre>
|
869
|
+
</div>
|
870
|
+
</div>
|
871
|
+
</div>
|
872
|
+
|
873
|
+
<div id="method-M000045" class="method-detail">
|
874
|
+
<a name="M000045"></a>
|
875
|
+
|
876
|
+
<div class="method-heading">
|
877
|
+
<a href="#M000045" class="method-signature">
|
878
|
+
<span class="method-name">recv_shutdown</span><span class="method-args">()</span>
|
879
|
+
</a>
|
880
|
+
</div>
|
881
|
+
|
882
|
+
<div class="method-description">
|
883
|
+
<p><a class="source-toggle" href="#"
|
884
|
+
onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
|
885
|
+
<div class="method-source-code" id="M000045-source">
|
886
|
+
<pre>
|
887
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 37</span>
|
888
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_shutdown</span>()
|
889
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Shutdown_result</span>)
|
890
|
+
<span class="ruby-keyword kw">return</span>
|
891
|
+
<span class="ruby-keyword kw">end</span>
|
892
|
+
</pre>
|
893
|
+
</div>
|
894
|
+
</div>
|
895
|
+
</div>
|
896
|
+
|
897
|
+
<div id="method-M000081" class="method-detail">
|
898
|
+
<a name="M000081"></a>
|
899
|
+
|
900
|
+
<div class="method-heading">
|
901
|
+
<a href="#M000081" class="method-signature">
|
902
|
+
<span class="method-name">recv_stat</span><span class="method-args">()</span>
|
903
|
+
</a>
|
904
|
+
</div>
|
905
|
+
|
906
|
+
<div class="method-description">
|
907
|
+
<p><a class="source-toggle" href="#"
|
908
|
+
onclick="toggleCode('M000081-source');return false;">[Source]</a></p>
|
909
|
+
<div class="method-source-code" id="M000081-source">
|
910
|
+
<pre>
|
911
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 227</span>
|
912
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_stat</span>()
|
913
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Stat_result</span>)
|
914
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
915
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
916
|
+
<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-value str">'stat failed: unknown result'</span>)
|
917
|
+
<span class="ruby-keyword kw">end</span>
|
918
|
+
</pre>
|
919
|
+
</div>
|
920
|
+
</div>
|
921
|
+
</div>
|
922
|
+
|
923
|
+
<div id="method-M000060" class="method-detail">
|
924
|
+
<a name="M000060"></a>
|
925
|
+
|
926
|
+
<div class="method-heading">
|
927
|
+
<a href="#M000060" class="method-signature">
|
928
|
+
<span class="method-name">recv_write</span><span class="method-args">()</span>
|
929
|
+
</a>
|
930
|
+
</div>
|
931
|
+
|
932
|
+
<div class="method-description">
|
933
|
+
<p><a class="source-toggle" href="#"
|
934
|
+
onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
|
935
|
+
<div class="method-source-code" id="M000060-source">
|
936
|
+
<pre>
|
937
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 115</span>
|
938
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">recv_write</span>()
|
939
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">receive_message</span>(<span class="ruby-constant">Write_result</span>)
|
940
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">success</span>.<span class="ruby-identifier">nil?</span>
|
941
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">result</span>.<span class="ruby-identifier">ouch</span>.<span class="ruby-identifier">nil?</span>
|
942
|
+
<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-value str">'write failed: unknown result'</span>)
|
943
|
+
<span class="ruby-keyword kw">end</span>
|
944
|
+
</pre>
|
945
|
+
</div>
|
946
|
+
</div>
|
947
|
+
</div>
|
948
|
+
|
949
|
+
<div id="method-M000070" class="method-detail">
|
950
|
+
<a name="M000070"></a>
|
951
|
+
|
952
|
+
<div class="method-heading">
|
953
|
+
<a href="#M000070" class="method-signature">
|
954
|
+
<span class="method-name">rename</span><span class="method-args">(path, dest)</span>
|
955
|
+
</a>
|
956
|
+
</div>
|
957
|
+
|
958
|
+
<div class="method-description">
|
959
|
+
<p><a class="source-toggle" href="#"
|
960
|
+
onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
|
961
|
+
<div class="method-source-code" id="M000070-source">
|
962
|
+
<pre>
|
963
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 170</span>
|
964
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rename</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">dest</span>)
|
965
|
+
<span class="ruby-identifier">send_rename</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">dest</span>)
|
966
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">recv_rename</span>()
|
967
|
+
<span class="ruby-keyword kw">end</span>
|
968
|
+
</pre>
|
969
|
+
</div>
|
970
|
+
</div>
|
971
|
+
</div>
|
972
|
+
|
973
|
+
<div id="method-M000067" class="method-detail">
|
974
|
+
<a name="M000067"></a>
|
975
|
+
|
976
|
+
<div class="method-heading">
|
977
|
+
<a href="#M000067" class="method-signature">
|
978
|
+
<span class="method-name">rm</span><span class="method-args">(path, recursive)</span>
|
979
|
+
</a>
|
980
|
+
</div>
|
981
|
+
|
982
|
+
<div class="method-description">
|
983
|
+
<p><a class="source-toggle" href="#"
|
984
|
+
onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
|
985
|
+
<div class="method-source-code" id="M000067-source">
|
986
|
+
<pre>
|
987
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 154</span>
|
988
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rm</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">recursive</span>)
|
989
|
+
<span class="ruby-identifier">send_rm</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">recursive</span>)
|
990
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">recv_rm</span>()
|
991
|
+
<span class="ruby-keyword kw">end</span>
|
992
|
+
</pre>
|
993
|
+
</div>
|
994
|
+
</div>
|
995
|
+
</div>
|
996
|
+
|
997
|
+
<div id="method-M000056" class="method-detail">
|
998
|
+
<a name="M000056"></a>
|
999
|
+
|
1000
|
+
<div class="method-heading">
|
1001
|
+
<a href="#M000056" class="method-signature">
|
1002
|
+
<span class="method-name">send_append</span><span class="method-args">(path)</span>
|
1003
|
+
</a>
|
1004
|
+
</div>
|
1005
|
+
|
1006
|
+
<div class="method-description">
|
1007
|
+
<p><a class="source-toggle" href="#"
|
1008
|
+
onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
|
1009
|
+
<div class="method-source-code" id="M000056-source">
|
1010
|
+
<pre>
|
1011
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 95</span>
|
1012
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_append</span>(<span class="ruby-identifier">path</span>)
|
1013
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'append'</span>, <span class="ruby-constant">Append_args</span>, <span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>)
|
1014
|
+
<span class="ruby-keyword kw">end</span>
|
1015
|
+
</pre>
|
1016
|
+
</div>
|
1017
|
+
</div>
|
1018
|
+
</div>
|
1019
|
+
|
1020
|
+
<div id="method-M000086" class="method-detail">
|
1021
|
+
<a name="M000086"></a>
|
1022
|
+
|
1023
|
+
<div class="method-heading">
|
1024
|
+
<a href="#M000086" class="method-signature">
|
1025
|
+
<span class="method-name">send_chmod</span><span class="method-args">(path, mode)</span>
|
1026
|
+
</a>
|
1027
|
+
</div>
|
1028
|
+
|
1029
|
+
<div class="method-description">
|
1030
|
+
<p><a class="source-toggle" href="#"
|
1031
|
+
onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
|
1032
|
+
<div class="method-source-code" id="M000086-source">
|
1033
|
+
<pre>
|
1034
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 255</span>
|
1035
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_chmod</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">mode</span>)
|
1036
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'chmod'</span>, <span class="ruby-constant">Chmod_args</span>, <span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">:mode</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode</span>)
|
1037
|
+
<span class="ruby-keyword kw">end</span>
|
1038
|
+
</pre>
|
1039
|
+
</div>
|
1040
|
+
</div>
|
1041
|
+
</div>
|
1042
|
+
|
1043
|
+
<div id="method-M000089" class="method-detail">
|
1044
|
+
<a name="M000089"></a>
|
1045
|
+
|
1046
|
+
<div class="method-heading">
|
1047
|
+
<a href="#M000089" class="method-signature">
|
1048
|
+
<span class="method-name">send_chown</span><span class="method-args">(path, owner, group)</span>
|
1049
|
+
</a>
|
1050
|
+
</div>
|
1051
|
+
|
1052
|
+
<div class="method-description">
|
1053
|
+
<p><a class="source-toggle" href="#"
|
1054
|
+
onclick="toggleCode('M000089-source');return false;">[Source]</a></p>
|
1055
|
+
<div class="method-source-code" id="M000089-source">
|
1056
|
+
<pre>
|
1057
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 270</span>
|
1058
|
+
<span class="ruby-keyword kw">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>)
|
1059
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'chown'</span>, <span class="ruby-constant">Chown_args</span>, <span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">:owner</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">owner</span>, <span class="ruby-identifier">:group</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">group</span>)
|
1060
|
+
<span class="ruby-keyword kw">end</span>
|
1061
|
+
</pre>
|
1062
|
+
</div>
|
1063
|
+
</div>
|
1064
|
+
</div>
|
1065
|
+
|
1066
|
+
<div id="method-M000065" class="method-detail">
|
1067
|
+
<a name="M000065"></a>
|
1068
|
+
|
1069
|
+
<div class="method-heading">
|
1070
|
+
<a href="#M000065" class="method-signature">
|
1071
|
+
<span class="method-name">send_close</span><span class="method-args">(out)</span>
|
1072
|
+
</a>
|
1073
|
+
</div>
|
1074
|
+
|
1075
|
+
<div class="method-description">
|
1076
|
+
<p><a class="source-toggle" href="#"
|
1077
|
+
onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
|
1078
|
+
<div class="method-source-code" id="M000065-source">
|
1079
|
+
<pre>
|
1080
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 143</span>
|
1081
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_close</span>(<span class="ruby-identifier">out</span>)
|
1082
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'close'</span>, <span class="ruby-constant">Close_args</span>, <span class="ruby-identifier">:out</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">out</span>)
|
1083
|
+
<span class="ruby-keyword kw">end</span>
|
1084
|
+
</pre>
|
1085
|
+
</div>
|
1086
|
+
</div>
|
1087
|
+
</div>
|
1088
|
+
|
1089
|
+
<div id="method-M000047" class="method-detail">
|
1090
|
+
<a name="M000047"></a>
|
1091
|
+
|
1092
|
+
<div class="method-heading">
|
1093
|
+
<a href="#M000047" class="method-signature">
|
1094
|
+
<span class="method-name">send_create</span><span class="method-args">(path)</span>
|
1095
|
+
</a>
|
1096
|
+
</div>
|
1097
|
+
|
1098
|
+
<div class="method-description">
|
1099
|
+
<p><a class="source-toggle" href="#"
|
1100
|
+
onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
|
1101
|
+
<div class="method-source-code" id="M000047-source">
|
1102
|
+
<pre>
|
1103
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 47</span>
|
1104
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_create</span>(<span class="ruby-identifier">path</span>)
|
1105
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'create'</span>, <span class="ruby-constant">Create_args</span>, <span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>)
|
1106
|
+
<span class="ruby-keyword kw">end</span>
|
1107
|
+
</pre>
|
1108
|
+
</div>
|
1109
|
+
</div>
|
1110
|
+
</div>
|
1111
|
+
|
1112
|
+
<div id="method-M000050" class="method-detail">
|
1113
|
+
<a name="M000050"></a>
|
1114
|
+
|
1115
|
+
<div class="method-heading">
|
1116
|
+
<a href="#M000050" class="method-signature">
|
1117
|
+
<span class="method-name">send_createFile</span><span class="method-args">(path, mode, overwrite, bufferSize, block_replication, blocksize)</span>
|
1118
|
+
</a>
|
1119
|
+
</div>
|
1120
|
+
|
1121
|
+
<div class="method-description">
|
1122
|
+
<p><a class="source-toggle" href="#"
|
1123
|
+
onclick="toggleCode('M000050-source');return false;">[Source]</a></p>
|
1124
|
+
<div class="method-source-code" id="M000050-source">
|
1125
|
+
<pre>
|
1126
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 63</span>
|
1127
|
+
<span class="ruby-keyword kw">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>)
|
1128
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'createFile'</span>, <span class="ruby-constant">CreateFile_args</span>, <span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">:mode</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode</span>, <span class="ruby-identifier">:overwrite</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">overwrite</span>, <span class="ruby-identifier">:bufferSize</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">bufferSize</span>, <span class="ruby-identifier">:block_replication</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">block_replication</span>, <span class="ruby-identifier">:blocksize</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">blocksize</span>)
|
1129
|
+
<span class="ruby-keyword kw">end</span>
|
1130
|
+
</pre>
|
1131
|
+
</div>
|
1132
|
+
</div>
|
1133
|
+
</div>
|
1134
|
+
|
1135
|
+
<div id="method-M000077" class="method-detail">
|
1136
|
+
<a name="M000077"></a>
|
1137
|
+
|
1138
|
+
<div class="method-heading">
|
1139
|
+
<a href="#M000077" class="method-signature">
|
1140
|
+
<span class="method-name">send_exists</span><span class="method-args">(path)</span>
|
1141
|
+
</a>
|
1142
|
+
</div>
|
1143
|
+
|
1144
|
+
<div class="method-description">
|
1145
|
+
<p><a class="source-toggle" href="#"
|
1146
|
+
onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
|
1147
|
+
<div class="method-source-code" id="M000077-source">
|
1148
|
+
<pre>
|
1149
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 207</span>
|
1150
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_exists</span>(<span class="ruby-identifier">path</span>)
|
1151
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'exists'</span>, <span class="ruby-constant">Exists_args</span>, <span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>)
|
1152
|
+
<span class="ruby-keyword kw">end</span>
|
1153
|
+
</pre>
|
1154
|
+
</div>
|
1155
|
+
</div>
|
1156
|
+
</div>
|
1157
|
+
|
1158
|
+
<div id="method-M000095" class="method-detail">
|
1159
|
+
<a name="M000095"></a>
|
1160
|
+
|
1161
|
+
<div class="method-heading">
|
1162
|
+
<a href="#M000095" class="method-signature">
|
1163
|
+
<span class="method-name">send_getFileBlockLocations</span><span class="method-args">(path, start, length)</span>
|
1164
|
+
</a>
|
1165
|
+
</div>
|
1166
|
+
|
1167
|
+
<div class="method-description">
|
1168
|
+
<p><a class="source-toggle" href="#"
|
1169
|
+
onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
|
1170
|
+
<div class="method-source-code" id="M000095-source">
|
1171
|
+
<pre>
|
1172
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 300</span>
|
1173
|
+
<span class="ruby-keyword kw">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>)
|
1174
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'getFileBlockLocations'</span>, <span class="ruby-constant">GetFileBlockLocations_args</span>, <span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">:start</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">start</span>, <span class="ruby-identifier">:length</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">length</span>)
|
1175
|
+
<span class="ruby-keyword kw">end</span>
|
1176
|
+
</pre>
|
1177
|
+
</div>
|
1178
|
+
</div>
|
1179
|
+
</div>
|
1180
|
+
|
1181
|
+
<div id="method-M000083" class="method-detail">
|
1182
|
+
<a name="M000083"></a>
|
1183
|
+
|
1184
|
+
<div class="method-heading">
|
1185
|
+
<a href="#M000083" class="method-signature">
|
1186
|
+
<span class="method-name">send_listStatus</span><span class="method-args">(path)</span>
|
1187
|
+
</a>
|
1188
|
+
</div>
|
1189
|
+
|
1190
|
+
<div class="method-description">
|
1191
|
+
<p><a class="source-toggle" href="#"
|
1192
|
+
onclick="toggleCode('M000083-source');return false;">[Source]</a></p>
|
1193
|
+
<div class="method-source-code" id="M000083-source">
|
1194
|
+
<pre>
|
1195
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 239</span>
|
1196
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_listStatus</span>(<span class="ruby-identifier">path</span>)
|
1197
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'listStatus'</span>, <span class="ruby-constant">ListStatus_args</span>, <span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>)
|
1198
|
+
<span class="ruby-keyword kw">end</span>
|
1199
|
+
</pre>
|
1200
|
+
</div>
|
1201
|
+
</div>
|
1202
|
+
</div>
|
1203
|
+
|
1204
|
+
<div id="method-M000074" class="method-detail">
|
1205
|
+
<a name="M000074"></a>
|
1206
|
+
|
1207
|
+
<div class="method-heading">
|
1208
|
+
<a href="#M000074" class="method-signature">
|
1209
|
+
<span class="method-name">send_mkdirs</span><span class="method-args">(path)</span>
|
1210
|
+
</a>
|
1211
|
+
</div>
|
1212
|
+
|
1213
|
+
<div class="method-description">
|
1214
|
+
<p><a class="source-toggle" href="#"
|
1215
|
+
onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
|
1216
|
+
<div class="method-source-code" id="M000074-source">
|
1217
|
+
<pre>
|
1218
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 191</span>
|
1219
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_mkdirs</span>(<span class="ruby-identifier">path</span>)
|
1220
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'mkdirs'</span>, <span class="ruby-constant">Mkdirs_args</span>, <span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>)
|
1221
|
+
<span class="ruby-keyword kw">end</span>
|
1222
|
+
</pre>
|
1223
|
+
</div>
|
1224
|
+
</div>
|
1225
|
+
</div>
|
1226
|
+
|
1227
|
+
<div id="method-M000053" class="method-detail">
|
1228
|
+
<a name="M000053"></a>
|
1229
|
+
|
1230
|
+
<div class="method-heading">
|
1231
|
+
<a href="#M000053" class="method-signature">
|
1232
|
+
<span class="method-name">send_open</span><span class="method-args">(path)</span>
|
1233
|
+
</a>
|
1234
|
+
</div>
|
1235
|
+
|
1236
|
+
<div class="method-description">
|
1237
|
+
<p><a class="source-toggle" href="#"
|
1238
|
+
onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
|
1239
|
+
<div class="method-source-code" id="M000053-source">
|
1240
|
+
<pre>
|
1241
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 79</span>
|
1242
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_open</span>(<span class="ruby-identifier">path</span>)
|
1243
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'open'</span>, <span class="ruby-constant">Open_args</span>, <span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>)
|
1244
|
+
<span class="ruby-keyword kw">end</span>
|
1245
|
+
</pre>
|
1246
|
+
</div>
|
1247
|
+
</div>
|
1248
|
+
</div>
|
1249
|
+
|
1250
|
+
<div id="method-M000062" class="method-detail">
|
1251
|
+
<a name="M000062"></a>
|
1252
|
+
|
1253
|
+
<div class="method-heading">
|
1254
|
+
<a href="#M000062" class="method-signature">
|
1255
|
+
<span class="method-name">send_read</span><span class="method-args">(handle, offset, size)</span>
|
1256
|
+
</a>
|
1257
|
+
</div>
|
1258
|
+
|
1259
|
+
<div class="method-description">
|
1260
|
+
<p><a class="source-toggle" href="#"
|
1261
|
+
onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
|
1262
|
+
<div class="method-source-code" id="M000062-source">
|
1263
|
+
<pre>
|
1264
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 127</span>
|
1265
|
+
<span class="ruby-keyword kw">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>)
|
1266
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'read'</span>, <span class="ruby-constant">Read_args</span>, <span class="ruby-identifier">:handle</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">handle</span>, <span class="ruby-identifier">:offset</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">offset</span>, <span class="ruby-identifier">:size</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">size</span>)
|
1267
|
+
<span class="ruby-keyword kw">end</span>
|
1268
|
+
</pre>
|
1269
|
+
</div>
|
1270
|
+
</div>
|
1271
|
+
</div>
|
1272
|
+
|
1273
|
+
<div id="method-M000071" class="method-detail">
|
1274
|
+
<a name="M000071"></a>
|
1275
|
+
|
1276
|
+
<div class="method-heading">
|
1277
|
+
<a href="#M000071" class="method-signature">
|
1278
|
+
<span class="method-name">send_rename</span><span class="method-args">(path, dest)</span>
|
1279
|
+
</a>
|
1280
|
+
</div>
|
1281
|
+
|
1282
|
+
<div class="method-description">
|
1283
|
+
<p><a class="source-toggle" href="#"
|
1284
|
+
onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
|
1285
|
+
<div class="method-source-code" id="M000071-source">
|
1286
|
+
<pre>
|
1287
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 175</span>
|
1288
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_rename</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">dest</span>)
|
1289
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'rename'</span>, <span class="ruby-constant">Rename_args</span>, <span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">:dest</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">dest</span>)
|
1290
|
+
<span class="ruby-keyword kw">end</span>
|
1291
|
+
</pre>
|
1292
|
+
</div>
|
1293
|
+
</div>
|
1294
|
+
</div>
|
1295
|
+
|
1296
|
+
<div id="method-M000068" class="method-detail">
|
1297
|
+
<a name="M000068"></a>
|
1298
|
+
|
1299
|
+
<div class="method-heading">
|
1300
|
+
<a href="#M000068" class="method-signature">
|
1301
|
+
<span class="method-name">send_rm</span><span class="method-args">(path, recursive)</span>
|
1302
|
+
</a>
|
1303
|
+
</div>
|
1304
|
+
|
1305
|
+
<div class="method-description">
|
1306
|
+
<p><a class="source-toggle" href="#"
|
1307
|
+
onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
|
1308
|
+
<div class="method-source-code" id="M000068-source">
|
1309
|
+
<pre>
|
1310
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 159</span>
|
1311
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_rm</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">recursive</span>)
|
1312
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'rm'</span>, <span class="ruby-constant">Rm_args</span>, <span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">:recursive</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">recursive</span>)
|
1313
|
+
<span class="ruby-keyword kw">end</span>
|
1314
|
+
</pre>
|
1315
|
+
</div>
|
1316
|
+
</div>
|
1317
|
+
</div>
|
1318
|
+
|
1319
|
+
<div id="method-M000041" class="method-detail">
|
1320
|
+
<a name="M000041"></a>
|
1321
|
+
|
1322
|
+
<div class="method-heading">
|
1323
|
+
<a href="#M000041" class="method-signature">
|
1324
|
+
<span class="method-name">send_setInactivityTimeoutPeriod</span><span class="method-args">(periodInSeconds)</span>
|
1325
|
+
</a>
|
1326
|
+
</div>
|
1327
|
+
|
1328
|
+
<div class="method-description">
|
1329
|
+
<p><a class="source-toggle" href="#"
|
1330
|
+
onclick="toggleCode('M000041-source');return false;">[Source]</a></p>
|
1331
|
+
<div class="method-source-code" id="M000041-source">
|
1332
|
+
<pre>
|
1333
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 19</span>
|
1334
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_setInactivityTimeoutPeriod</span>(<span class="ruby-identifier">periodInSeconds</span>)
|
1335
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'setInactivityTimeoutPeriod'</span>, <span class="ruby-constant">SetInactivityTimeoutPeriod_args</span>, <span class="ruby-identifier">:periodInSeconds</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">periodInSeconds</span>)
|
1336
|
+
<span class="ruby-keyword kw">end</span>
|
1337
|
+
</pre>
|
1338
|
+
</div>
|
1339
|
+
</div>
|
1340
|
+
</div>
|
1341
|
+
|
1342
|
+
<div id="method-M000092" class="method-detail">
|
1343
|
+
<a name="M000092"></a>
|
1344
|
+
|
1345
|
+
<div class="method-heading">
|
1346
|
+
<a href="#M000092" class="method-signature">
|
1347
|
+
<span class="method-name">send_setReplication</span><span class="method-args">(path, replication)</span>
|
1348
|
+
</a>
|
1349
|
+
</div>
|
1350
|
+
|
1351
|
+
<div class="method-description">
|
1352
|
+
<p><a class="source-toggle" href="#"
|
1353
|
+
onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
|
1354
|
+
<div class="method-source-code" id="M000092-source">
|
1355
|
+
<pre>
|
1356
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 285</span>
|
1357
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_setReplication</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">replication</span>)
|
1358
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'setReplication'</span>, <span class="ruby-constant">SetReplication_args</span>, <span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>, <span class="ruby-identifier">:replication</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">replication</span>)
|
1359
|
+
<span class="ruby-keyword kw">end</span>
|
1360
|
+
</pre>
|
1361
|
+
</div>
|
1362
|
+
</div>
|
1363
|
+
</div>
|
1364
|
+
|
1365
|
+
<div id="method-M000044" class="method-detail">
|
1366
|
+
<a name="M000044"></a>
|
1367
|
+
|
1368
|
+
<div class="method-heading">
|
1369
|
+
<a href="#M000044" class="method-signature">
|
1370
|
+
<span class="method-name">send_shutdown</span><span class="method-args">(status)</span>
|
1371
|
+
</a>
|
1372
|
+
</div>
|
1373
|
+
|
1374
|
+
<div class="method-description">
|
1375
|
+
<p><a class="source-toggle" href="#"
|
1376
|
+
onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
|
1377
|
+
<div class="method-source-code" id="M000044-source">
|
1378
|
+
<pre>
|
1379
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 33</span>
|
1380
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_shutdown</span>(<span class="ruby-identifier">status</span>)
|
1381
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'shutdown'</span>, <span class="ruby-constant">Shutdown_args</span>, <span class="ruby-identifier">:status</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">status</span>)
|
1382
|
+
<span class="ruby-keyword kw">end</span>
|
1383
|
+
</pre>
|
1384
|
+
</div>
|
1385
|
+
</div>
|
1386
|
+
</div>
|
1387
|
+
|
1388
|
+
<div id="method-M000080" class="method-detail">
|
1389
|
+
<a name="M000080"></a>
|
1390
|
+
|
1391
|
+
<div class="method-heading">
|
1392
|
+
<a href="#M000080" class="method-signature">
|
1393
|
+
<span class="method-name">send_stat</span><span class="method-args">(path)</span>
|
1394
|
+
</a>
|
1395
|
+
</div>
|
1396
|
+
|
1397
|
+
<div class="method-description">
|
1398
|
+
<p><a class="source-toggle" href="#"
|
1399
|
+
onclick="toggleCode('M000080-source');return false;">[Source]</a></p>
|
1400
|
+
<div class="method-source-code" id="M000080-source">
|
1401
|
+
<pre>
|
1402
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 223</span>
|
1403
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_stat</span>(<span class="ruby-identifier">path</span>)
|
1404
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'stat'</span>, <span class="ruby-constant">Stat_args</span>, <span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path</span>)
|
1405
|
+
<span class="ruby-keyword kw">end</span>
|
1406
|
+
</pre>
|
1407
|
+
</div>
|
1408
|
+
</div>
|
1409
|
+
</div>
|
1410
|
+
|
1411
|
+
<div id="method-M000059" class="method-detail">
|
1412
|
+
<a name="M000059"></a>
|
1413
|
+
|
1414
|
+
<div class="method-heading">
|
1415
|
+
<a href="#M000059" class="method-signature">
|
1416
|
+
<span class="method-name">send_write</span><span class="method-args">(handle, data)</span>
|
1417
|
+
</a>
|
1418
|
+
</div>
|
1419
|
+
|
1420
|
+
<div class="method-description">
|
1421
|
+
<p><a class="source-toggle" href="#"
|
1422
|
+
onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
|
1423
|
+
<div class="method-source-code" id="M000059-source">
|
1424
|
+
<pre>
|
1425
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 111</span>
|
1426
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">send_write</span>(<span class="ruby-identifier">handle</span>, <span class="ruby-identifier">data</span>)
|
1427
|
+
<span class="ruby-identifier">send_message</span>(<span class="ruby-value str">'write'</span>, <span class="ruby-constant">Write_args</span>, <span class="ruby-identifier">:handle</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">handle</span>, <span class="ruby-identifier">:data</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">data</span>)
|
1428
|
+
<span class="ruby-keyword kw">end</span>
|
1429
|
+
</pre>
|
1430
|
+
</div>
|
1431
|
+
</div>
|
1432
|
+
</div>
|
1433
|
+
|
1434
|
+
<div id="method-M000040" class="method-detail">
|
1435
|
+
<a name="M000040"></a>
|
1436
|
+
|
1437
|
+
<div class="method-heading">
|
1438
|
+
<a href="#M000040" class="method-signature">
|
1439
|
+
<span class="method-name">setInactivityTimeoutPeriod</span><span class="method-args">(periodInSeconds)</span>
|
1440
|
+
</a>
|
1441
|
+
</div>
|
1442
|
+
|
1443
|
+
<div class="method-description">
|
1444
|
+
<p><a class="source-toggle" href="#"
|
1445
|
+
onclick="toggleCode('M000040-source');return false;">[Source]</a></p>
|
1446
|
+
<div class="method-source-code" id="M000040-source">
|
1447
|
+
<pre>
|
1448
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 14</span>
|
1449
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setInactivityTimeoutPeriod</span>(<span class="ruby-identifier">periodInSeconds</span>)
|
1450
|
+
<span class="ruby-identifier">send_setInactivityTimeoutPeriod</span>(<span class="ruby-identifier">periodInSeconds</span>)
|
1451
|
+
<span class="ruby-identifier">recv_setInactivityTimeoutPeriod</span>()
|
1452
|
+
<span class="ruby-keyword kw">end</span>
|
1453
|
+
</pre>
|
1454
|
+
</div>
|
1455
|
+
</div>
|
1456
|
+
</div>
|
1457
|
+
|
1458
|
+
<div id="method-M000091" class="method-detail">
|
1459
|
+
<a name="M000091"></a>
|
1460
|
+
|
1461
|
+
<div class="method-heading">
|
1462
|
+
<a href="#M000091" class="method-signature">
|
1463
|
+
<span class="method-name">setReplication</span><span class="method-args">(path, replication)</span>
|
1464
|
+
</a>
|
1465
|
+
</div>
|
1466
|
+
|
1467
|
+
<div class="method-description">
|
1468
|
+
<p><a class="source-toggle" href="#"
|
1469
|
+
onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
|
1470
|
+
<div class="method-source-code" id="M000091-source">
|
1471
|
+
<pre>
|
1472
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 280</span>
|
1473
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setReplication</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">replication</span>)
|
1474
|
+
<span class="ruby-identifier">send_setReplication</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">replication</span>)
|
1475
|
+
<span class="ruby-identifier">recv_setReplication</span>()
|
1476
|
+
<span class="ruby-keyword kw">end</span>
|
1477
|
+
</pre>
|
1478
|
+
</div>
|
1479
|
+
</div>
|
1480
|
+
</div>
|
1481
|
+
|
1482
|
+
<div id="method-M000043" class="method-detail">
|
1483
|
+
<a name="M000043"></a>
|
1484
|
+
|
1485
|
+
<div class="method-heading">
|
1486
|
+
<a href="#M000043" class="method-signature">
|
1487
|
+
<span class="method-name">shutdown</span><span class="method-args">(status)</span>
|
1488
|
+
</a>
|
1489
|
+
</div>
|
1490
|
+
|
1491
|
+
<div class="method-description">
|
1492
|
+
<p><a class="source-toggle" href="#"
|
1493
|
+
onclick="toggleCode('M000043-source');return false;">[Source]</a></p>
|
1494
|
+
<div class="method-source-code" id="M000043-source">
|
1495
|
+
<pre>
|
1496
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 28</span>
|
1497
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">shutdown</span>(<span class="ruby-identifier">status</span>)
|
1498
|
+
<span class="ruby-identifier">send_shutdown</span>(<span class="ruby-identifier">status</span>)
|
1499
|
+
<span class="ruby-identifier">recv_shutdown</span>()
|
1500
|
+
<span class="ruby-keyword kw">end</span>
|
1501
|
+
</pre>
|
1502
|
+
</div>
|
1503
|
+
</div>
|
1504
|
+
</div>
|
1505
|
+
|
1506
|
+
<div id="method-M000079" class="method-detail">
|
1507
|
+
<a name="M000079"></a>
|
1508
|
+
|
1509
|
+
<div class="method-heading">
|
1510
|
+
<a href="#M000079" class="method-signature">
|
1511
|
+
<span class="method-name">stat</span><span class="method-args">(path)</span>
|
1512
|
+
</a>
|
1513
|
+
</div>
|
1514
|
+
|
1515
|
+
<div class="method-description">
|
1516
|
+
<p><a class="source-toggle" href="#"
|
1517
|
+
onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
|
1518
|
+
<div class="method-source-code" id="M000079-source">
|
1519
|
+
<pre>
|
1520
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 218</span>
|
1521
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stat</span>(<span class="ruby-identifier">path</span>)
|
1522
|
+
<span class="ruby-identifier">send_stat</span>(<span class="ruby-identifier">path</span>)
|
1523
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">recv_stat</span>()
|
1524
|
+
<span class="ruby-keyword kw">end</span>
|
1525
|
+
</pre>
|
1526
|
+
</div>
|
1527
|
+
</div>
|
1528
|
+
</div>
|
1529
|
+
|
1530
|
+
<div id="method-M000058" class="method-detail">
|
1531
|
+
<a name="M000058"></a>
|
1532
|
+
|
1533
|
+
<div class="method-heading">
|
1534
|
+
<a href="#M000058" class="method-signature">
|
1535
|
+
<span class="method-name">write</span><span class="method-args">(handle, data)</span>
|
1536
|
+
</a>
|
1537
|
+
</div>
|
1538
|
+
|
1539
|
+
<div class="method-description">
|
1540
|
+
<p><a class="source-toggle" href="#"
|
1541
|
+
onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
|
1542
|
+
<div class="method-source-code" id="M000058-source">
|
1543
|
+
<pre>
|
1544
|
+
<span class="ruby-comment cmt"># File lib/thrift/thrift_hadoop_file_system.rb, line 106</span>
|
1545
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write</span>(<span class="ruby-identifier">handle</span>, <span class="ruby-identifier">data</span>)
|
1546
|
+
<span class="ruby-identifier">send_write</span>(<span class="ruby-identifier">handle</span>, <span class="ruby-identifier">data</span>)
|
1547
|
+
<span class="ruby-keyword kw">return</span> <span class="ruby-identifier">recv_write</span>()
|
1548
|
+
<span class="ruby-keyword kw">end</span>
|
1549
|
+
</pre>
|
1550
|
+
</div>
|
1551
|
+
</div>
|
1552
|
+
</div>
|
1553
|
+
|
1554
|
+
|
1555
|
+
</div>
|
1556
|
+
|
1557
|
+
|
1558
|
+
</div>
|
1559
|
+
|
1560
|
+
|
1561
|
+
<div id="validator-badges">
|
1562
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
1563
|
+
</div>
|
1564
|
+
|
1565
|
+
</body>
|
1566
|
+
</html>
|