|
def | __init__ (self) |
|
def | open (self, hdfs_uri, path_spec=None) |
|
def | close (self) |
|
def | read (self, size=None) |
|
def | seek (self, offset, whence=os.SEEK_SET) |
|
def | tell (self) |
|
◆ __init__()
def plaso.tarzan.file.hdfs_file.HdfsFileObject.__init__ |
( |
|
self | ) |
|
Initializes a HDFS file object.
◆ close()
def plaso.tarzan.file.hdfs_file.HdfsFileObject.close |
( |
|
self | ) |
|
◆ open()
def plaso.tarzan.file.hdfs_file.HdfsFileObject.open |
( |
|
self, |
|
|
|
hdfs_uri, |
|
|
|
path_spec = None |
|
) |
| |
Open a HDFS file identified by the HDFS URI and optionally also by its path.
:param hdfs_uri: the HDFS URI of the file to open
:param path_spec: the path of the file to open
◆ read()
def plaso.tarzan.file.hdfs_file.HdfsFileObject.read |
( |
|
self, |
|
|
|
size = None |
|
) |
| |
Reads a byte string from the file-like object at the current offset.
The function will read a byte string of the specified size or all of the remaining data
if no size was specified.
:param size: number of bytes to read, where None is all remaining data
:return: data read
Reimplemented from plaso.tarzan.file.generic_file.FileObject.
◆ seek()
def plaso.tarzan.file.hdfs_file.HdfsFileObject.seek |
( |
|
self, |
|
|
|
offset, |
|
|
|
whence = os.SEEK_SET |
|
) |
| |
Set a position in the file for future reading or writing.
:param offset: the position as an offset
:param whence: from where the position should be reached (the beginning, the end, etc.)
Reimplemented from plaso.tarzan.file.generic_file.FileObject.
◆ tell()
def plaso.tarzan.file.hdfs_file.HdfsFileObject.tell |
( |
|
self | ) |
|
Get a current position in the file.
:return: the current position (an offset)
◆ hdfs
plaso.tarzan.file.hdfs_file.HdfsFileObject.hdfs |
◆ input_stream
plaso.tarzan.file.hdfs_file.HdfsFileObject.input_stream |
◆ path
plaso.tarzan.file.hdfs_file.HdfsFileObject.path |
The documentation for this class was generated from the following file:
- /home/rychly/repos/pyspark-plaso/src/plaso/tarzan/file/hdfs_file.py