(absolute-path path & [config])
Returns the absolute path
.
Returns the absolute `path`.
(buffered-reader path)
Open path
and return a BufferedReader.
Open `path` and return a BufferedReader.
(buffered-writer path)
Open path
and return a BufferedWriter.
Open `path` and return a BufferedWriter.
(compression-codec path)
Returns the compression codec for path.
Returns the compression codec for path.
(configuration)
Returns the Hadoop configuration.
Returns the Hadoop configuration.
(copy-from-local-file source destination & {:keys [overwrite]})
Copy the local file from source
to destination
.
Copy the local file from `source` to `destination`.
(copy-matching pattern destination & {:keys [header delete-source overwrite]})
Copy all files matching pattern
to the output file destination
.
Copy all files matching `pattern` to the output file `destination`.
(copy-merge source-dir destination & {:keys [header delete-source overwrite]})
Copy all files in source-dir
to the output file destination
.
Copy all files in `source-dir` to the output file `destination`.
(copy-to-local-file source destination)
Copy the file from source
to destination
on the local filesystem.
Copy the file from `source` to `destination` on the local filesystem.
(crc-filename filename)
Returns the filename to the CRC file of filename
.
Returns the filename to the CRC file of `filename`.
(crc-path filename)
Returns the path to the CRC file of filename
.
Returns the path to the CRC file of `filename`.
(delete path & [recursive])
Delete path
recursively.
Delete `path` recursively.
(directory? path)
Returns true if path
is a directory, otherwise false.
Returns true if `path` is a directory, otherwise false.
(exists? path)
Returns true if path
exists, otherwise false.
Returns true if `path` exists, otherwise false.
(file-size path)
Returns the file size of path
.
Returns the file size of `path`.
(file-status path)
Returns a file status object that represents the path.
Returns a file status object that represents the path.
(file? path)
Returns true if path
is a file, otherwise false.
Returns true if `path` is a file, otherwise false.
(filesystem path & [config])
Returns the Hadoop filesystem from path
.
Returns the Hadoop filesystem from `path`.
(glob-paths pattern)
Return a seq of Path objects that match pattern
and are not checksum files.
Return a seq of Path objects that match `pattern` and are not checksum files.
(glob-status pattern)
Return all the files that match pattern
and are not checksum files.
Return all the files that match `pattern` and are not checksum files.
(input-stream path)
Open path
and return a FSDataInputStream.
Open `path` and return a FSDataInputStream.
(list-file-status path & [recursively])
List the status of all files in directory.
List the status of all files in directory.
(make-directory path)
Make the given path and all non-existent parents into directories.
Make the given path and all non-existent parents into directories.
(make-parents path & [permissions])
Make the given path and all non-existent parents into directories.
Make the given path and all non-existent parents into directories.
(make-path arg)
(make-path parent child)
(make-path parent child & more)
Returns a org.apache.hadoop.fs.Path, passing each arg to make-path. Multiple-arg versions treat the first argument as parent and subsequent args as children relative to the parent.
Returns a org.apache.hadoop.fs.Path, passing each arg to make-path. Multiple-arg versions treat the first argument as parent and subsequent args as children relative to the parent.
(output-stream path)
Open path
and return a FSDataOutputStream.
Open `path` and return a FSDataOutputStream.
(part-file-seq directory & [recursively])
Returns a seq of part files in directory
Returns a seq of part files in `directory`
(path? arg)
Returns true if arg
is a Path, otherwise false.
Returns true if `arg` is a Path, otherwise false.
(print-writer path)
Open path
and return a BufferedWriter.
Open `path` and return a BufferedWriter.
(qualified-path path & [config])
Returns the qualified path
.
Returns the qualified `path`.
(rename source destination & [overwrite])
Renames source
to Path destination
.
Renames `source` to Path `destination`.
(sequence-file-seq path)
Returns the concatenation of the content of all sequence files that
match pattern
as a lazy seq.
Returns the concatenation of the content of all sequence files that match `pattern` as a lazy seq.
(sequence-file-seq* path)
Returns the content of the sequence file at path
as a lazy seq.
Returns the content of the sequence file at `path` as a lazy seq.
(sequence-file-writer path key val)
Returns a sequence file writer for key
and val
classes.
Returns a sequence file writer for `key` and `val` classes.
(with-fs-tmp [fs-sym & tmp-syms] & body)
Generates unique, temporary path names as subfolders of <root>/cascalog_reserved.
<root> by default will be '/tmp', but you can configure it via the
JobConf property cascalog.io/tmp-dir-property
.
Generates unique, temporary path names as subfolders of <root>/cascalog_reserved. <root> by default will be '/tmp', but you can configure it via the JobConf property `cascalog.io/tmp-dir-property`.
(write-lines output lines & [transform-fn])
Write lines
to output
.
Write `lines` to `output`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close