Class: AWSCDK::S3Tables::CfnTable::IcebergSortFieldProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
s3_tables/cfn_table.rb

Overview

A sort field specification for an Iceberg table.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(direction:, null_order:, source_id:, transform:) ⇒ IcebergSortFieldProperty

Returns a new instance of IcebergSortFieldProperty.

Parameters:

  • direction (String)

    Sort direction (asc or desc).

  • null_order (String)

    Null value ordering (nulls-first or nulls-last).

  • source_id (Numeric)

    The source column ID to sort on.

  • transform (String)

    The sort transform function.



992
993
994
995
996
997
998
999
1000
1001
# File 's3_tables/cfn_table.rb', line 992

def initialize(direction:, null_order:, source_id:, transform:)
  @direction = direction
  Jsii::Type.check_type(@direction, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "direction")
  @null_order = null_order
  Jsii::Type.check_type(@null_order, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nullOrder")
  @source_id = source_id
  Jsii::Type.check_type(@source_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "sourceId")
  @transform = transform
  Jsii::Type.check_type(@transform, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "transform")
end

Instance Attribute Details

#directionString (readonly)

Sort direction (asc or desc).



1007
1008
1009
# File 's3_tables/cfn_table.rb', line 1007

def direction
  @direction
end

#null_orderString (readonly)

Null value ordering (nulls-first or nulls-last).



1012
1013
1014
# File 's3_tables/cfn_table.rb', line 1012

def null_order
  @null_order
end

#source_idNumeric (readonly)

The source column ID to sort on.



1017
1018
1019
# File 's3_tables/cfn_table.rb', line 1017

def source_id
  @source_id
end

#transformString (readonly)

The sort transform function.



1022
1023
1024
# File 's3_tables/cfn_table.rb', line 1022

def transform
  @transform
end

Class Method Details

.jsii_propertiesObject



1024
1025
1026
1027
1028
1029
1030
1031
# File 's3_tables/cfn_table.rb', line 1024

def self.jsii_properties
  {
    :direction => "direction",
    :null_order => "nullOrder",
    :source_id => "sourceId",
    :transform => "transform",
  }
end

Instance Method Details

#to_jsiiObject



1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
# File 's3_tables/cfn_table.rb', line 1033

def to_jsii
  result = {}
  result.merge!({
    "direction" => @direction,
    "nullOrder" => @null_order,
    "sourceId" => @source_id,
    "transform" => @transform,
  })
  result.compact
end