public class FileTableConfigBuilder extends AbstractTableConfigBuilder<FileTableConfigBuilder,FileTableConfig>
Constructor and Description |
---|
FileTableConfigBuilder() |
FileTableConfigBuilder(Format format) |
Modifier and Type | Method and Description |
---|---|
FileTableConfigBuilder |
addUri(java.lang.String uri)
Adds a unified resource identifier (URI) pointing to a file with table data.
|
FileTableConfigBuilder |
copyFrom(FileTableConfig tableConfig)
Sets this builder with all the values of the given table config.
|
FileTableConfigBuilder |
detectGzip(boolean detectGzip)
Defines if gzip detection is enabled or not
|
FileTableConfigBuilder |
hasHeader(boolean hasHeader)
Defines if file has a header or not
|
FileTableConfigBuilder |
setFormat(Format format)
Sets the file format.
|
FileTableConfigBuilder |
setSeparator(java.lang.String separator)
Sets the separator.
|
FileTableConfigBuilder |
setUris(java.lang.Iterable<java.lang.String> uris)
Sets the unified resource identifier (URI) list pointing to multiple files with table data.
|
FileTableConfigBuilder |
setUris(java.lang.String... uris)
Sets the unified resource identifier (URI) list pointing to multiple files with table data.
|
FileTableConfigBuilder |
toTableConfigBuilder() |
addAttribute, addProperty, addProperty, build, clearProperties, copyBaseFrom, createKeyMapping, loadLabels, removeProperty, setDateFormat, setDestinationVertexTable, setErrorHandlingOnMissedPropKey, setErrorHandlingOnMissingVertex, setErrorHandlingOnPropConversion, setErrorHandlingOnTypeMismatch, setIdType, setLocalDateFormat, setName, setSourceVertexTable, setStrictMode, setTableLabel, setTimeFormat, setTimestampFormat, setTimestampWithTimezoneFormat, setTimeWithTimezoneFormat
public FileTableConfigBuilder()
public FileTableConfigBuilder(Format format)
public FileTableConfigBuilder addUri(java.lang.String uri)
uri
- the uripublic FileTableConfigBuilder copyFrom(FileTableConfig tableConfig)
AbstractTableConfigBuilder
copyFrom
in class AbstractTableConfigBuilder<FileTableConfigBuilder,FileTableConfig>
tableConfig
- the table configuration from which to copy the valuespublic FileTableConfigBuilder detectGzip(boolean detectGzip)
detectGzip
- the flag to setpublic FileTableConfigBuilder hasHeader(boolean hasHeader)
hasHeader
- the flag to setpublic FileTableConfigBuilder setFormat(Format format)
format
- the formatpublic FileTableConfigBuilder setSeparator(java.lang.String separator)
separator
- the separatorpublic FileTableConfigBuilder setUris(java.lang.Iterable<java.lang.String> uris)
uris
- the list of urispublic FileTableConfigBuilder setUris(java.lang.String... uris)
uris
- the array of urispublic FileTableConfigBuilder toTableConfigBuilder()
Copyright © 2016, 2019, Oracle and/or its affiliates. All Rights Reserved.