public class DTOConverters
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Column |
fromDTO(ColumnDTO column)
Converts a ColumnDTO to a Column.
|
static Distribution |
fromDTO(DistributionDTO distributionDTO)
Converts a DistributionDTO to a Distribution.
|
static Index |
fromDTO(IndexDTO indexDTO)
Converts a IndexDTO to an Index.
|
static Partition |
fromDTO(PartitionDTO partitionDTO)
Converts a PartitionDTO to a Partition.
|
static Transform |
fromDTO(Partitioning partitioning)
Converts a partitioning DTO to a Transform.
|
static SortOrder |
fromDTO(SortOrderDTO sortOrderDTO)
Converts a SortOrderDTO to a SortOrder.
|
static Column[] |
fromDTOs(ColumnDTO[] columns)
Converts a ColumnDTO to a Column.
|
static Index[] |
fromDTOs(IndexDTO[] indexDTOS)
Converts an array of IndexDTOs to an array of Indexes.
|
static Transform[] |
fromDTOs(Partitioning[] partitioning)
Converts an array of Partitioning DTOs to an array of Transforms.
|
static SortOrder[] |
fromDTOs(SortOrderDTO[] sortOrderDTO)
Converts an array of SortOrderDTOs to an array of SortOrders.
|
static Expression |
fromFunctionArg(FunctionArg arg)
Converts a FunctionArg DTO to an Expression.
|
static Expression[] |
fromFunctionArgs(FunctionArg[] args)
Converts a FunctionArg DTO to an Expression.
|
static AuditDTO |
toDTO(Audit audit)
|
static CatalogDTO |
toDTO(Catalog catalog)
Converts a
Catalog to a CatalogDTO . |
static ColumnDTO |
toDTO(Column column)
|
static DistributionDTO |
toDTO(Distribution distribution)
Converts a Distribution implementation to a DistributionDTO.
|
static IndexDTO |
toDTO(Index index)
Converts an index implementation to an IndexDTO.
|
static MetalakeDTO |
toDTO(Metalake metalake)
Converts a
Metalake to a MetalakeDTO . |
static PartitionDTO |
toDTO(Partition partition)
Converts a
Partition to a PartitionDTO . |
static SchemaDTO |
toDTO(Schema schema)
|
static SortOrderDTO |
toDTO(SortOrder sortOrder)
Converts a SortOrder implementation to a SortOrderDTO.
|
static TableDTO |
toDTO(Table table)
Converts a table implementation to a
TableDTO . |
static Partitioning |
toDTO(Transform transform)
Converts a Transform implementation to a Partitioning DTO.
|
static ColumnDTO[] |
toDTOs(Column[] columns)
Converts an array of Columns to an array of ColumnDTOs.
|
static IndexDTO[] |
toDTOs(Index[] indexes)
Converts an array of Indexes to an array of IndexDTOs.
|
static PartitionDTO[] |
toDTOs(Partition[] partitions)
Converts an array of Partitions to an array of PartitionDTOs.
|
static SortOrderDTO[] |
toDTOs(SortOrder[] sortOrders)
Converts an array of SortOrders to an array of SortOrderDTOs.
|
static Partitioning[] |
toDTOs(Transform[] transforms)
Converts an array of Transforms to an array of Partitioning DTOs.
|
static FunctionArg |
toFunctionArg(Expression expression)
Converts a Expression to an FunctionArg DTO.
|
static FunctionArg[] |
toFunctionArg(Expression[] expressions)
Converts an array of Expressions to an array of FunctionArg DTOs.
|
public static AuditDTO toDTO(Audit audit)
audit
- The audit.public static MetalakeDTO toDTO(Metalake metalake)
Metalake
to a MetalakeDTO
.metalake
- The metalake.public static PartitionDTO toDTO(Partition partition)
Partition
to a PartitionDTO
.partition
- The partition.public static CatalogDTO toDTO(Catalog catalog)
Catalog
to a CatalogDTO
.catalog
- The catalog.public static SchemaDTO toDTO(Schema schema)
schema
- The schema.public static ColumnDTO toDTO(Column column)
column
- The column.public static TableDTO toDTO(Table table)
TableDTO
.table
- The table implementation.public static DistributionDTO toDTO(Distribution distribution)
distribution
- The distribution implementation.public static SortOrderDTO toDTO(SortOrder sortOrder)
sortOrder
- The sort order implementation.public static Partitioning toDTO(Transform transform)
transform
- The transform implementation.public static IndexDTO toDTO(Index index)
index
- The index implementation.public static FunctionArg toFunctionArg(Expression expression)
expression
- The expression to be converted.public static FunctionArg[] toFunctionArg(Expression[] expressions)
expressions
- The expressions to be converted.public static ColumnDTO[] toDTOs(Column[] columns)
columns
- The columns to be converted.public static SortOrderDTO[] toDTOs(SortOrder[] sortOrders)
sortOrders
- The sort orders to be converted.public static Partitioning[] toDTOs(Transform[] transforms)
transforms
- The transforms to be converted.public static IndexDTO[] toDTOs(Index[] indexes)
indexes
- The indexes to be converted.public static PartitionDTO[] toDTOs(Partition[] partitions)
partitions
- The partitions to be converted.public static Distribution fromDTO(DistributionDTO distributionDTO)
distributionDTO
- The distribution DTO.public static Expression[] fromFunctionArgs(FunctionArg[] args)
args
- The function argument DTOs to be converted.public static Expression fromFunctionArg(FunctionArg arg)
arg
- The function argument DTO to be converted.public static Index fromDTO(IndexDTO indexDTO)
indexDTO
- The Index DTO to be converted.public static Index[] fromDTOs(IndexDTO[] indexDTOS)
indexDTOS
- The Index DTOs to be converted.public static Partition fromDTO(PartitionDTO partitionDTO)
partitionDTO
- The partition DTO to be converted.public static SortOrder fromDTO(SortOrderDTO sortOrderDTO)
sortOrderDTO
- The sort order DTO to be converted.public static SortOrder[] fromDTOs(SortOrderDTO[] sortOrderDTO)
sortOrderDTO
- The sort order DTOs to be converted.public static Transform[] fromDTOs(Partitioning[] partitioning)
partitioning
- The partitioning DTOs to be converted.public static Column[] fromDTOs(ColumnDTO[] columns)
columns
- The column DTO to be converted.public static Column fromDTO(ColumnDTO column)
column
- The column DTO to be converted.public static Transform fromDTO(Partitioning partitioning)
partitioning
- The partitioning DTO to be converted.