Skip to content

Commit

Permalink
Generated from 89e4b3f2e4d5f61efd6d0a1bdacfc1db7a912c85 (#6067)
Browse files Browse the repository at this point in the history
[DataFactory]Add CompressionCodec property for ORC Dataset
  • Loading branch information
AutorestCI authored and ArcturusZhang committed Oct 17, 2019
1 parent 64e859f commit cf6bcae
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
11 changes: 11 additions & 0 deletions profiles/latest/datafactory/mgmt/datafactory/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,14 @@ const (
OraclePartitionOptionPhysicalPartitionsOfTable OraclePartitionOption = original.OraclePartitionOptionPhysicalPartitionsOfTable
)

type OrcCompressionCodec = original.OrcCompressionCodec

const (
OrcCompressionCodecNone OrcCompressionCodec = original.OrcCompressionCodecNone
OrcCompressionCodecSnappy OrcCompressionCodec = original.OrcCompressionCodecSnappy
OrcCompressionCodecZlib OrcCompressionCodec = original.OrcCompressionCodecZlib
)

type ParameterType = original.ParameterType

const (
Expand Down Expand Up @@ -2310,6 +2318,9 @@ func PossibleODataAuthenticationTypeValues() []ODataAuthenticationType {
func PossibleOraclePartitionOptionValues() []OraclePartitionOption {
return original.PossibleOraclePartitionOptionValues()
}
func PossibleOrcCompressionCodecValues() []OrcCompressionCodec {
return original.PossibleOrcCompressionCodecValues()
}
func PossibleParameterTypeValues() []ParameterType {
return original.PossibleParameterTypeValues()
}
Expand Down
11 changes: 11 additions & 0 deletions profiles/preview/datafactory/mgmt/datafactory/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,14 @@ const (
OraclePartitionOptionPhysicalPartitionsOfTable OraclePartitionOption = original.OraclePartitionOptionPhysicalPartitionsOfTable
)

type OrcCompressionCodec = original.OrcCompressionCodec

const (
OrcCompressionCodecNone OrcCompressionCodec = original.OrcCompressionCodecNone
OrcCompressionCodecSnappy OrcCompressionCodec = original.OrcCompressionCodecSnappy
OrcCompressionCodecZlib OrcCompressionCodec = original.OrcCompressionCodecZlib
)

type ParameterType = original.ParameterType

const (
Expand Down Expand Up @@ -2310,6 +2318,9 @@ func PossibleODataAuthenticationTypeValues() []ODataAuthenticationType {
func PossibleOraclePartitionOptionValues() []OraclePartitionOption {
return original.PossibleOraclePartitionOptionValues()
}
func PossibleOrcCompressionCodecValues() []OrcCompressionCodec {
return original.PossibleOrcCompressionCodecValues()
}
func PossibleParameterTypeValues() []ParameterType {
return original.PossibleParameterTypeValues()
}
Expand Down
19 changes: 19 additions & 0 deletions services/datafactory/mgmt/2018-06-01/datafactory/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,23 @@ func PossibleOraclePartitionOptionValues() []OraclePartitionOption {
return []OraclePartitionOption{OraclePartitionOptionDynamicRange, OraclePartitionOptionNone, OraclePartitionOptionPhysicalPartitionsOfTable}
}

// OrcCompressionCodec enumerates the values for orc compression codec.
type OrcCompressionCodec string

const (
// OrcCompressionCodecNone ...
OrcCompressionCodecNone OrcCompressionCodec = "none"
// OrcCompressionCodecSnappy ...
OrcCompressionCodecSnappy OrcCompressionCodec = "snappy"
// OrcCompressionCodecZlib ...
OrcCompressionCodecZlib OrcCompressionCodec = "zlib"
)

// PossibleOrcCompressionCodecValues returns an array of possible values for the OrcCompressionCodec const type.
func PossibleOrcCompressionCodecValues() []OrcCompressionCodec {
return []OrcCompressionCodec{OrcCompressionCodecNone, OrcCompressionCodecSnappy, OrcCompressionCodecZlib}
}

// ParameterType enumerates the values for parameter type.
type ParameterType string

Expand Down Expand Up @@ -149818,6 +149835,8 @@ func (od *OrcDataset) UnmarshalJSON(body []byte) error {
type OrcDatasetTypeProperties struct {
// Location - The location of the ORC data storage.
Location *DatasetLocation `json:"location,omitempty"`
// OrcCompressionCodec - Possible values include: 'OrcCompressionCodecNone', 'OrcCompressionCodecZlib', 'OrcCompressionCodecSnappy'
OrcCompressionCodec OrcCompressionCodec `json:"orcCompressionCodec,omitempty"`
}

// OrcFormat the data stored in Optimized Row Columnar (ORC) format.
Expand Down

0 comments on commit cf6bcae

Please sign in to comment.