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

getl.hive.opts.HiveSkewedSpec.groovy Maven / Gradle / Ivy

Go to download

GETL - based package in Groovy, which automates the work of loading and transforming data

There is a newer version: 4.18.9
Show newest version
package getl.hive.opts

import getl.lang.opts.BaseSpec
import groovy.transform.InheritConstructors

/**
 * Hive skewed options for creating table
 * @author Alexsey Konstantinov
 *
 */
@InheritConstructors
class HiveSkewedSpec extends BaseSpec {
    @Override
    protected void initSpec() {
        super.initSpec()
        if (params.by == null) params.by = [] as List
        if (params.on == null) params.on = [] as List
    }

    /**
     * List of "by" columns
     */
    List getBy() { params.by as List }
    /**
     * List of "by" columns
     */
    void setBy(List value) {
        by.clear()
        if (value != null) by.addAll(value)
    }

    /**
     * List of "on" columns
     */
    List getOn() { params.on as List}
    /**
     * List of "on" columns
     */
    void setOn(List value) {
        on.clear()
        if (value != null) on.addAll(value)
    }

    /**
     * Stored data as directories
     */
    Boolean getStoredAsDirectories() { params.storedAsDirectories as Boolean }
    /**
     * Stored data as directories
     */
    void setStoredAsDirectories(Boolean value) { saveParamValue('storedAsDirectories', value) }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy