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()booleanDescribes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.Describes theDatabaseNameandClusterIdentifierfor 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 theSelectSqlQueryquery.Describes the SQL Query to execute on an Amazon Redshift database for an Amazon RedshiftDataSource.inthashCode()voidsetDatabaseCredentials(RedshiftDatabaseCredentials databaseCredentials) Describes AWS Identity and Access Management (IAM) credentials that are used connect to the Amazon Redshift database.voidsetDatabaseInformation(RedshiftDatabase databaseInformation) Describes theDatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.voidsetDataRearrangement(String dataRearrangement) Describes the splitting specifications for aDataSource.voidsetDataSchema(String dataSchema) A JSON string that represents the schema for an Amazon RedshiftDataSource.voidsetDataSchemaUri(String dataSchemaUri) Describes the schema location for an Amazon RedshiftDataSource.voidsetS3StagingLocation(String s3StagingLocation) Describes an Amazon S3 location to store the result set of theSelectSqlQueryquery.voidsetSelectSqlQuery(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 theDatabaseNameandClusterIdentifierfor 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 theSelectSqlQueryquery.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
DatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.- Parameters:
databaseInformation- Describes theDatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.
-
getDatabaseInformation
Describes the
DatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.- Returns:
- Describes the
DatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.
-
withDatabaseInformation
Describes the
DatabaseNameandClusterIdentifierfor an Amazon RedshiftDataSource.- Parameters:
databaseInformation- Describes theDatabaseNameandClusterIdentifierfor 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
SelectSqlQueryquery.- Parameters:
s3StagingLocation- Describes an Amazon S3 location to store the result set of theSelectSqlQueryquery.
-
getS3StagingLocation
Describes an Amazon S3 location to store the result set of the
SelectSqlQueryquery.- Returns:
- Describes an Amazon S3 location to store the result set of the
SelectSqlQueryquery.
-
withS3StagingLocation
Describes an Amazon S3 location to store the result set of the
SelectSqlQueryquery.- Parameters:
s3StagingLocation- Describes an Amazon S3 location to store the result set of theSelectSqlQueryquery.- 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. TheDataSchemadefines the structure of the observation data in the data file(s) referenced in theDataSource.A
DataSchemais not required if you specify aDataSchemaUri.Define your
DataSchemaas a series of key-value pairs.attributesandexcludedVariableNameshave 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. TheDataSchemadefines the structure of the observation data in the data file(s) referenced in theDataSource.A
DataSchemais not required if you specify aDataSchemaUri.Define your
DataSchemaas a series of key-value pairs.attributesandexcludedVariableNameshave 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. TheDataSchemadefines the structure of the observation data in the data file(s) referenced in theDataSource.A
DataSchemais not required if you specify aDataSchemaUri.Define your
DataSchemaas a series of key-value pairs.attributesandexcludedVariableNameshave 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. TheDataSchemadefines the structure of the observation data in the data file(s) referenced in theDataSource.A
DataSchemais not required if you specify aDataSchemaUri.Define your
DataSchemaas a series of key-value pairs.attributesandexcludedVariableNameshave 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. TheDataSchemadefines the structure of the observation data in the data file(s) referenced in theDataSource.A
DataSchemais not required if you specify aDataSchemaUri.Define your
DataSchemaas a series of key-value pairs.attributesandexcludedVariableNameshave 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. TheDataSchemadefines the structure of the observation data in the data file(s) referenced in theDataSource.A
DataSchemais not required if you specify aDataSchemaUri.Define your
DataSchemaas a series of key-value pairs.attributesandexcludedVariableNameshave 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
-