Class

com.amazonaws.services.sagemaker.sparksdk.transformation.deserializers

KMeansProtobufResponseRowDeserializer

Related Doc: package deserializers

Permalink

class KMeansProtobufResponseRowDeserializer extends ProtobufResponseRowDeserializer

Deserializes a Protobuf response from the KMeans model image into Rows in a Spark Dataframe

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

Instance Constructors

  1. new KMeansProtobufResponseRowDeserializer(distanceToClusterColumnName: String = "distance_to_cluster", closestClusterColumnName: String = "closest_cluster")

    Permalink

    distanceToClusterColumnName

    name of the column of doubles indicating the distance to the nearest cluster from the input record.

    closestClusterColumnName

    name of the column of doubles indicating the label of the closest cluster for the input record.

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. val accepts: String

    Permalink

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

  5. final def asInstanceOf[T0]: T0

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

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

    Permalink

    name of the column of doubles indicating the label of the closest cluster for the input record.

  8. def deserializeResponse(responseData: Array[Byte]): Iterator[Row]

    Permalink

    Deserialize a SageMaker response containing a byte array of record-IO encoded SageMaker Protobuf records.

    Deserialize a SageMaker response containing a byte array of record-IO encoded SageMaker Protobuf records.

    responseData

    The Array[Byte] containing the Protobuf-in-recordIO response

    returns

    An Iterator over deserialized Rows

    Definition Classes
    ProtobufResponseRowDeserializerResponseRowDeserializer
  9. val distanceToClusterColumnName: String

    Permalink

    name of the column of doubles indicating the distance to the nearest cluster from the input record.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  19. val protobufKeys: Option[Seq[String]]

    Permalink

    The keys for each output in the Protobuf response.

    The keys for each output in the Protobuf response.

    Definition Classes
    ProtobufResponseRowDeserializer
  20. val schema: StructType

    Permalink

    The schema of rows in the response.

    The schema of rows in the response.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

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

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

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

Inherited from ResponseRowDeserializer

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped