Class S3DataSpec
- java.lang.Object
-
- com.amazonaws.services.machinelearning.model.S3DataSpec
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class S3DataSpec extends Object implements Serializable, Cloneable
Describes the data specification of a
DataSource
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description S3DataSpec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S3DataSpec
clone()
boolean
equals(Object obj)
String
getDataLocationS3()
The location of the data file(s) used by aDataSource
.String
getDataRearrangement()
Describes the splitting requirement of aDatasource
.String
getDataSchema()
A JSON string that represents the schema for an Amazon S3DataSource
.String
getDataSchemaLocationS3()
Describes the schema Location in Amazon S3.int
hashCode()
void
setDataLocationS3(String dataLocationS3)
The location of the data file(s) used by aDataSource
.void
setDataRearrangement(String dataRearrangement)
Describes the splitting requirement of aDatasource
.void
setDataSchema(String dataSchema)
A JSON string that represents the schema for an Amazon S3DataSource
.void
setDataSchemaLocationS3(String dataSchemaLocationS3)
Describes the schema Location in Amazon S3.String
toString()
Returns a string representation of this object; useful for testing and debugging.S3DataSpec
withDataLocationS3(String dataLocationS3)
The location of the data file(s) used by aDataSource
.S3DataSpec
withDataRearrangement(String dataRearrangement)
Describes the splitting requirement of aDatasource
.S3DataSpec
withDataSchema(String dataSchema)
A JSON string that represents the schema for an Amazon S3DataSource
.S3DataSpec
withDataSchemaLocationS3(String dataSchemaLocationS3)
Describes the schema Location in Amazon S3.
-
-
-
Method Detail
-
setDataLocationS3
public void setDataLocationS3(String dataLocationS3)
The location of the data file(s) used by a
DataSource
. The URI specifies a data file or an Amazon Simple Storage Service (Amazon S3) directory or bucket containing data files.- Parameters:
dataLocationS3
- The location of the data file(s) used by aDataSource
. The URI specifies a data file or an Amazon Simple Storage Service (Amazon S3) directory or bucket containing data files.
-
getDataLocationS3
public String getDataLocationS3()
The location of the data file(s) used by a
DataSource
. The URI specifies a data file or an Amazon Simple Storage Service (Amazon S3) directory or bucket containing data files.- Returns:
- The location of the data file(s) used by a
DataSource
. The URI specifies a data file or an Amazon Simple Storage Service (Amazon S3) directory or bucket containing data files.
-
withDataLocationS3
public S3DataSpec withDataLocationS3(String dataLocationS3)
The location of the data file(s) used by a
DataSource
. The URI specifies a data file or an Amazon Simple Storage Service (Amazon S3) directory or bucket containing data files.- Parameters:
dataLocationS3
- The location of the data file(s) used by aDataSource
. The URI specifies a data file or an Amazon Simple Storage Service (Amazon S3) directory or bucket containing data files.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDataRearrangement
public void setDataRearrangement(String dataRearrangement)
Describes the splitting requirement of a
Datasource
.- Parameters:
dataRearrangement
- Describes the splitting requirement of aDatasource
.
-
getDataRearrangement
public String getDataRearrangement()
Describes the splitting requirement of a
Datasource
.- Returns:
- Describes the splitting requirement of a
Datasource
.
-
withDataRearrangement
public S3DataSpec withDataRearrangement(String dataRearrangement)
Describes the splitting requirement of a
Datasource
.- Parameters:
dataRearrangement
- Describes the splitting requirement of aDatasource
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDataSchema
public void setDataSchema(String dataSchema)
A JSON string that represents the schema for an Amazon S3
DataSource
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.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 S3DataSource
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.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
public String getDataSchema()
A JSON string that represents the schema for an Amazon S3
DataSource
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.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 S3
DataSource
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.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
public S3DataSpec withDataSchema(String dataSchema)
A JSON string that represents the schema for an Amazon S3
DataSource
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.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 S3DataSource
. TheDataSchema
defines the structure of the observation data in the data file(s) referenced in theDataSource
.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.
-
setDataSchemaLocationS3
public void setDataSchemaLocationS3(String dataSchemaLocationS3)
Describes the schema Location in Amazon S3.
- Parameters:
dataSchemaLocationS3
- Describes the schema Location in Amazon S3.
-
getDataSchemaLocationS3
public String getDataSchemaLocationS3()
Describes the schema Location in Amazon S3.
- Returns:
- Describes the schema Location in Amazon S3.
-
withDataSchemaLocationS3
public S3DataSpec withDataSchemaLocationS3(String dataSchemaLocationS3)
Describes the schema Location in Amazon S3.
- Parameters:
dataSchemaLocationS3
- Describes the schema Location in Amazon S3.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public S3DataSpec clone()
-
-