Amazon Glue Scala MapLikeNode APIs - Amazon Glue
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon Glue Scala MapLikeNode APIs


MapLikeNode class


class MapLikeNode extends DynamicNode ( value : mutable.Map[String, DynamicNode] )

MapLikeNode def methods

def clear : Unit
def get( name : String ) : Option[DynamicNode]
def getValue
def has( name : String ) : Boolean
def isEmpty : Boolean
def put( name : String, node : DynamicNode ) : Option[DynamicNode]
def remove( name : String ) : Option[DynamicNode]
def toIterator : Iterator[(String, DynamicNode)]
def toJson : String
def toJson( useQuotes : Boolean ) : String

Example: Given this JSON:

{"foo": "bar"}

If useQuotes == true, toJson yields {"foo": "bar"}. If useQuotes == false, toJson yields {foo: bar} @return.