AWS Glue Scala MapLikeNode APIs - AWS Glue
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

AWS Glue Scala MapLikeNode APIs

Package: com.amazonaws.services.glue.types

MapLikeNode class

MapLikeNode

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.