All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.glue.outputs.PartitionStorageDescriptor Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.glue.outputs;

import com.pulumi.aws.glue.outputs.PartitionStorageDescriptorColumn;
import com.pulumi.aws.glue.outputs.PartitionStorageDescriptorSerDeInfo;
import com.pulumi.aws.glue.outputs.PartitionStorageDescriptorSkewedInfo;
import com.pulumi.aws.glue.outputs.PartitionStorageDescriptorSortColumn;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class PartitionStorageDescriptor {
    /**
     * @return A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
     * 
     */
    private @Nullable List bucketColumns;
    /**
     * @return A list of the Columns in the table.
     * 
     */
    private @Nullable List columns;
    /**
     * @return True if the data in the table is compressed, or False if not.
     * 
     */
    private @Nullable Boolean compressed;
    /**
     * @return The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format.
     * 
     */
    private @Nullable String inputFormat;
    /**
     * @return The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.
     * 
     */
    private @Nullable String location;
    /**
     * @return Must be specified if the table contains any dimension columns.
     * 
     */
    private @Nullable Integer numberOfBuckets;
    /**
     * @return The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format.
     * 
     */
    private @Nullable String outputFormat;
    /**
     * @return User-supplied properties in key-value form.
     * 
     */
    private @Nullable Map parameters;
    /**
     * @return Serialization/deserialization (SerDe) information.
     * 
     */
    private @Nullable PartitionStorageDescriptorSerDeInfo serDeInfo;
    /**
     * @return Information about values that appear very frequently in a column (skewed values).
     * 
     */
    private @Nullable PartitionStorageDescriptorSkewedInfo skewedInfo;
    /**
     * @return A list of Order objects specifying the sort order of each bucket in the table.
     * 
     */
    private @Nullable List sortColumns;
    /**
     * @return True if the table data is stored in subdirectories, or False if not.
     * 
     */
    private @Nullable Boolean storedAsSubDirectories;

    private PartitionStorageDescriptor() {}
    /**
     * @return A list of reducer grouping columns, clustering columns, and bucketing columns in the table.
     * 
     */
    public List bucketColumns() {
        return this.bucketColumns == null ? List.of() : this.bucketColumns;
    }
    /**
     * @return A list of the Columns in the table.
     * 
     */
    public List columns() {
        return this.columns == null ? List.of() : this.columns;
    }
    /**
     * @return True if the data in the table is compressed, or False if not.
     * 
     */
    public Optional compressed() {
        return Optional.ofNullable(this.compressed);
    }
    /**
     * @return The input format: SequenceFileInputFormat (binary), or TextInputFormat, or a custom format.
     * 
     */
    public Optional inputFormat() {
        return Optional.ofNullable(this.inputFormat);
    }
    /**
     * @return The physical location of the table. By default this takes the form of the warehouse location, followed by the database location in the warehouse, followed by the table name.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return Must be specified if the table contains any dimension columns.
     * 
     */
    public Optional numberOfBuckets() {
        return Optional.ofNullable(this.numberOfBuckets);
    }
    /**
     * @return The output format: SequenceFileOutputFormat (binary), or IgnoreKeyTextOutputFormat, or a custom format.
     * 
     */
    public Optional outputFormat() {
        return Optional.ofNullable(this.outputFormat);
    }
    /**
     * @return User-supplied properties in key-value form.
     * 
     */
    public Map parameters() {
        return this.parameters == null ? Map.of() : this.parameters;
    }
    /**
     * @return Serialization/deserialization (SerDe) information.
     * 
     */
    public Optional serDeInfo() {
        return Optional.ofNullable(this.serDeInfo);
    }
    /**
     * @return Information about values that appear very frequently in a column (skewed values).
     * 
     */
    public Optional skewedInfo() {
        return Optional.ofNullable(this.skewedInfo);
    }
    /**
     * @return A list of Order objects specifying the sort order of each bucket in the table.
     * 
     */
    public List sortColumns() {
        return this.sortColumns == null ? List.of() : this.sortColumns;
    }
    /**
     * @return True if the table data is stored in subdirectories, or False if not.
     * 
     */
    public Optional storedAsSubDirectories() {
        return Optional.ofNullable(this.storedAsSubDirectories);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(PartitionStorageDescriptor defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List bucketColumns;
        private @Nullable List columns;
        private @Nullable Boolean compressed;
        private @Nullable String inputFormat;
        private @Nullable String location;
        private @Nullable Integer numberOfBuckets;
        private @Nullable String outputFormat;
        private @Nullable Map parameters;
        private @Nullable PartitionStorageDescriptorSerDeInfo serDeInfo;
        private @Nullable PartitionStorageDescriptorSkewedInfo skewedInfo;
        private @Nullable List sortColumns;
        private @Nullable Boolean storedAsSubDirectories;
        public Builder() {}
        public Builder(PartitionStorageDescriptor defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.bucketColumns = defaults.bucketColumns;
    	      this.columns = defaults.columns;
    	      this.compressed = defaults.compressed;
    	      this.inputFormat = defaults.inputFormat;
    	      this.location = defaults.location;
    	      this.numberOfBuckets = defaults.numberOfBuckets;
    	      this.outputFormat = defaults.outputFormat;
    	      this.parameters = defaults.parameters;
    	      this.serDeInfo = defaults.serDeInfo;
    	      this.skewedInfo = defaults.skewedInfo;
    	      this.sortColumns = defaults.sortColumns;
    	      this.storedAsSubDirectories = defaults.storedAsSubDirectories;
        }

        @CustomType.Setter
        public Builder bucketColumns(@Nullable List bucketColumns) {

            this.bucketColumns = bucketColumns;
            return this;
        }
        public Builder bucketColumns(String... bucketColumns) {
            return bucketColumns(List.of(bucketColumns));
        }
        @CustomType.Setter
        public Builder columns(@Nullable List columns) {

            this.columns = columns;
            return this;
        }
        public Builder columns(PartitionStorageDescriptorColumn... columns) {
            return columns(List.of(columns));
        }
        @CustomType.Setter
        public Builder compressed(@Nullable Boolean compressed) {

            this.compressed = compressed;
            return this;
        }
        @CustomType.Setter
        public Builder inputFormat(@Nullable String inputFormat) {

            this.inputFormat = inputFormat;
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder numberOfBuckets(@Nullable Integer numberOfBuckets) {

            this.numberOfBuckets = numberOfBuckets;
            return this;
        }
        @CustomType.Setter
        public Builder outputFormat(@Nullable String outputFormat) {

            this.outputFormat = outputFormat;
            return this;
        }
        @CustomType.Setter
        public Builder parameters(@Nullable Map parameters) {

            this.parameters = parameters;
            return this;
        }
        @CustomType.Setter
        public Builder serDeInfo(@Nullable PartitionStorageDescriptorSerDeInfo serDeInfo) {

            this.serDeInfo = serDeInfo;
            return this;
        }
        @CustomType.Setter
        public Builder skewedInfo(@Nullable PartitionStorageDescriptorSkewedInfo skewedInfo) {

            this.skewedInfo = skewedInfo;
            return this;
        }
        @CustomType.Setter
        public Builder sortColumns(@Nullable List sortColumns) {

            this.sortColumns = sortColumns;
            return this;
        }
        public Builder sortColumns(PartitionStorageDescriptorSortColumn... sortColumns) {
            return sortColumns(List.of(sortColumns));
        }
        @CustomType.Setter
        public Builder storedAsSubDirectories(@Nullable Boolean storedAsSubDirectories) {

            this.storedAsSubDirectories = storedAsSubDirectories;
            return this;
        }
        public PartitionStorageDescriptor build() {
            final var _resultValue = new PartitionStorageDescriptor();
            _resultValue.bucketColumns = bucketColumns;
            _resultValue.columns = columns;
            _resultValue.compressed = compressed;
            _resultValue.inputFormat = inputFormat;
            _resultValue.location = location;
            _resultValue.numberOfBuckets = numberOfBuckets;
            _resultValue.outputFormat = outputFormat;
            _resultValue.parameters = parameters;
            _resultValue.serDeInfo = serDeInfo;
            _resultValue.skewedInfo = skewedInfo;
            _resultValue.sortColumns = sortColumns;
            _resultValue.storedAsSubDirectories = storedAsSubDirectories;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy