public interface MapExpr
Modifier and Type | Method and Description |
---|---|
XsBooleanExpr |
contains(ServerExpression map,
ServerExpression key)
Returns true if the key exists in the map.
|
XsBooleanExpr |
contains(ServerExpression map,
java.lang.String key)
Returns true if the key exists in the map.
|
XsUnsignedIntExpr |
count(ServerExpression map)
Returns the number of keys used in the map.
|
MapMapExpr |
entry(ServerExpression key,
ServerExpression value)
Constructs a new map with a single entry consisting of the key and value specified as arguments.
|
ItemSeqExpr |
get(ServerExpression map,
ServerExpression key)
Get a value from a map.
|
ItemSeqExpr |
get(ServerExpression map,
java.lang.String key)
Get a value from a map.
|
XsStringSeqExpr |
keys(ServerExpression map)
Get the keys used in the map.
|
MapMapExpr |
map()
Creates a map.
|
MapMapExpr |
map(ServerExpression map)
Creates a map.
|
MapMapSeqExpr |
mapSeq(MapMapExpr... items)
Deprecated.
(as of 4.2) construct a
ServerExpression sequence with PlanBuilder.seq() |
XsBooleanExpr contains(ServerExpression map, java.lang.String key)
Provides a client interface to the map:contains server function.
map
- A map. (of map:map)key
- A key. (of xs:string)XsBooleanExpr contains(ServerExpression map, ServerExpression key)
Provides a client interface to the map:contains server function.
map
- A map. (of map:map)key
- A key. (of xs:string)XsUnsignedIntExpr count(ServerExpression map)
Provides a client interface to the map:count server function.
map
- A map. (of map:map)MapMapExpr entry(ServerExpression key, ServerExpression value)
Provides a client interface to the map:entry server function.
ItemSeqExpr get(ServerExpression map, java.lang.String key)
Provides a client interface to the map:get server function.
ItemSeqExpr get(ServerExpression map, ServerExpression key)
Provides a client interface to the map:get server function.
XsStringSeqExpr keys(ServerExpression map)
Provides a client interface to the map:keys server function.
MapMapExpr map()
Provides a client interface to the map:map server function.
MapMapExpr map(ServerExpression map)
Provides a client interface to the map:map server function.
map
- A serialized map element. (of element-node)MapMapSeqExpr mapSeq(MapMapExpr... items)
ServerExpression
sequence with PlanBuilder.seq()items
- the MapMapExpr items collected by the sequenceCopyright © 2013-2018 MarkLogic Corporation.