db_dbfs_read | R Documentation |
Return the contents of a file.
db_dbfs_read(
path,
offset = 0,
length = NULL,
host = db_host(),
token = db_token(),
perform_request = TRUE
)
path |
The path of the new file. The path should be the absolute DBFS
path (for example |
offset |
Offset to read from in bytes. |
length |
Number of bytes to read starting from the offset. This has a limit of 1 MB, and a default value of 0.5 MB. |
host |
Databricks workspace URL, defaults to calling |
token |
Databricks workspace token, defaults to calling |
perform_request |
If |
If offset + length exceeds the number of bytes in a file, reads contents until the end of file.
If the file does not exist, this call throws an exception with
RESOURCE_DOES_NOT_EXIST.
If the path is a directory, the read length is negative, or if the offset
is negative, this call throws an exception with INVALID_PARAMETER_VALUE.
If the read length exceeds 1 MB, this call throws an exception with
MAX_READ_SIZE_EXCEEDED.
Other DBFS API:
db_dbfs_add_block()
,
db_dbfs_close()
,
db_dbfs_create()
,
db_dbfs_delete()
,
db_dbfs_get_status()
,
db_dbfs_list()
,
db_dbfs_mkdirs()
,
db_dbfs_move()
,
db_dbfs_put()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.