ruby-hdfs-cdh4 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/hdfs/hdfs.c +7 -7
- metadata +1 -1
data/ext/hdfs/hdfs.c
CHANGED
@@ -169,11 +169,11 @@ VALUE HDFS_File_System_alloc(VALUE klass) {
|
|
169
169
|
*
|
170
170
|
* options can have the following keys:
|
171
171
|
*
|
172
|
-
*
|
172
|
+
* * *local*: whether to use the local filesystem instead of HDFS
|
173
173
|
* (default: false)
|
174
|
-
*
|
175
|
-
*
|
176
|
-
*
|
174
|
+
* * *host*: hostname or IP address of a Hadoop NameNode (default: '0.0.0.0')
|
175
|
+
* * *port*: port through which to connect to Hadoop NameNode (default: 8020)
|
176
|
+
* * *user*: user to connect to filesystem as (default: current user)
|
177
177
|
*/
|
178
178
|
VALUE HDFS_File_System_initialize(int argc, VALUE* argv, VALUE self) {
|
179
179
|
VALUE options;
|
@@ -571,7 +571,7 @@ VALUE HDFS_File_System_capacity(VALUE self) {
|
|
571
571
|
|
572
572
|
/**
|
573
573
|
* call-seq:
|
574
|
-
* hdfs.
|
574
|
+
* hdfs.default_block_size -> retval
|
575
575
|
*
|
576
576
|
* Returns the default block size of this HDFS file system in bytes, raising a
|
577
577
|
* DFSException if this was unsuccessful.
|
@@ -883,7 +883,7 @@ VALUE HDFS_File_close(VALUE self) {
|
|
883
883
|
|
884
884
|
/**
|
885
885
|
* call-seq:
|
886
|
-
* file.read_open -> open_for_read
|
886
|
+
* file.read_open? -> open_for_read
|
887
887
|
*
|
888
888
|
* Returns True if this file is open for reading; otherwise returns False.
|
889
889
|
*/
|
@@ -899,7 +899,7 @@ VALUE HDFS_File_read_open(VALUE self) {
|
|
899
899
|
|
900
900
|
/**
|
901
901
|
* call-seq:
|
902
|
-
* file.write_open -> open_for_write
|
902
|
+
* file.write_open? -> open_for_write
|
903
903
|
*
|
904
904
|
* Returns True if this file is open for writing; otherwise returns False.
|
905
905
|
*/
|