Package com.thingworx.resources.queries
Class InfoTableFunctions
- All Implemented Interfaces:
IConfigurableObject
,INotScriptFriendly
,ISupportsDeprecation
,IDiffableObject
,IAvatar
,IEntityLifeCycleEvent
,IPersistable
,IServiceProvider
,ITaggableObject
,IDependencyScannableObject
,IEntityDefinition
,IPersistableObject<String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,IAspectContainer
,INamedObject
,Serializable
@ThingworxExtensionApiClass(since={6,6},
canInstantiate=true)
public class InfoTableFunctions
extends Resource
- See Also:
-
Field Summary
Fields inherited from class com.thingworx.entities.RootEntity
BASIC_PROPERTY_DEFINITIONS, EXCLUDED_ENTITY_TYPES_IN_PROJECT
Fields inherited from class com.thingworx.types.NamedObject
NAME_COMPARATOR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionService Category: Aggregates Service Description: .Service Category: Filters Service Description: Range filter.Service Category: Creation Service Description: Clone an info table.Service Category: Interpolation Service Description: Combine multiple time series data sets to an InfoTable.CreateInfoTable
(String infoTableName) Service Category: Creation Service Description: Create an empty InfoTable.CreateInfoTableFromDataShape
(String infoTableName, String dataShapeName) Service Category: Creation Service Description: Create an InfoTable from a specified data shape.DeleteQuery
(InfoTable t, org.json.JSONObject query) Service Category: Filters Service Description: Delete rows that match a query.DeriveFields
(InfoTable t, String columns, String types, String expressions) Service Category: Calculations Service Description: Add additional columns based on expressions to existing infotable.Service Category: Aggregates Service Description: Extract a set of distinct values for a specified field.Service Category: Filters Service Description: Equality filter with case sensitivity flag.FromJSON
(org.json.JSONObject json) Service Category: Conversion Service Description: Convert JSON into an info table.Service Category: Conversion Service Description: Convert XML into an info table.Service Category: Filters Service Description: Greater than or equal filter.Service Category: Filters Service Description: Greater than filter.Interpolate
(InfoTable t, String timeColumn, String columns, String mode, Double count, String stats, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, Boolean ignoreMissingData) Service Category: TimeInterpolation Service Description: Perform time-based interpolation on an InfoTable.Intersect
(InfoTable t1, InfoTable t2, String columns1, String columns2, String joinColumns1, String joinColumns2, String joinType) Service Category: Combination Service Description: Returns an inner join of the two infotables.Service Category: Filters Service Description: Less than or equal filter.LikeFilter
(InfoTable t, String fieldName, String pattern, Boolean inclusive) Service Category: Filters Service Description: Pattern matching filter.Service Category: Filters Service Description: Less than filter.MissingValueFilter
(InfoTable t, String fieldName, Boolean inclusive) Service Category: Filters Service Description: Filter by missing value(s).NearFilter
(InfoTable t, String fieldName, Location location, Double searchRadius, String units, Boolean inclusive) Service Category: Filters Service Description: Location filter (nearness).Service Category: Filters Service Description: Not equal filter.Service Category: Transformation Service Description: Returns a transformation of a dataset with timestamp, name and value columns.Service Category: Filters Service Description: Generic query.RegexFilter
(InfoTable t, String fieldName, String pattern, Boolean inclusive) Service Category: Filters Service Description: Pattern matching filter.RenameField
(InfoTable t, String from, String to) Service Category: Columns Service Description: Return an infotable with a column renamed.Service Category: Filters Service Description: Set of values filter.Service Category: Sorting Service Description: Sort InfoTable on a specified field.TagFilter
(InfoTable t, String fieldName, TagCollection tags, Boolean inclusive) Service Category: Filters Service Description: Filter by tag value(s).Service Category: TimeInterpolation Service Description: Shift the time values for an infotable by a given amount.org.json.JSONObject
Deprecated.no replacementService Category: Filters Service Description: Returns the top n rows.Service Category: Combination Service Description: Returns a single infotable with values from two tables.UpdateQuery
(InfoTable t, org.json.JSONObject query, InfoTable values) Service Category: Filters Service Description: Update rows that match a query with a provided set of values.Methods inherited from class com.thingworx.resources.Resource
getEntityType
Methods inherited from class com.thingworx.entities.ServiceProviderEntity
getInstancePublicServiceDefinitions, getInstanceServiceDefinition, getInstanceServiceDefinitions, initializeEntity, preInitializeEntity, processAPIServiceRequest, processServiceRequest
Methods inherited from class com.thingworx.entities.RootEntity
AddConfigurationTableDefinition, AddConfigurationTableDefinition, addDesignTimePermission, AddDesignTimePermission, addRunTimePermission, AddRunTimePermission, AddTags, addVisibilityPermission, AddVisibilityPermission, CheckDesignTimePermission, CheckDesignTimePermissionForGroup, CheckDesignTimePermissionForUser, CheckPermission, CheckPermissionForGroup, CheckPermissionForUser, cleanupEntity, DeleteAllConfigurationTableRows, DeleteConfigurationTable, DeleteConfigurationTableRows, DeleteConfigurationTableRows, deleteDesignTimePermission, DeleteDesignTimePermission, deleteRunTimePermission, DeleteRunTimePermission, deleteVisibilityPermission, DeleteVisibilityPermission, dispose, getAspects, GetAvatar, getAvatarContent, GetAvatarURL, GetConfigurationChangeHistory, getConfigurationSetting, getConfigurationTable, GetConfigurationTable, GetConfigurationTableDefinition, GetConfigurationTableRow, GetConfigurationTables, GetDescription, getDesignTimePermissions, GetDesignTimePermissions, GetDesignTimePermissionsAsJSON, getDocumentationContent, getEntityTypeAsString, GetEventDefinition, GetEventDefinitions, GetHomeMashup, GetIncomingDependencies, GetIncomingDependenciesAsNetwork, GetInstanceMetadataAsJSON, GetInstanceMetadataWithPermissionsAsJSON, GetLastModifiedDate, GetMetadata, GetMetadataAsJSON, GetMetadataWithPermissionsAsJSON, GetOutgoingDependencies, GetOutgoingDependenciesAsNetwork, getOwner, GetOwner, GetPermissionsForCurrentUser, GetPermissionsForGroup, GetPermissionsForUser, GetProjectName, GetPropertyDefinition, GetPropertyDefinitions, getRunTimePermissions, GetRunTimePermissions, GetRunTimePermissionsAsJSON, GetServiceDefinition, GetServiceDefinitions, getStringConfigurationSetting, getStringConfigurationSettingWithDefault, GetSummaryInformation, getTags, GetTags, GetTagsAsInfoTable, getVisibilityPermissions, GetVisibilityPermissions, GetVisibilityPermissionsAsJSON, HasIncomingDependencies, HasOutgoingDependencies, isEditable, isEditableExtensionObject, isEditableSystemObject, isExtensionObject, IsMultiRowTable, isOwner, isSystemObject, isThemeObject, isVisible, isVisible, ListDeprecatedUsage, persistDesignTimePermissions, persistRunTimePermissions, persistVisibilityPermissions, RemoveTags, SaveConfigurationTables, SetAvatar, setConfigurationSetting, SetConfigurationTable, SetConfigurationTableRows, SetDescription, setDesignTimePermissions, SetDesignTimePermissionsAsJSON, setDocumentationContent, setExtensionObject, SetHomeMashup, setLastModifiedDate, SetMultiRowConfigurationTable, setOwner, SetOwner, SetProjectName, setRunTimePermissions, SetRunTimePermissionsAsJSON, setStringConfigurationSetting, SetTags, setVisibilityPermissions, SetVisibilityPermissionsAsJSON, toJSON, toJSONDefinition, UpdateProjectDependencies, validateConfiguration
Methods inherited from class com.thingworx.persistence.common.PersistableNamedObject
getID, hasID, isTransient
Methods inherited from class com.thingworx.types.NamedObject
getDescription, getName, setDescription, setName, toValueCollection
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.thingworx.types.INamedObject
getDescription, getName
Methods inherited from interface com.thingworx.entities.interfaces.IPersistable
getID, hasID
Methods inherited from interface com.thingworx.security.permissions.ISecurable
getID, getName
Methods inherited from interface com.thingworx.deprecation.ISupportsDeprecation
getDeprecated, isDeprecated, isDeprecatedBefore, since
-
Constructor Details
-
Method Details
-
FromXML
- Service Category:
- Conversion
- Service Description:
- Convert XML into an info table.
- Parameters:
xml
- XML content - XML- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
FromJSON
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable FromJSON(org.json.JSONObject json) throws Exception - Service Category:
- Conversion
- Service Description:
- Convert JSON into an info table.
- Parameters:
json
- JSON content - JSON- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
ToJSON
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,4}) public org.json.JSONObject ToJSON(InfoTable table) throws Exception Deprecated.no replacement- Service Category:
- Conversion
- Service Description:
- Convert an info table into JSON.
Convert an info table into JSON.- Parameters:
table
- Info table- Returns:
- Resultant data
- Throws:
Exception
- if an error occurs
-
Clone
- Service Category:
- Creation
- Service Description:
- Clone an info table.
- Parameters:
t1
- First table to join - INFOTABLE- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
Intersect
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Intersect(InfoTable t1, InfoTable t2, String columns1, String columns2, String joinColumns1, String joinColumns2, String joinType) throws Exception - Service Category:
- Combination
- Service Description:
- Returns an inner join of the two infotables.
- Parameters:
t1
- First table to join - INFOTABLEt2
- Second table to join - INFOTABLEcolumns1
- Comma separated list of columns to include from table 1 - STRINGcolumns2
- Comma separated list of columns to include from table 2 - STRINGjoinColumns1
- Comma separated list of columns from table 1 on which to join - STRINGjoinColumns2
- Comma separated list of columns from table 2 on which to join - STRINGjoinType
- Join type (INNER, LEFT, RIGHT, FULL) - STRING- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
Pivot
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Pivot(InfoTable t, String timestampColumn, String nameColumn, String valueColumn) throws Exception - Service Category:
- Transformation
- Service Description:
- Returns a transformation of a dataset with timestamp, name and value columns.
- Parameters:
t
- Source data - INFOTABLEtimestampColumn
- Timestamp column - STRINGnameColumn
- Name column - STRINGvalueColumn
- Value column - STRING- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
Union
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Union(InfoTable t1, InfoTable t2) throws Exception - Service Category:
- Combination
- Service Description:
- Returns a single infotable with values from two tables. The tables must have the same DataShape.
- Parameters:
t1
- First table to join - INFOTABLEt2
- Second table to join - INFOTABLE- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
TimeShift
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable TimeShift(InfoTable t, String timestampField, Double shift) throws Exception - Service Category:
- TimeInterpolation
- Service Description:
- Shift the time values for an infotable by a given amount.
- Parameters:
t
- Info table to truncate - INFOTABLEtimestampField
- Name of the timestamp field - STRINGshift
- Number of seconds to shift the values - NUMBER- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
TopN
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable TopN(InfoTable t, Double maxItems) throws Exception - Service Category:
- Filters
- Service Description:
- Returns the top n rows.
- Parameters:
t
- Info table to truncate - INFOTABLEmaxItems
- Number of rows to return - NUMBER- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
DeriveFields
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable DeriveFields(InfoTable t, String columns, String types, String expressions) throws Exception - Service Category:
- Calculations
- Service Description:
- Add additional columns based on expressions to existing infotable.
- Parameters:
t
- Info table to calculate on - INFOTABLEcolumns
- Comma separated list of new field names - STRINGtypes
- Comma separated list of base types for new fields - STRINGexpressions
- Comma separated list of expressions - STRING- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
RenameField
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable RenameField(InfoTable t, String from, String to) throws Exception - Service Category:
- Columns
- Service Description:
- Return an infotable with a column renamed.
- Parameters:
t
- Info table to rename - INFOTABLEfrom
- Old field name - STRINGto
- New field name - STRING- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
Additional Information: This service supports using commas (",") or semicolons (";") as delimiters in the service call. Services can be used in expressions with the following limitations: 1.) You must use: Resources["InfoTableFunctions"].<service> rather than me.<service>. The "me." construct does not work 2.) Parameters can not be passed by reference. For example, this works: service( {<parameter 1>:<value 1>,<parameter 2>:<value 2>,...,<parameter N>:<value N> } ). If using a single service or function in the expressions, you must use a semicolon so that DeriveField understands the comma is part of the expression and not a delimiter.
-
Aggregate
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Aggregate(InfoTable t, String columns, String aggregates, String groupByColumns) throws Exception - Service Category:
- Aggregates
- Service Description:
- .
- Parameters:
t
- Info table to aggregate - INFOTABLEcolumns
- Comma separated list of columns to aggregate - STRINGaggregates
- Comma separated list of aggregate types (MIN, MAX, AVERAGE, SUM, COUNT) - STRINGgroupByColumns
- Comma separated list of columns to group on - STRING- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
SetFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SetFilter(InfoTable t, String fieldName, String matchValues, Boolean inclusive) throws Exception - Service Category:
- Filters
- Service Description:
- Set of values filter.
- Parameters:
t
- Info table to filter - INFOTABLEfieldName
- Field name on which to filter - STRINGmatchValues
- Semicolon separated list of values to match - STRINGinclusive
- Include or exclude matching rows - BOOLEAN- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
LikeFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable LikeFilter(InfoTable t, String fieldName, String pattern, Boolean inclusive) throws Exception - Service Category:
- Filters
- Service Description:
- Pattern matching filter.
- Parameters:
t
- Info table to filter - INFOTABLEfieldName
- Field name on which to filter - STRINGpattern
- Pattern to match - STRINGinclusive
- Include or exclude matching rows - BOOLEAN- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
RegexFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable RegexFilter(InfoTable t, String fieldName, String pattern, Boolean inclusive) throws Exception - Service Category:
- Filters
- Service Description:
- Pattern matching filter.
- Parameters:
t
- Info table to filter - INFOTABLEfieldName
- Field name on which to filter - STRINGpattern
- Pattern to match - STRINGinclusive
- Include or exclude matching rows - BOOLEAN- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
BetweenFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable BetweenFilter(InfoTable t, String fieldName, String minValue, String maxValue, Boolean inclusive) throws Exception - Service Category:
- Filters
- Service Description:
- Range filter.
- Parameters:
t
- Info table to filter - INFOTABLEfieldName
- Field name on which to filter - STRINGminValue
- Minimum value for range - STRINGmaxValue
- Maximum value for range - STRINGinclusive
- Include or exclude matching rows - BOOLEAN- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
GEFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GEFilter(InfoTable t, String fieldName, String value) throws Exception - Service Category:
- Filters
- Service Description:
- Greater than or equal filter.
- Parameters:
t
- Info table to filter - INFOTABLEfieldName
- Field name on which to filter - STRINGvalue
- Value to compare - STRING- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
GTFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GTFilter(InfoTable t, String fieldName, String value) throws Exception - Service Category:
- Filters
- Service Description:
- Greater than filter.
- Parameters:
t
- Info table to filter - INFOTABLEfieldName
- Field name on which to filter - STRINGvalue
- Value to compare - STRING- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
LEFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable LEFilter(InfoTable t, String fieldName, String value) throws Exception - Service Category:
- Filters
- Service Description:
- Less than or equal filter.
- Parameters:
t
- Info table to filter - INFOTABLEfieldName
- Field name on which to filter - STRINGvalue
- Value to compare - STRING- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
LTFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable LTFilter(InfoTable t, String fieldName, String value) throws Exception - Service Category:
- Filters
- Service Description:
- Less than filter.
- Parameters:
t
- Info table to filter - INFOTABLEfieldName
- Field name on which to filter - STRINGvalue
- Value to compare - STRING- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
EQFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable EQFilter(InfoTable t, String fieldName, String value) throws Exception - Throws:
Exception
- If an error occurs
-
EQFilter
@ThingworxExtensionApiMethod(since={7,3}) public InfoTable EQFilter(InfoTable t, String fieldName, String value, Boolean isCaseSensitive) throws Exception - Service Category:
- Filters
- Service Description:
- Equality filter with case sensitivity flag.
- Parameters:
t
- Info table to filter - INFOTABLEfieldName
- Field name on which to filter - STRINGvalue
- Value to compare - STRINGisCaseSensitive
- Flag to turn case sensitivity on/off - BOOLEAN- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
NEFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable NEFilter(InfoTable t, String fieldName, String value) throws Exception - Service Category:
- Filters
- Service Description:
- Not equal filter.
- Parameters:
t
- Info table to filter - INFOTABLEfieldName
- Field name on which to filter - STRINGvalue
- Value to compare - STRING- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
NearFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable NearFilter(InfoTable t, String fieldName, Location location, Double searchRadius, String units, Boolean inclusive) throws Exception - Service Category:
- Filters
- Service Description:
- Location filter (nearness).
- Parameters:
t
- Info table to filter - INFOTABLEfieldName
- Field name on which to filter - STRINGlocation
- Center point of search - LOCATIONsearchRadius
- Search radius - NUMBERunits
- Search radius units (K = km, M = miles, N = nautical miles) - STRINGinclusive
- Include or exclude matching rows - BOOLEAN- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
TagFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable TagFilter(InfoTable t, String fieldName, TagCollection tags, Boolean inclusive) throws Exception - Service Category:
- Filters
- Service Description:
- Filter by tag value(s).
- Parameters:
t
- Info table to filter - INFOTABLEfieldName
- Field name on which to filter - STRINGtags
- Tags to filter on - TAGSinclusive
- Include or exclude matching rows - BOOLEAN- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
MissingValueFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable MissingValueFilter(InfoTable t, String fieldName, Boolean inclusive) throws Exception - Service Category:
- Filters
- Service Description:
- Filter by missing value(s).
- Parameters:
t
- Info table to filter - INFOTABLEfieldName
- Field name on which to filter - STRINGinclusive
- Include or exclude matching rows - BOOLEAN- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
Sort
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Sort(InfoTable t, String sortColumn, Boolean ascending) throws Exception - Service Category:
- Sorting
- Service Description:
- Sort InfoTable on a specified field.
- Parameters:
t
- Info table to sort - INFOTABLEsortColumn
- Column on which to sort - STRINGascending
- Ascending or descending sort (ascending = true) - BOOLEAN- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
Interpolate
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Interpolate(InfoTable t, String timeColumn, String columns, String mode, Double count, String stats, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, Boolean ignoreMissingData) throws Exception - Service Category:
- TimeInterpolation
- Service Description:
- Perform time-based interpolation on an InfoTable.
- Parameters:
t
- Info table to sort - INFOTABLEtimeColumn
- Time column name - STRINGcolumns
- Semicolon separated list of field names - STRINGmode
- Interpolation Mode (ROWCOUNT or INTERVAL) - STRINGcount
- Number of rows to return - NUMBERstats
- Statistic type for interpolation (LAST, SMOOTH, AVG, TAVG, MIN, MAX) - STRINGstartDate
- Start date of range - DATETIMEendDate
- End date of range - DATETIMEignoreMissingData
- Ignore missing data in calculations - BOOLEAN- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
Combine
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Combine(InfoTable tables) throws Exception - Service Category:
- Interpolation
- Service Description:
- Combine multiple time series data sets to an InfoTable.
- Parameters:
tables
- Info tables to combine - INFOTABLE- Returns:
- result Resultant data - INFOTABLE - Aspects {dataShape:TimeSeriesDataset}
- Throws:
Exception
- If an error occurs
-
Distinct
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Distinct(InfoTable t, String columns) throws Exception - Service Category:
- Aggregates
- Service Description:
- Extract a set of distinct values for a specified field.
- Parameters:
t
- Info table to reduce to distinct rows - INFOTABLEcolumns
- Comma separated list of columns to determine distinct rows - STRING- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
Query
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Query(InfoTable t, org.json.JSONObject query) throws Exception - Service Category:
- Filters
- Service Description:
- Generic query.
- Parameters:
t
- Info table to query - INFOTABLEquery
- Query expression - QUERY- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
DeleteQuery
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable DeleteQuery(InfoTable t, org.json.JSONObject query) throws Exception - Service Category:
- Filters
- Service Description:
- Delete rows that match a query.
- Parameters:
t
- Info table to query - INFOTABLEquery
- Query expression - QUERY- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
UpdateQuery
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable UpdateQuery(InfoTable t, org.json.JSONObject query, InfoTable values) throws Exception - Service Category:
- Filters
- Service Description:
- Update rows that match a query with a provided set of values.
- Parameters:
t
- Info table to query - INFOTABLEquery
- Query expression - QUERYvalues
- Fields/values to update - INFOTABLE- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
CreateInfoTableFromDataShape
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable CreateInfoTableFromDataShape(String infoTableName, String dataShapeName) throws Exception - Service Category:
- Creation
- Service Description:
- Create an InfoTable from a specified data shape.
- Parameters:
infoTableName
- Name for the infotable - STRINGdataShapeName
- Name of the data shape from which to create the infotable - DATASHAPENAME- Returns:
- result Resultant data - INFOTABLE
- Throws:
Exception
- If an error occurs
-
CreateInfoTable
- Service Category:
- Creation
- Service Description:
- Create an empty InfoTable.
- Parameters:
infoTableName
- Name for the infotable - STRING- Returns:
- result Resultant data - INFOTABLE
-