BinarySource Class

public final class BinarySource
extends CopySource

A copy activity Binary source.

Constructor Summary

Constructor Description
BinarySource()

Creates an instance of BinarySource class.

Method Summary

Modifier and Type Method and Description
BinaryReadSettings formatSettings()

Get the formatSettings property: Binary format settings.

static BinarySource fromJson(JsonReader jsonReader)

Reads an instance of BinarySource from the JsonReader.

StoreReadSettings storeSettings()

Get the storeSettings property: Binary store settings.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Copy source type.

void validate()

Validates the instance.

BinarySource withDisableMetricsCollection(Object disableMetricsCollection)

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

BinarySource withFormatSettings(BinaryReadSettings formatSettings)

Set the formatSettings property: Binary format settings.

BinarySource withMaxConcurrentConnections(Object maxConcurrentConnections)

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

BinarySource withSourceRetryCount(Object sourceRetryCount)

Set the sourceRetryCount property: Source retry count.

BinarySource withSourceRetryWait(Object sourceRetryWait)

Set the sourceRetryWait property: Source retry wait.

BinarySource withStoreSettings(StoreReadSettings storeSettings)

Set the storeSettings property: Binary store settings.

Methods inherited from CopySource

Methods inherited from java.lang.Object

Constructor Details

BinarySource

public BinarySource()

Creates an instance of BinarySource class.

Method Details

formatSettings

public BinaryReadSettings formatSettings()

Get the formatSettings property: Binary format settings.

Returns:

the formatSettings value.

fromJson

public static BinarySource fromJson(JsonReader jsonReader)

Reads an instance of BinarySource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BinarySource 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 BinarySource.

storeSettings

public StoreReadSettings storeSettings()

Get the storeSettings property: Binary store settings.

Returns:

the storeSettings value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BinarySource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Copy source type.

Overrides:

BinarySource.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

BinarySource.validate()

withDisableMetricsCollection

public BinarySource 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:

BinarySource.withDisableMetricsCollection(Object disableMetricsCollection)

Parameters:

disableMetricsCollection

withFormatSettings

public BinarySource withFormatSettings(BinaryReadSettings formatSettings)

Set the formatSettings property: Binary format settings.

Parameters:

formatSettings - the formatSettings value to set.

Returns:

the BinarySource object itself.

withMaxConcurrentConnections

public BinarySource 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:

BinarySource.withMaxConcurrentConnections(Object maxConcurrentConnections)

Parameters:

maxConcurrentConnections

withSourceRetryCount

public BinarySource withSourceRetryCount(Object sourceRetryCount)

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

Overrides:

BinarySource.withSourceRetryCount(Object sourceRetryCount)

Parameters:

sourceRetryCount

withSourceRetryWait

public BinarySource 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:

BinarySource.withSourceRetryWait(Object sourceRetryWait)

Parameters:

sourceRetryWait

withStoreSettings

public BinarySource withStoreSettings(StoreReadSettings storeSettings)

Set the storeSettings property: Binary store settings.

Parameters:

storeSettings - the storeSettings value to set.

Returns:

the BinarySource object itself.

Applies to