| Modifier and Type | Method and Description |
|---|---|
Map |
addAll(Map other,
InputInfo ii)
Adds all bindings from the given map into
this. |
int |
arity()
Number of arguments this function item takes.
|
Map |
coerceTo(FuncType ft,
QueryContext ctx,
InputInfo ii)
Coerces this function item to the given function type.
|
Str |
collation()
Collation of this map.
|
Bln |
contains(Item k,
InputInfo ii)
Checks if the given key exists in the map.
|
boolean |
deep(InputInfo ii,
Map o)
Checks if the this map is deep-equal to the given one.
|
Map |
delete(Item key,
InputInfo ii)
Deletes a key from this map.
|
java.lang.String |
description()
Returns a string description of the expression.
|
QNm |
fName()
Name of this function,
null means anonymous function. |
Value |
get(Item key,
InputInfo ii)
Gets the value from this map.
|
int |
hash(InputInfo ii)
Returns a hash code for this value.
|
boolean |
hasType(MapType t)
Checks if the map has the given type.
|
Map |
insert(Item k,
Value v,
InputInfo ii)
Inserts the given value into this map.
|
Value |
invValue(QueryContext ctx,
InputInfo ii,
Value... args)
Invokes this function item with the given arguments.
|
Value |
keys()
All keys defined in this map.
|
Int |
mapSize()
Number of values contained in this map.
|
void |
plan(Serializer ser)
Serializes the expression tree.
|
java.util.HashMap<java.lang.Object,java.lang.Object> |
toJava()
Returns a Java representation of the value.
|
TokenObjMap<java.lang.Object> |
tokenJavaMap(InputInfo ii)
Converts the map to a map with tokens as keys and java objects as values.
|
java.lang.String |
toString() |
bool, comparable, dbl, dec, diff, ebv, equiv, flt, homogenous, input, isItem, item, itemAt, iter, iterable, itr, score, score, serialize, size, test, type, writeTo, xdmInfocache, comp, count, data, info, isValue, iter, iterator, removable, remove, uses, valueaddText, compEbv, hasFreeVars, indexAccessible, indexEquivalent, isEmpty, isFunction, isVacuous, markTailCalls, sameAspublic static final Map EMPTY
public int arity()
FItempublic QNm fName()
FItemnull means anonymous function.public Value invValue(QueryContext ctx, InputInfo ii, Value... args) throws QueryException
FIteminvValue in class FItemctx - query contextii - input infoargs - argumentsQueryException - query exceptionpublic Map delete(Item key, InputInfo ii) throws QueryException
key - key to deleteii - input infothis otherwiseQueryException - query exceptionpublic Value get(Item key, InputInfo ii) throws QueryException
key - key to look forii - input info() otherwiseQueryException - query exceptionpublic Bln contains(Item k, InputInfo ii) throws QueryException
k - key to look forii - input infotrue(), if the key exists, false() otherwiseQueryException - query exceptionpublic Map addAll(Map other, InputInfo ii) throws QueryException
this.other - map to addii - input infothis otherwiseQueryException - query exceptionpublic boolean hasType(MapType t)
t - typetrue if the type fits, false otherwisepublic Map coerceTo(FuncType ft, QueryContext ctx, InputInfo ii) throws QueryException
FItemcoerceTo in class FItemft - function typectx - query contextii - input infoQueryException - query exceptionpublic Map insert(Item k, Value v, InputInfo ii) throws QueryException
k - key to insertv - value to insertii - input infothis otherwiseQueryException - query exceptionpublic Int mapSize()
public Value keys()
public Str collation()
public boolean deep(InputInfo ii, Map o) throws QueryException
ii - input infoo - other mapQueryException - query exceptionpublic TokenObjMap<java.lang.Object> tokenJavaMap(InputInfo ii) throws QueryException
ii - input infoQueryException - query exceptionpublic java.util.HashMap<java.lang.Object,java.lang.Object> toJava()
throws QueryException
ValuetoJava in class FItemQueryException - query exceptionpublic int hash(InputInfo ii) throws QueryException
Valuehash in class Itemii - input infoQueryException - if atomization can't be applied (e.g. function item)public java.lang.String description()
ExprInfoExprInfo.toString() method,
arguments are not included in the output.description in class Valuepublic void plan(Serializer ser) throws java.io.IOException
ExprInfo