public static class FileSetProperties.Builder extends ExploreProperties.AbstractBuilder<FileSetProperties.Builder>
Modifier and Type | Method and Description |
---|---|
FileSetProperties.Builder |
setBasePath(String path)
Sets the base path for the file dataset.
|
FileSetProperties.Builder |
setDataExternal(boolean isExternal)
Configures whether the files (the data) in this fileset are managed externally.
|
FileSetProperties.Builder |
setEnableExploreOnCreate(boolean enabled)
Enable explore for this dataset.
|
FileSetProperties.Builder |
setExploreFormat(String format)
Set the format for the Hive table.
|
FileSetProperties.Builder |
setExploreFormatProperty(String name,
String value)
Set a property for the table format.
|
FileSetProperties.Builder |
setExploreInputFormat(Class<?> inputFormat)
Set the input format used to create the Hive table.
|
FileSetProperties.Builder |
setExploreInputFormat(String className)
Set the input format used to create the Hive table.
|
FileSetProperties.Builder |
setExploreOutputFormat(Class<?> outputFormat)
Set the output format used to create the Hive table.
|
FileSetProperties.Builder |
setExploreOutputFormat(String className)
Set the output format used to create the Hive table.
|
FileSetProperties.Builder |
setExploreSchema(String schema)
Set the schema for the Hive table.
|
FileSetProperties.Builder |
setFileGroup(String group)
Set the name of the group for files and directories
|
FileSetProperties.Builder |
setFilePermissions(String permissions)
Set the default permissions for files and directories
|
FileSetProperties.Builder |
setInputFormat(Class<?> inputFormatClass)
Sets the input format of the file dataset.
|
FileSetProperties.Builder |
setInputFormat(String className)
Sets the input format of the file dataset.
|
FileSetProperties.Builder |
setInputProperty(String name,
String value)
Sets a property for the input format of the file dataset.
|
FileSetProperties.Builder |
setOutputFormat(Class<?> outputFormatClass)
Sets the output format of the file dataset.
|
FileSetProperties.Builder |
setOutputFormat(String className)
Sets the output format of the file dataset.
|
FileSetProperties.Builder |
setOutputProperty(String name,
String value)
Sets a property for the output format of the file dataset.
|
FileSetProperties.Builder |
setPossessExisting(boolean possessExisting)
Configures whether the file set should take possession of an existing base location.
|
FileSetProperties.Builder |
setSerDe(Class<?> serde)
Set the class name of the SerDe used to create the Hive table.
|
FileSetProperties.Builder |
setSerDe(String className)
Set the class name of the SerDe used to create the Hive table.
|
FileSetProperties.Builder |
setTableProperty(String name,
String value)
Set a table property to be added to the Hive table.
|
FileSetProperties.Builder |
setUseExisting(boolean useExisting)
Configures whether the file set should use an existing base location.
|
setExploreDatabaseName, setExploreTableName
add, add, add, addAll, build, setDescription
public FileSetProperties.Builder setBasePath(String path)
public FileSetProperties.Builder setDataExternal(boolean isExternal)
public FileSetProperties.Builder setUseExisting(boolean useExisting)
public FileSetProperties.Builder setPossessExisting(boolean possessExisting)
public FileSetProperties.Builder setOutputFormat(Class<?> outputFormatClass)
public FileSetProperties.Builder setOutputFormat(String className)
public FileSetProperties.Builder setInputFormat(Class<?> inputFormatClass)
public FileSetProperties.Builder setInputFormat(String className)
public FileSetProperties.Builder setInputProperty(String name, String value)
public FileSetProperties.Builder setOutputProperty(String name, String value)
public FileSetProperties.Builder setEnableExploreOnCreate(boolean enabled)
public FileSetProperties.Builder setExploreFormat(String format)
format
- currently, only "text" and "csv" are supported.public FileSetProperties.Builder setExploreSchema(String schema)
schema
- a Hive schema string of the form: field type, ...public FileSetProperties.Builder setExploreFormatProperty(String name, String value)
setExploreFormat(java.lang.String)
.public FileSetProperties.Builder setSerDe(String className)
public FileSetProperties.Builder setSerDe(Class<?> serde)
public FileSetProperties.Builder setExploreInputFormat(String className)
public FileSetProperties.Builder setExploreInputFormat(Class<?> inputFormat)
public FileSetProperties.Builder setExploreOutputFormat(String className)
public FileSetProperties.Builder setExploreOutputFormat(Class<?> outputFormat)
public FileSetProperties.Builder setTableProperty(String name, String value)
@Beta public FileSetProperties.Builder setFilePermissions(String permissions)
@Beta public FileSetProperties.Builder setFileGroup(String group)
Copyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.