DataFormat

class oci.data_integration.models.DataFormat(**kwargs)

Bases: object

The data format object.

Attributes

TYPE_AVRO A constant which can be used with the type property of a DataFormat.
TYPE_CSV A constant which can be used with the type property of a DataFormat.
TYPE_JSON A constant which can be used with the type property of a DataFormat.
TYPE_ORC A constant which can be used with the type property of a DataFormat.
TYPE_PARQUET A constant which can be used with the type property of a DataFormat.
TYPE_XML A constant which can be used with the type property of a DataFormat.
compression_config Gets the compression_config of this DataFormat.
format_attribute Gets the format_attribute of this DataFormat.
type Gets the type of this DataFormat.

Methods

__init__(**kwargs) Initializes a new DataFormat object with values from keyword arguments.
TYPE_AVRO = 'AVRO'

A constant which can be used with the type property of a DataFormat. This constant has a value of “AVRO”

TYPE_CSV = 'CSV'

A constant which can be used with the type property of a DataFormat. This constant has a value of “CSV”

TYPE_JSON = 'JSON'

A constant which can be used with the type property of a DataFormat. This constant has a value of “JSON”

TYPE_ORC = 'ORC'

A constant which can be used with the type property of a DataFormat. This constant has a value of “ORC”

TYPE_PARQUET = 'PARQUET'

A constant which can be used with the type property of a DataFormat. This constant has a value of “PARQUET”

TYPE_XML = 'XML'

A constant which can be used with the type property of a DataFormat. This constant has a value of “XML”

__init__(**kwargs)

Initializes a new DataFormat object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • format_attribute (oci.data_integration.models.AbstractFormatAttribute) – The value to assign to the format_attribute property of this DataFormat.
  • type (str) – The value to assign to the type property of this DataFormat. Allowed values for this property are: “XML”, “JSON”, “CSV”, “ORC”, “PARQUET”, “AVRO”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • compression_config (oci.data_integration.models.Compression) – The value to assign to the compression_config property of this DataFormat.
compression_config

Gets the compression_config of this DataFormat.

Returns:The compression_config of this DataFormat.
Return type:oci.data_integration.models.Compression
format_attribute

Gets the format_attribute of this DataFormat.

Returns:The format_attribute of this DataFormat.
Return type:oci.data_integration.models.AbstractFormatAttribute
type

Gets the type of this DataFormat. type

Allowed values for this property are: “XML”, “JSON”, “CSV”, “ORC”, “PARQUET”, “AVRO”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The type of this DataFormat.
Return type:str