pyarrow.dataset.OrcFileFormat#

class pyarrow.dataset.OrcFileFormat#

Bases: pyarrow._dataset.FileFormat

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

equals(self, OrcFileFormat other)

inspect(self, file[, filesystem])

Infer the schema of a file.

make_fragment(self, file[, filesystem])

Make a FileFragment from a given file.

make_write_options(self)

Attributes

default_extname

default_fragment_scan_options

default_extname#
default_fragment_scan_options#
equals(self, OrcFileFormat other)#
inspect(self, file, filesystem=None)#

Infer the schema of a file.

Parameters
filefile-like object, path-like or str

The file or file path to infer a schema from.

filesystemFilesystem, optional

If filesystem is given, file must be a string and specifies the path of the file to read from the filesystem.

Returns
schemaSchema

The schema inferred from the file

make_fragment(self, file, filesystem=None, Expression partition_expression=None)#

Make a FileFragment from a given file.

Parameters
filefile-like object, path-like or str

The file or file path to make a fragment from.

filesystemFilesystem, optional

If filesystem is given, file must be a string and specifies the path of the file to read from the filesystem.

partition_expressionExpression

The filter expression.

make_write_options(self)#