Menu
AWS Glue
Developer Guide

The Abstract DataSink Class

Package:   com.amazonaws.services.glue

abstract class DataSink

A DataSink is the writer analog to a DataSource. It encapsulates a destination and format to which a DynamicFrame can be written.

def writeDynamicFrame

def writeDynamicFrame( frame : DynamicFrame, callSite : CallSite = CallSite("Not provided", "") ) : DynamicFrame

def pyWriteDynamicFrame

def pyWriteDynamicFrame( frame : DynamicFrame, site : String = "Not provided", info : String = "" )

def supportsFormat

def supportsFormat( format : String ) : Boolean

def setFormat

def setFormat( format : String, options : JsonOptions ) : Unit

def withFormat

def withFormat( format : String, options : JsonOptions = JsonOptions.empty ) : DataSink

def setAccumulableSize

def setAccumulableSize( size : Int ) : Unit

def getOutputErrorRecordsAccumulable

def getOutputErrorRecordsAccumulable : Accumulable[List[OutputError], OutputError]

def errorsAsDynamicFrame

def errorsAsDynamicFrame : DynamicFrame

The DataSink Object

object DataSink

def recordMetrics

def recordMetrics( frame : DynamicFrame, ctxt : String ) : DynamicFrame