JsonSource Class

public final class JsonSource
extends CopySource

A copy activity Json source.

Constructor Summary

Constructor Description
JsonSource()

Creates an instance of JsonSource class.

Method Summary

Modifier and Type Method and Description
static JsonSource fromJson(JsonReader jsonReader)

Reads an instance of JsonSource from the JsonReader.

Object getAdditionalColumns()

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

JsonReadSettings getFormatSettings()

Get the formatSettings property: Json format settings.

StoreReadSettings getStoreSettings()

Get the storeSettings property: Json store settings.

String getType()

Get the type property: Copy source type.

JsonSource setAdditionalColumns(Object additionalColumns)

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

JsonSource setFormatSettings(JsonReadSettings formatSettings)

Set the formatSettings property: Json format settings.

JsonSource setMaxConcurrentConnections(Object maxConcurrentConnections)

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

JsonSource setSourceRetryCount(Object sourceRetryCount)

Set the sourceRetryCount property: Source retry count.

JsonSource setSourceRetryWait(Object sourceRetryWait)

Set the sourceRetryWait property: Source retry wait.

JsonSource setStoreSettings(StoreReadSettings storeSettings)

Set the storeSettings property: Json store settings.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from CopySource

Methods inherited from java.lang.Object

Constructor Details

JsonSource

public JsonSource()

Creates an instance of JsonSource class.

Method Details

fromJson

public static JsonSource fromJson(JsonReader jsonReader)

Reads an instance of JsonSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getAdditionalColumns

public Object getAdditionalColumns()

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.

getFormatSettings

public JsonReadSettings getFormatSettings()

Get the formatSettings property: Json format settings.

Returns:

the formatSettings value.

getStoreSettings

public StoreReadSettings getStoreSettings()

Get the storeSettings property: Json store settings.

Returns:

the storeSettings value.

getType

public String getType()

Get the type property: Copy source type.

Overrides:

JsonSource.getType()

Returns:

the type value.

setAdditionalColumns

public JsonSource setAdditionalColumns(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 JsonSource object itself.

setFormatSettings

public JsonSource setFormatSettings(JsonReadSettings formatSettings)

Set the formatSettings property: Json format settings.

Parameters:

formatSettings - the formatSettings value to set.

Returns:

the JsonSource object itself.

setMaxConcurrentConnections

public JsonSource setMaxConcurrentConnections(Object maxConcurrentConnections)

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

Overrides:

JsonSource.setMaxConcurrentConnections(Object maxConcurrentConnections)

Parameters:

maxConcurrentConnections

setSourceRetryCount

public JsonSource setSourceRetryCount(Object sourceRetryCount)

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

Overrides:

JsonSource.setSourceRetryCount(Object sourceRetryCount)

Parameters:

sourceRetryCount

setSourceRetryWait

public JsonSource setSourceRetryWait(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:

JsonSource.setSourceRetryWait(Object sourceRetryWait)

Parameters:

sourceRetryWait

setStoreSettings

public JsonSource setStoreSettings(StoreReadSettings storeSettings)

Set the storeSettings property: Json store settings.

Parameters:

storeSettings - the storeSettings value to set.

Returns:

the JsonSource object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

JsonSource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to