public class S3DataSpec
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes the data specification of a DataSource
.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
dataLocationS3
The location of the data file(s) used by a
DataSource . |
private java.lang.String |
dataRearrangement
Describes the splitting requirement of a
Datasource . |
private java.lang.String |
dataSchema
A JSON string that represents the schema for an Amazon S3
DataSource . |
private java.lang.String |
dataSchemaLocationS3
Describes the schema Location in Amazon S3.
|
Constructor and Description |
---|
S3DataSpec() |
Modifier and Type | Method and Description |
---|---|
S3DataSpec |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDataLocationS3()
The location of the data file(s) used by a
DataSource . |
java.lang.String |
getDataRearrangement()
Describes the splitting requirement of a
Datasource . |
java.lang.String |
getDataSchema()
A JSON string that represents the schema for an Amazon S3
DataSource . |
java.lang.String |
getDataSchemaLocationS3()
Describes the schema Location in Amazon S3.
|
int |
hashCode() |
void |
setDataLocationS3(java.lang.String dataLocationS3)
The location of the data file(s) used by a
DataSource . |
void |
setDataRearrangement(java.lang.String dataRearrangement)
Describes the splitting requirement of a
Datasource . |
void |
setDataSchema(java.lang.String dataSchema)
A JSON string that represents the schema for an Amazon S3
DataSource . |
void |
setDataSchemaLocationS3(java.lang.String dataSchemaLocationS3)
Describes the schema Location in Amazon S3.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
S3DataSpec |
withDataLocationS3(java.lang.String dataLocationS3)
The location of the data file(s) used by a
DataSource . |
S3DataSpec |
withDataRearrangement(java.lang.String dataRearrangement)
Describes the splitting requirement of a
Datasource . |
S3DataSpec |
withDataSchema(java.lang.String dataSchema)
A JSON string that represents the schema for an Amazon S3
DataSource . |
S3DataSpec |
withDataSchemaLocationS3(java.lang.String dataSchemaLocationS3)
Describes the schema Location in Amazon S3.
|
private java.lang.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.
private java.lang.String dataRearrangement
Describes the splitting requirement of a Datasource
.
private java.lang.String dataSchema
A JSON string that represents the schema for an Amazon S3
DataSource
. The DataSchema
defines the
structure of the observation data in the data file(s) referenced in the
DataSource
.
Define your DataSchema
as a series of key-value pairs.
attributes
and excludedVariableNames
have an
array of key-value pairs for their value. Use the following format to
define your DataSchema
.
{ "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" ] }
private java.lang.String dataSchemaLocationS3
Describes the schema Location in Amazon S3.
public void setDataLocationS3(java.lang.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.
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.public java.lang.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.
DataSource
. The URI specifies a data file or an
Amazon Simple Storage Service (Amazon S3) directory or bucket
containing data files.public S3DataSpec withDataLocationS3(java.lang.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.
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.public void setDataRearrangement(java.lang.String dataRearrangement)
Describes the splitting requirement of a Datasource
.
dataRearrangement
- Describes the splitting requirement of a Datasource
.public java.lang.String getDataRearrangement()
Describes the splitting requirement of a Datasource
.
Datasource
.public S3DataSpec withDataRearrangement(java.lang.String dataRearrangement)
Describes the splitting requirement of a Datasource
.
dataRearrangement
- Describes the splitting requirement of a Datasource
.public void setDataSchema(java.lang.String dataSchema)
A JSON string that represents the schema for an Amazon S3
DataSource
. The DataSchema
defines the
structure of the observation data in the data file(s) referenced in the
DataSource
.
Define your DataSchema
as a series of key-value pairs.
attributes
and excludedVariableNames
have an
array of key-value pairs for their value. Use the following format to
define your DataSchema
.
{ "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" ] }
dataSchema
- A JSON string that represents the schema for an Amazon S3
DataSource
. The DataSchema
defines the
structure of the observation data in the data file(s) referenced
in the DataSource
.
Define your DataSchema
as a series of key-value
pairs. attributes
and
excludedVariableNames
have an array of key-value
pairs for their value. Use the following format to define your
DataSchema
.
{ "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" ] }
public java.lang.String getDataSchema()
A JSON string that represents the schema for an Amazon S3
DataSource
. The DataSchema
defines the
structure of the observation data in the data file(s) referenced in the
DataSource
.
Define your DataSchema
as a series of key-value pairs.
attributes
and excludedVariableNames
have an
array of key-value pairs for their value. Use the following format to
define your DataSchema
.
{ "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" ] }
DataSource
. The DataSchema
defines the
structure of the observation data in the data file(s) referenced
in the DataSource
.
Define your DataSchema
as a series of key-value
pairs. attributes
and
excludedVariableNames
have an array of key-value
pairs for their value. Use the following format to define your
DataSchema
.
{ "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" ] }
public S3DataSpec withDataSchema(java.lang.String dataSchema)
A JSON string that represents the schema for an Amazon S3
DataSource
. The DataSchema
defines the
structure of the observation data in the data file(s) referenced in the
DataSource
.
Define your DataSchema
as a series of key-value pairs.
attributes
and excludedVariableNames
have an
array of key-value pairs for their value. Use the following format to
define your DataSchema
.
{ "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" ] }
dataSchema
- A JSON string that represents the schema for an Amazon S3
DataSource
. The DataSchema
defines the
structure of the observation data in the data file(s) referenced
in the DataSource
.
Define your DataSchema
as a series of key-value
pairs. attributes
and
excludedVariableNames
have an array of key-value
pairs for their value. Use the following format to define your
DataSchema
.
{ "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" ] }
public void setDataSchemaLocationS3(java.lang.String dataSchemaLocationS3)
Describes the schema Location in Amazon S3.
dataSchemaLocationS3
- Describes the schema Location in Amazon S3.public java.lang.String getDataSchemaLocationS3()
Describes the schema Location in Amazon S3.
public S3DataSpec withDataSchemaLocationS3(java.lang.String dataSchemaLocationS3)
Describes the schema Location in Amazon S3.
dataSchemaLocationS3
- Describes the schema Location in Amazon S3.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public S3DataSpec clone()
clone
in class java.lang.Object