Changing Metadata Maps for a Query Object

A Query object can have a set of MetadataMaps. These maps specify the metadata for the entire query, for an edge in the query, or for a dimension in a query.

The methods of the Query object in the following table change metadata maps for a query:

Method

Description

setMetadataMap

Initializes the MetadataMap for the entire query or for a particular dimension.

applyMetadataMap (int edge, MetadataMap map)

Adds the types in the specified map to the specified edge of the query

applyMetadataMap (java.lang.String dimension, MetadataMap map)

Adds the types in the specified map to the specified dimension