SnowflakeImportCopyCommand Class

public final class SnowflakeImportCopyCommand
extends ImportSettings

Snowflake import command settings.

Constructor Summary

Constructor Description
SnowflakeImportCopyCommand()

Creates an instance of SnowflakeImportCopyCommand class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalCopyOptions()

Get the additionalCopyOptions property: Additional copy options directly passed to snowflake Copy Command.

Map<String,Object> additionalFormatOptions()

Get the additionalFormatOptions property: Additional format options directly passed to snowflake Copy Command.

static SnowflakeImportCopyCommand fromJson(JsonReader jsonReader)

Reads an instance of SnowflakeImportCopyCommand from the JsonReader.

Object storageIntegration()

Get the storageIntegration property: The name of the snowflake storage integration to use for the copy operation.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The import setting type.

void validate()

Validates the instance.

SnowflakeImportCopyCommand withAdditionalCopyOptions(Map<String,Object> additionalCopyOptions)

Set the additionalCopyOptions property: Additional copy options directly passed to snowflake Copy Command.

SnowflakeImportCopyCommand withAdditionalFormatOptions(Map<String,Object> additionalFormatOptions)

Set the additionalFormatOptions property: Additional format options directly passed to snowflake Copy Command.

SnowflakeImportCopyCommand withStorageIntegration(Object storageIntegration)

Set the storageIntegration property: The name of the snowflake storage integration to use for the copy operation.

Methods inherited from ImportSettings

Methods inherited from java.lang.Object

Constructor Details

SnowflakeImportCopyCommand

public SnowflakeImportCopyCommand()

Creates an instance of SnowflakeImportCopyCommand class.

Method Details

additionalCopyOptions

public Map<String,Object> additionalCopyOptions()

Get the additionalCopyOptions property: Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" }.

Returns:

the additionalCopyOptions value.

additionalFormatOptions

public Map<String,Object> additionalFormatOptions()

Get the additionalFormatOptions property: Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalFormatOptions": { "FORCE": "TRUE", "LOAD_UNCERTAIN_FILES": "'FALSE'" }.

Returns:

the additionalFormatOptions value.

fromJson

public static SnowflakeImportCopyCommand fromJson(JsonReader jsonReader)

Reads an instance of SnowflakeImportCopyCommand from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

storageIntegration

public Object storageIntegration()

Get the storageIntegration property: The name of the snowflake storage integration to use for the copy operation. Type: string (or Expression with resultType string).

Returns:

the storageIntegration value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

SnowflakeImportCopyCommand.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The import setting type.

Overrides:

SnowflakeImportCopyCommand.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

SnowflakeImportCopyCommand.validate()

withAdditionalCopyOptions

public SnowflakeImportCopyCommand withAdditionalCopyOptions(Map<String,Object> additionalCopyOptions)

Set the additionalCopyOptions property: Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE_FORMAT": "MM/DD/YYYY", "TIME_FORMAT": "'HH24:MI:SS.FF'" }.

Parameters:

additionalCopyOptions - the additionalCopyOptions value to set.

Returns:

the SnowflakeImportCopyCommand object itself.

withAdditionalFormatOptions

public SnowflakeImportCopyCommand withAdditionalFormatOptions(Map<String,Object> additionalFormatOptions)

Set the additionalFormatOptions property: Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalFormatOptions": { "FORCE": "TRUE", "LOAD_UNCERTAIN_FILES": "'FALSE'" }.

Parameters:

additionalFormatOptions - the additionalFormatOptions value to set.

Returns:

the SnowflakeImportCopyCommand object itself.

withStorageIntegration

public SnowflakeImportCopyCommand withStorageIntegration(Object storageIntegration)

Set the storageIntegration property: The name of the snowflake storage integration to use for the copy operation. Type: string (or Expression with resultType string).

Parameters:

storageIntegration - the storageIntegration value to set.

Returns:

the SnowflakeImportCopyCommand object itself.

Applies to