Class

com.amazonaws.services.sagemaker.sparksdk.transformation.serializers

ProtobufRequestRowSerializer

Related Doc: package serializers

Permalink

class ProtobufRequestRowSerializer extends RequestRowSerializer

A RequestRowSerializer for converting labeled rows to SageMaker Protobuf-in-recordio request data.

Linear Supertypes
RequestRowSerializer, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ProtobufRequestRowSerializer
  2. RequestRowSerializer
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ProtobufRequestRowSerializer(schema: Option[StructType] = None, featuresColumnName: String = "features")

    Permalink

    schema

    The schema of Rows being serialized. This parameter is Optional as the schema may not be known when this serializer is constructed.

    featuresColumnName

    the name of the features column

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val contentType: String

    Permalink

    Returns com.amazonaws.services.sagemaker.sparksdk.transformation.ContentTypes.PROTOBUF

  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. val featuresColumnName: String

    Permalink

    the name of the features column

  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. var rowSchema: StructType

    Permalink

    The schema for Row objects being serialized by RequestRowSerializer#serializeRow

    The schema for Row objects being serialized by RequestRowSerializer#serializeRow

    Attributes
    protected
    Definition Classes
    RequestRowSerializer
  18. val schema: Option[StructType]

    Permalink

    The schema of Rows being serialized.

    The schema of Rows being serialized. This parameter is Optional as the schema may not be known when this serializer is constructed.

  19. def serializeRow(row: Row): Array[Byte]

    Permalink

    Serializes an object to an Array of Record-IO encoded Protobuf bytes for transformation by a SageMaker endpoint

    Serializes an object to an Array of Record-IO encoded Protobuf bytes for transformation by a SageMaker endpoint

    row

    The row to serialize

    returns

    An Array[Byte]

    Definition Classes
    ProtobufRequestRowSerializerRequestRowSerializer
  20. def setSchema(schema: StructType): Unit

    Permalink

    Sets the rowSchema for this RequestRowSerializer.

    Sets the rowSchema for this RequestRowSerializer. Invokes validateSchema on the specified schema.

    Definition Classes
    RequestRowSerializer
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. def validateSchema(schema: StructType): Unit

    Permalink

    Validates that the specified schema contains a Vector column with name featuresColumnName.

    Validates that the specified schema contains a Vector column with name featuresColumnName.

    Definition Classes
    ProtobufRequestRowSerializerRequestRowSerializer
    Exceptions thrown

    java.lang.IllegalArgumentException if the specified schema is invalid

  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from RequestRowSerializer

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped