public final class CustomElementsUtil extends Object
CustomArrayType, CustomArrayValue, CustomRecordType
and CustomRecordValue.| Modifier and Type | Method and Description |
|---|---|
static CustomArrayType |
createCustomArrayType(CustomRecordType arrayType)
Factory method to instantiate a
CustomArrayType without name. |
static CustomArrayType |
createCustomArrayType(String arrayName,
CustomRecordType arrayType)
Factory method to instantiate a
CustomArrayType. |
static CustomArrayValue |
createCustomArrayValue(List<CustomRecordValue> values)
Factory method to instantiate a
CustomArrayValue. |
static CustomRecordType |
createCustomRecordType(LinkedHashMap<String,Object> properties)
Factory method to instantiate a
CustomRecordValue without name. |
static CustomRecordType |
createCustomRecordType(String recordName,
LinkedHashMap<String,Object> properties)
Factory method to instantiate a
CustomRecordValue. |
static CustomRecordValue |
createCustomRecordValue(LinkedHashMap<String,Object> properties)
Factory method to instantiate a
CustomRecordValue. |
static QueryContext |
getQueryContext()
Returns context information about the query executing the function.
|
public static CustomArrayType createCustomArrayType(String arrayName, CustomRecordType arrayType)
CustomArrayType.arrayName - Name of the type.arrayType - Type that this array will represent a list of.public static CustomArrayType createCustomArrayType(CustomRecordType arrayType)
CustomArrayType without name.arrayType - Type that this array will represent a list of.public static CustomArrayValue createCustomArrayValue(List<CustomRecordValue> values)
CustomArrayValue.values - List of records stored in the array.public static CustomRecordType createCustomRecordType(String recordName, LinkedHashMap<String,Object> properties)
CustomRecordValue.recordName - Name of the type.properties - Fields for the new record. The map key stores
the field name and the Object is the field type.public static CustomRecordType createCustomRecordType(LinkedHashMap<String,Object> properties)
CustomRecordValue without name.properties - Fields for the new record. The map key stores
the field name and the Object is the field type.public static CustomRecordValue createCustomRecordValue(LinkedHashMap<String,Object> properties)
CustomRecordValue.properties - The field values for the new record. The map key stores
the field name and the object is the field value.public static QueryContext getQueryContext()
Note: this method only returns a QueryContext when is invoked from a custom function. It
returns NULL when is invoked from a custom stored procedure, a custom wrapper or a custom input
filter.
Copyright © 2024 Denodo Technologies. All rights reserved.