public interface JsonExpr
Modifier and Type | Method and Description |
---|---|
ServerExpression |
array()
Creates a (JSON) array, which is like a sequence of values, but allows for nesting.
|
ServerExpression |
array(ServerExpression array)
Creates a (JSON) array, which is like a sequence of values, but allows for nesting.
|
ServerExpression |
arraySize(ServerExpression array)
Returns the size of the array.
|
ServerExpression |
arrayValues(ServerExpression array)
Returns the array values as an XQuery sequence.
|
ServerExpression |
arrayValues(ServerExpression array,
boolean flatten)
Returns the array values as an XQuery sequence.
|
ServerExpression |
arrayValues(ServerExpression array,
ServerExpression flatten)
Returns the array values as an XQuery sequence.
|
ServerExpression |
object()
Creates a JSON object, which is a kind of map with a fixed and ordered set of keys.
|
ServerExpression |
object(ServerExpression map)
Creates a JSON object, which is a kind of map with a fixed and ordered set of keys.
|
ServerExpression |
objectDefine()
Creates a JSON object.
|
ServerExpression |
objectDefine(ServerExpression keys)
Creates a JSON object.
|
ServerExpression |
subarray(ServerExpression array,
double startingLoc)
Extract a subarray from an array, producing a new array.
|
ServerExpression |
subarray(ServerExpression array,
double startingLoc,
double length)
Extract a subarray from an array, producing a new array.
|
ServerExpression |
subarray(ServerExpression array,
ServerExpression startingLoc)
Extract a subarray from an array, producing a new array.
|
ServerExpression |
subarray(ServerExpression array,
ServerExpression startingLoc,
ServerExpression length)
Extract a subarray from an array, producing a new array.
|
ServerExpression |
toArray()
Constructs a json:array from a sequence of items.
|
ServerExpression |
toArray(ServerExpression items)
Constructs a json:array from a sequence of items.
|
ServerExpression |
toArray(ServerExpression items,
double limit)
Constructs a json:array from a sequence of items.
|
ServerExpression |
toArray(ServerExpression items,
double limit,
ServerExpression zero)
Constructs a json:array from a sequence of items.
|
ServerExpression |
toArray(ServerExpression items,
ServerExpression limit)
Constructs a json:array from a sequence of items.
|
ServerExpression |
toArray(ServerExpression items,
ServerExpression limit,
ServerExpression zero)
Constructs a json:array from a sequence of items.
|
ServerExpression array()
Provides a client interface to the json:array server function.
ServerExpression array(ServerExpression array)
Provides a client interface to the json:array server function.
array
- A serialized array element. (of element-node)ServerExpression arraySize(ServerExpression array)
Provides a client interface to the json:array-size server function.
array
- An array. (of json:array)ServerExpression arrayValues(ServerExpression array)
Provides a client interface to the json:array-values server function.
array
- An array. (of json:array)ServerExpression arrayValues(ServerExpression array, boolean flatten)
Provides a client interface to the json:array-values server function.
array
- An array. (of json:array)flatten
- Include values from subarrays in the sequence. The default is false, meaning that subarrays are returned as array values. (of xs:boolean)ServerExpression arrayValues(ServerExpression array, ServerExpression flatten)
Provides a client interface to the json:array-values server function.
array
- An array. (of json:array)flatten
- Include values from subarrays in the sequence. The default is false, meaning that subarrays are returned as array values. (of xs:boolean)ServerExpression object()
Provides a client interface to the json:object server function.
ServerExpression object(ServerExpression map)
Provides a client interface to the json:object server function.
map
- A serialized JSON object. (of element-node)ServerExpression objectDefine()
Provides a client interface to the json:object-define server function.
ServerExpression objectDefine(ServerExpression keys)
Provides a client interface to the json:object-define server function.
keys
- The sequence of keys in this object. (of xs:string)ServerExpression subarray(ServerExpression array, double startingLoc)
Provides a client interface to the json:subarray server function.
array
- An array. (of json:array)startingLoc
- The starting position of the start of the subarray. (of xs:numeric)ServerExpression subarray(ServerExpression array, ServerExpression startingLoc)
Provides a client interface to the json:subarray server function.
array
- An array. (of json:array)startingLoc
- The starting position of the start of the subarray. (of xs:numeric)ServerExpression subarray(ServerExpression array, double startingLoc, double length)
Provides a client interface to the json:subarray server function.
array
- An array. (of json:array)startingLoc
- The starting position of the start of the subarray. (of xs:numeric)length
- The length of the subarray. (of xs:numeric)ServerExpression subarray(ServerExpression array, ServerExpression startingLoc, ServerExpression length)
Provides a client interface to the json:subarray server function.
array
- An array. (of json:array)startingLoc
- The starting position of the start of the subarray. (of xs:numeric)length
- The length of the subarray. (of xs:numeric)ServerExpression toArray()
Provides a client interface to the json:to-array server function.
ServerExpression toArray(ServerExpression items)
Provides a client interface to the json:to-array server function.
items
- The items to be used as elements in the constructed array. (of item)ServerExpression toArray(ServerExpression items, double limit)
Provides a client interface to the json:to-array server function.
items
- The items to be used as elements in the constructed array. (of item)limit
- The size of the array to construct. If the size is less than the length of the item sequence, only as "limit" items are put into the array. If the size is more than the length of the sequence, the array is filled with null values up to the limit. (of xs:numeric)ServerExpression toArray(ServerExpression items, ServerExpression limit)
Provides a client interface to the json:to-array server function.
items
- The items to be used as elements in the constructed array. (of item)limit
- The size of the array to construct. If the size is less than the length of the item sequence, only as "limit" items are put into the array. If the size is more than the length of the sequence, the array is filled with null values up to the limit. (of xs:numeric)ServerExpression toArray(ServerExpression items, double limit, ServerExpression zero)
Provides a client interface to the json:to-array server function.
items
- The items to be used as elements in the constructed array. (of item)limit
- The size of the array to construct. If the size is less than the length of the item sequence, only as "limit" items are put into the array. If the size is more than the length of the sequence, the array is filled with null values up to the limit. (of xs:numeric)zero
- The value to use to pad out the array, if necessary. By default the empty sequence is used. (of item)ServerExpression toArray(ServerExpression items, ServerExpression limit, ServerExpression zero)
Provides a client interface to the json:to-array server function.
items
- The items to be used as elements in the constructed array. (of item)limit
- The size of the array to construct. If the size is less than the length of the item sequence, only as "limit" items are put into the array. If the size is more than the length of the sequence, the array is filled with null values up to the limit. (of xs:numeric)zero
- The value to use to pad out the array, if necessary. By default the empty sequence is used. (of item)Copyright © 2013-2021 MarkLogic Corporation.