Class RedshiftDataSpec
- All Implemented Interfaces:
Serializable
,Cloneable
Describes the data specification of an Amazon Redshift
DataSource
.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.Describes theDatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.Describes the splitting specifications for aDataSource
.A JSON string that represents the schema for an Amazon RedshiftDataSource
.Describes the schema location for an Amazon RedshiftDataSource
.Describes an Amazon S3 location to store the result set of theSelectSqlQuery
query.Describes the SQL Query to execute on an Amazon Redshift database for an Amazon RedshiftDataSource
.int
hashCode()
void
setDatabaseCredentials
(RedshiftDatabaseCredentials databaseCredentials) Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.void
setDatabaseInformation
(RedshiftDatabase databaseInformation) Describes theDatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.void
setDataRearrangement
(String dataRearrangement) Describes the splitting specifications for aDataSource
.void
setDataSchema
(String dataSchema) A JSON string that represents the schema for an Amazon RedshiftDataSource
.void
setDataSchemaUri
(String dataSchemaUri) Describes the schema location for an Amazon RedshiftDataSource
.void
setS3StagingLocation
(String s3StagingLocation) Describes an Amazon S3 location to store the result set of theSelectSqlQuery
query.void
setSelectSqlQuery
(String selectSqlQuery) Describes the SQL Query to execute on an Amazon Redshift database for an Amazon RedshiftDataSource
.toString()
Returns a string representation of this object; useful for testing and debugging.withDatabaseCredentials
(RedshiftDatabaseCredentials databaseCredentials) Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.withDatabaseInformation
(RedshiftDatabase databaseInformation) Describes theDatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.withDataRearrangement
(String dataRearrangement) Describes the splitting specifications for aDataSource
.withDataSchema
(String dataSchema) A JSON string that represents the schema for an Amazon RedshiftDataSource
.withDataSchemaUri
(String dataSchemaUri) Describes the schema location for an Amazon RedshiftDataSource
.withS3StagingLocation
(String s3StagingLocation) Describes an Amazon S3 location to store the result set of theSelectSqlQuery
query.withSelectSqlQuery
(String selectSqlQuery) Describes the SQL Query to execute on an Amazon Redshift database for an Amazon RedshiftDataSource
.
-
Constructor Details
-
RedshiftDataSpec
public RedshiftDataSpec()
-
-
Method Details
-
setDatabaseInformation
Describes the
DatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.- Parameters:
databaseInformation
- Describes theDatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.
-
getDatabaseInformation
Describes the
DatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.- Returns:
- Describes the
DatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.
-
withDatabaseInformation
Describes the
DatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.- Parameters:
databaseInformation
- Describes theDatabaseName
andClusterIdentifier
for an Amazon RedshiftDataSource
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSelectSqlQuery
Describes the SQL Query to execute on an Amazon Redshift database for an Amazon Redshift
DataSource
.- Parameters:
selectSqlQuery
- Describes the SQL Query to execute on an Amazon Redshift database for an Amazon RedshiftDataSource
.
-
getSelectSqlQuery
Describes the SQL Query to execute on an Amazon Redshift database for an Amazon Redshift
DataSource
.- Returns:
- Describes the SQL Query to execute on an Amazon Redshift database
for an Amazon Redshift
DataSource
.
-
withSelectSqlQuery
Describes the SQL Query to execute on an Amazon Redshift database for an Amazon Redshift
DataSource
.- Parameters:
selectSqlQuery
- Describes the SQL Query to execute on an Amazon Redshift database for an Amazon RedshiftDataSource
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDatabaseCredentials
Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.
- Parameters:
databaseCredentials
- Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.
-
getDatabaseCredentials
Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.
- Returns:
- Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.
-
withDatabaseCredentials
Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.
- Parameters:
databaseCredentials
- Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setS3StagingLocation
Describes an Amazon S3 location to store the result set of the
SelectSqlQuery
query.- Parameters:
s3StagingLocation
- Describes an Amazon S3 location to store the result set of theSelectSqlQuery
query.
-
getS3StagingLocation
Describes an Amazon S3 location to store the result set of the
SelectSqlQuery
query.- Returns:
- Describes an Amazon S3 location to store the result set of the
SelectSqlQuery
query.
-
withS3StagingLocation
Describes an Amazon S3 location to store the result set of the
SelectSqlQuery
query.- Parameters:
s3StagingLocation
- Describes an Amazon S3 location to store the result set of theSelectSqlQuery
query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDataRearrangement
Describes the splitting specifications for a
DataSource
.- Parameters:
dataRearrangement
- Describes the splitting specifications for aDataSource
.
-
getDataRearrangement
Describes the splitting specifications for a
DataSource
.- Returns:
- Describes the splitting specifications for a
DataSource
.
-
withDataRearrangement
Describes the splitting specifications for a
DataSource
.- Parameters:
dataRearrangement
- Describes the splitting specifications for aDataSource
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDataSchema
A JSON string that represents the schema for an Amazon Redshift
DataSource
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.A
DataSchema
is not required if you specify aDataSchemaUri
.Define your
DataSchema
as a series of key-value pairs.attributes
andexcludedVariableNames
have an array of key-value pairs for their value. Use the following format to define yourDataSchema
.{ "version": "1.0",
"recordAnnotationFieldName": "F1",
"recordWeightFieldName": "F2",
"targetFieldName": "F3",
"dataFormat": "CSV",
"dataFileContainsHeader": true,
"attributes": [
{ "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" } ],
"excludedVariableNames": [ "F6" ] }
- Parameters:
dataSchema
- A JSON string that represents the schema for an Amazon RedshiftDataSource
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.A
DataSchema
is not required if you specify aDataSchemaUri
.Define your
DataSchema
as a series of key-value pairs.attributes
andexcludedVariableNames
have an array of key-value pairs for their value. Use the following format to define yourDataSchema
.{ "version": "1.0",
"recordAnnotationFieldName": "F1",
"recordWeightFieldName": "F2",
"targetFieldName": "F3",
"dataFormat": "CSV",
"dataFileContainsHeader": true,
"attributes": [
{ "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" } ],
"excludedVariableNames": [ "F6" ] }
-
getDataSchema
A JSON string that represents the schema for an Amazon Redshift
DataSource
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.A
DataSchema
is not required if you specify aDataSchemaUri
.Define your
DataSchema
as a series of key-value pairs.attributes
andexcludedVariableNames
have an array of key-value pairs for their value. Use the following format to define yourDataSchema
.{ "version": "1.0",
"recordAnnotationFieldName": "F1",
"recordWeightFieldName": "F2",
"targetFieldName": "F3",
"dataFormat": "CSV",
"dataFileContainsHeader": true,
"attributes": [
{ "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" } ],
"excludedVariableNames": [ "F6" ] }
- Returns:
- A JSON string that represents the schema for an Amazon Redshift
DataSource
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.A
DataSchema
is not required if you specify aDataSchemaUri
.Define your
DataSchema
as a series of key-value pairs.attributes
andexcludedVariableNames
have an array of key-value pairs for their value. Use the following format to define yourDataSchema
.{ "version": "1.0",
"recordAnnotationFieldName": "F1",
"recordWeightFieldName": "F2",
"targetFieldName": "F3",
"dataFormat": "CSV",
"dataFileContainsHeader": true,
"attributes": [
{ "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" } ],
"excludedVariableNames": [ "F6" ] }
-
withDataSchema
A JSON string that represents the schema for an Amazon Redshift
DataSource
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.A
DataSchema
is not required if you specify aDataSchemaUri
.Define your
DataSchema
as a series of key-value pairs.attributes
andexcludedVariableNames
have an array of key-value pairs for their value. Use the following format to define yourDataSchema
.{ "version": "1.0",
"recordAnnotationFieldName": "F1",
"recordWeightFieldName": "F2",
"targetFieldName": "F3",
"dataFormat": "CSV",
"dataFileContainsHeader": true,
"attributes": [
{ "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" } ],
"excludedVariableNames": [ "F6" ] }
- Parameters:
dataSchema
- A JSON string that represents the schema for an Amazon RedshiftDataSource
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.A
DataSchema
is not required if you specify aDataSchemaUri
.Define your
DataSchema
as a series of key-value pairs.attributes
andexcludedVariableNames
have an array of key-value pairs for their value. Use the following format to define yourDataSchema
.{ "version": "1.0",
"recordAnnotationFieldName": "F1",
"recordWeightFieldName": "F2",
"targetFieldName": "F3",
"dataFormat": "CSV",
"dataFileContainsHeader": true,
"attributes": [
{ "fieldName": "F1", "fieldType": "TEXT" }, { "fieldName": "F2", "fieldType": "NUMERIC" }, { "fieldName": "F3", "fieldType": "CATEGORICAL" }, { "fieldName": "F4", "fieldType": "NUMERIC" }, { "fieldName": "F5", "fieldType": "CATEGORICAL" }, { "fieldName": "F6", "fieldType": "TEXT" }, { "fieldName": "F7", "fieldType": "WEIGHTED_INT_SEQUENCE" }, { "fieldName": "F8", "fieldType": "WEIGHTED_STRING_SEQUENCE" } ],
"excludedVariableNames": [ "F6" ] }
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDataSchemaUri
Describes the schema location for an Amazon Redshift
DataSource
.- Parameters:
dataSchemaUri
- Describes the schema location for an Amazon RedshiftDataSource
.
-
getDataSchemaUri
Describes the schema location for an Amazon Redshift
DataSource
.- Returns:
- Describes the schema location for an Amazon Redshift
DataSource
.
-
withDataSchemaUri
Describes the schema location for an Amazon Redshift
DataSource
.- Parameters:
dataSchemaUri
- Describes the schema location for an Amazon RedshiftDataSource
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-