FileSystemSource Class

public final class FileSystemSource
extends CopySource

A copy activity file system source.

Constructor Summary

Constructor Description
FileSystemSource()

Creates an instance of FileSystemSource class.

Method Summary

Modifier and Type Method and Description
Object additionalColumns()

Get the additionalColumns property: Specifies the additional columns to be added to source data.

static FileSystemSource fromJson(JsonReader jsonReader)

Reads an instance of FileSystemSource from the JsonReader.

Object recursive()

Get the recursive property: If true, files under the folder path will be read recursively.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Copy source type.

void validate()

Validates the instance.

FileSystemSource withAdditionalColumns(Object additionalColumns)

Set the additionalColumns property: Specifies the additional columns to be added to source data.

FileSystemSource withDisableMetricsCollection(Object disableMetricsCollection)

Set the disableMetricsCollection property: If true, disable data store metrics collection.

FileSystemSource withMaxConcurrentConnections(Object maxConcurrentConnections)

Set the maxConcurrentConnections property: The maximum concurrent connection count for the source data store.

FileSystemSource withRecursive(Object recursive)

Set the recursive property: If true, files under the folder path will be read recursively.

FileSystemSource withSourceRetryCount(Object sourceRetryCount)

Set the sourceRetryCount property: Source retry count.

FileSystemSource withSourceRetryWait(Object sourceRetryWait)

Set the sourceRetryWait property: Source retry wait.

Methods inherited from CopySource

Methods inherited from java.lang.Object

Constructor Details

FileSystemSource

public FileSystemSource()

Creates an instance of FileSystemSource class.

Method Details

additionalColumns

public Object additionalColumns()

Get the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects).

Returns:

the additionalColumns value.

fromJson

public static FileSystemSource fromJson(JsonReader jsonReader)

Reads an instance of FileSystemSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of FileSystemSource if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the FileSystemSource.

recursive

public Object recursive()

Get the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean).

Returns:

the recursive value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

FileSystemSource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Copy source type.

Overrides:

FileSystemSource.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

FileSystemSource.validate()

withAdditionalColumns

public FileSystemSource withAdditionalColumns(Object additionalColumns)

Set the additionalColumns property: Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects).

Parameters:

additionalColumns - the additionalColumns value to set.

Returns:

the FileSystemSource object itself.

withDisableMetricsCollection

public FileSystemSource withDisableMetricsCollection(Object disableMetricsCollection)

Set the disableMetricsCollection property: If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).

Overrides:

FileSystemSource.withDisableMetricsCollection(Object disableMetricsCollection)

Parameters:

disableMetricsCollection

withMaxConcurrentConnections

public FileSystemSource withMaxConcurrentConnections(Object maxConcurrentConnections)

Set the maxConcurrentConnections property: The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer).

Overrides:

FileSystemSource.withMaxConcurrentConnections(Object maxConcurrentConnections)

Parameters:

maxConcurrentConnections

withRecursive

public FileSystemSource withRecursive(Object recursive)

Set the recursive property: If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType boolean).

Parameters:

recursive - the recursive value to set.

Returns:

the FileSystemSource object itself.

withSourceRetryCount

public FileSystemSource withSourceRetryCount(Object sourceRetryCount)

Set the sourceRetryCount property: Source retry count. Type: integer (or Expression with resultType integer).

Overrides:

FileSystemSource.withSourceRetryCount(Object sourceRetryCount)

Parameters:

sourceRetryCount

withSourceRetryWait

public FileSystemSource withSourceRetryWait(Object sourceRetryWait)

Set the sourceRetryWait property: Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).

Overrides:

FileSystemSource.withSourceRetryWait(Object sourceRetryWait)

Parameters:

sourceRetryWait

Applies to