com.amazonaws.services.sagemaker.sparksdk.transformation.serializers
Returns com.amazonaws.services.sagemaker.sparksdk.transformation.ContentTypes.CSV
The schema for Row objects being serialized by RequestRowSerializer#serializeRow
The schema for Row objects being serialized by RequestRowSerializer#serializeRow
Serializes an object to an Array of bytes for transformation by a SageMaker endpoint
Serializes an object to an Array of bytes for transformation by a SageMaker endpoint
The row to serialize
An Array[Byte]
Sets the rowSchema for this RequestRowSerializer.
Sets the rowSchema for this RequestRowSerializer. Invokes validateSchema on the specified schema.
This method must be invoked before calling serializeRow if no schema was set when this RequestRowSerializer was constructed.
Validates that the specified schema contains a Double column with name labelColumnName and a Vector column with name featuresColumnName.
Validates that the specified schema contains a Double column with name labelColumnName and a Vector column with name featuresColumnName.
java.lang.IllegalArgumentException
if the specified schema is invalid
Serializes according to the current implementation of the scoring service: