public interface JsonExpr
Modifier and Type | Method and Description |
---|---|
JsonArrayExpr |
array()
Creates a (JSON) array, which is like a sequence of values, but allows for nesting.
|
JsonArrayExpr |
array(ServerExpression array)
Creates a (JSON) array, which is like a sequence of values, but allows for nesting.
|
JsonArraySeqExpr |
arraySeq(JsonArrayExpr... items)
Deprecated.
(as of 4.2) construct a
ServerExpression sequence with PlanBuilder.seq() |
XsUnsignedLongExpr |
arraySize(ServerExpression array)
Returns the size of the array.
|
ItemSeqExpr |
arrayValues(ServerExpression array)
Returns the array values as an XQuery sequence.
|
ItemSeqExpr |
arrayValues(ServerExpression array,
boolean flatten)
Returns the array values as an XQuery sequence.
|
ItemSeqExpr |
arrayValues(ServerExpression array,
ServerExpression flatten)
Returns the array values as an XQuery sequence.
|
JsonObjectExpr |
object()
Creates a JSON object, which is a kind of map with a fixed and ordered set of keys.
|
JsonObjectExpr |
object(ServerExpression map)
Creates a JSON object, which is a kind of map with a fixed and ordered set of keys.
|
JsonObjectExpr |
objectDefine()
Creates a JSON object.
|
JsonObjectExpr |
objectDefine(ServerExpression keys)
Creates a JSON object.
|
JsonObjectSeqExpr |
objectSeq(JsonObjectExpr... items)
Deprecated.
(as of 4.2) construct a
ServerExpression sequence with PlanBuilder.seq() |
JsonArrayExpr |
subarray(ServerExpression array,
double startingLoc)
Extract a subarray from an array, producing a new array.
|
JsonArrayExpr |
subarray(ServerExpression array,
double startingLoc,
double length)
Extract a subarray from an array, producing a new array.
|
JsonArrayExpr |
subarray(ServerExpression array,
ServerExpression startingLoc)
Extract a subarray from an array, producing a new array.
|
JsonArrayExpr |
subarray(ServerExpression array,
ServerExpression startingLoc,
ServerExpression length)
Extract a subarray from an array, producing a new array.
|
JsonArrayExpr |
toArray()
Constructs json:array from a sequence of items.
|
JsonArrayExpr |
toArray(ServerExpression items)
Constructs json:array from a sequence of items.
|
JsonArrayExpr |
toArray(ServerExpression items,
double limit)
Constructs json:array from a sequence of items.
|
JsonArrayExpr |
toArray(ServerExpression items,
double limit,
ServerExpression zero)
Constructs json:array from a sequence of items.
|
JsonArrayExpr |
toArray(ServerExpression items,
ServerExpression limit)
Constructs json:array from a sequence of items.
|
JsonArrayExpr |
toArray(ServerExpression items,
ServerExpression limit,
ServerExpression zero)
Constructs json:array from a sequence of items.
|
JsonArrayExpr array()
Provides a client interface to the json:array server function.
JsonArrayExpr array(ServerExpression array)
Provides a client interface to the json:array server function.
array
- A serialized array element. (of element-node)XsUnsignedLongExpr arraySize(ServerExpression array)
Provides a client interface to the json:array-size server function.
array
- An array. (of json:array)ItemSeqExpr arrayValues(ServerExpression array)
Provides a client interface to the json:array-values server function.
array
- An array. (of json:array)ItemSeqExpr 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)ItemSeqExpr 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)JsonObjectExpr object()
Provides a client interface to the json:object server function.
JsonObjectExpr object(ServerExpression map)
Provides a client interface to the json:object server function.
map
- A serialized JSON object. (of element-node)JsonObjectExpr objectDefine()
Provides a client interface to the json:object-define server function.
JsonObjectExpr 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)JsonArrayExpr 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)JsonArrayExpr 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)JsonArrayExpr 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)JsonArrayExpr 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)JsonArrayExpr toArray()
Provides a client interface to the json:to-array server function.
JsonArrayExpr toArray(ServerExpression items)
Provides a client interface to the json:to-array server function.
items
- A sequence of items. (of item)JsonArrayExpr toArray(ServerExpression items, double limit)
Provides a client interface to the json:to-array server function.
items
- A sequence of items. (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)JsonArrayExpr toArray(ServerExpression items, ServerExpression limit)
Provides a client interface to the json:to-array server function.
items
- A sequence of items. (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)JsonArrayExpr toArray(ServerExpression items, double limit, ServerExpression zero)
Provides a client interface to the json:to-array server function.
items
- A sequence of items. (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)JsonArrayExpr toArray(ServerExpression items, ServerExpression limit, ServerExpression zero)
Provides a client interface to the json:to-array server function.
items
- A sequence of items. (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)JsonArraySeqExpr arraySeq(JsonArrayExpr... items)
ServerExpression
sequence with PlanBuilder.seq()items
- the JsonArrayExpr items collected by the sequenceJsonObjectSeqExpr objectSeq(JsonObjectExpr... items)
ServerExpression
sequence with PlanBuilder.seq()items
- the JsonObjectExpr items collected by the sequenceCopyright © 2013-2018 MarkLogic Corporation.