getl.hive.opts.HiveSkewedSpec.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of getl Show documentation
Show all versions of getl Show documentation
GETL - based package in Groovy, which automates the work of loading and transforming data
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