Package com.thingworx.resources.queries
Class InfoTableFunctions
- java.lang.Object
-
- All Implemented Interfaces:
IConfigurableObject
,INotScriptFriendly
,ISupportsDeprecation
,IDiffableObject
,IAvatar
,IEntityLifeCycleEvent
,IPersistable
,IServiceProvider
,ITaggableObject
,IDependencyScannableObject
,IEntityDefinition
,IPersistableObject<java.lang.String>
,IDesignTimeSecurable
,IDesignTimeSecurableEntity
,IRunTimeSecurable
,IRunTimeSecurableEntity
,ISecurable
,IVisibilitySecurable
,IVisibilitySecurableEntity
,IAspectContainer
,INamedObject
,java.io.Serializable
@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public class InfoTableFunctions extends Resource
- See Also:
- Serialized Form
-
-
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 Constructor Description InfoTableFunctions()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description InfoTable
Aggregate(InfoTable t, java.lang.String columns, java.lang.String aggregates, java.lang.String groupByColumns)
Service Category: Aggregates Service Description: .InfoTable
BetweenFilter(InfoTable t, java.lang.String fieldName, java.lang.String minValue, java.lang.String maxValue, java.lang.Boolean inclusive)
Service Category: Filters Service Description: Range filter.InfoTable
Clone(InfoTable t1)
Service Category: Creation Service Description: Clone an info table.InfoTable
Combine(InfoTable tables)
Service Category: Interpolation Service Description: Combine multiple time series data sets to an InfoTable.InfoTable
CreateInfoTable(java.lang.String infoTableName)
Service Category: Creation Service Description: Create an empty InfoTable.InfoTable
CreateInfoTableFromDataShape(java.lang.String infoTableName, java.lang.String dataShapeName)
Service Category: Creation Service Description: Create an InfoTable from a specified data shape.InfoTable
DeleteQuery(InfoTable t, org.json.JSONObject query)
Service Category: Filters Service Description: Delete rows that match a query.InfoTable
DeriveFields(InfoTable t, java.lang.String columns, java.lang.String types, java.lang.String expressions)
Service Category: Calculations Service Description: Add additional columns based on expressions to existing infotable.InfoTable
Distinct(InfoTable t, java.lang.String columns)
Service Category: Aggregates Service Description: Extract a set of distinct values for a specified field.InfoTable
EQFilter(InfoTable t, java.lang.String fieldName, java.lang.String value)
InfoTable
EQFilter(InfoTable t, java.lang.String fieldName, java.lang.String value, java.lang.Boolean isCaseSensitive)
Service Category: Filters Service Description: Equality filter with case sensitivity flag.InfoTable
FromJSON(org.json.JSONObject json)
Service Category: Conversion Service Description: Convert JSON into an info table.InfoTable
FromXML(org.w3c.dom.Document xml)
Service Category: Conversion Service Description: Convert XML into an info table.InfoTable
GEFilter(InfoTable t, java.lang.String fieldName, java.lang.String value)
Service Category: Filters Service Description: Greater than or equal filter.InfoTable
GTFilter(InfoTable t, java.lang.String fieldName, java.lang.String value)
Service Category: Filters Service Description: Greater than filter.InfoTable
Interpolate(InfoTable t, java.lang.String timeColumn, java.lang.String columns, java.lang.String mode, java.lang.Double count, java.lang.String stats, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Boolean ignoreMissingData)
Service Category: TimeInterpolation Service Description: Perform time-based interpolation on an InfoTable.InfoTable
Intersect(InfoTable t1, InfoTable t2, java.lang.String columns1, java.lang.String columns2, java.lang.String joinColumns1, java.lang.String joinColumns2, java.lang.String joinType)
Service Category: Combination Service Description: Returns an inner join of the two infotables.InfoTable
LEFilter(InfoTable t, java.lang.String fieldName, java.lang.String value)
Service Category: Filters Service Description: Less than or equal filter.InfoTable
LikeFilter(InfoTable t, java.lang.String fieldName, java.lang.String pattern, java.lang.Boolean inclusive)
Service Category: Filters Service Description: Pattern matching filter.InfoTable
LTFilter(InfoTable t, java.lang.String fieldName, java.lang.String value)
Service Category: Filters Service Description: Less than filter.InfoTable
MissingValueFilter(InfoTable t, java.lang.String fieldName, java.lang.Boolean inclusive)
Service Category: Filters Service Description: Filter by missing value(s).InfoTable
NearFilter(InfoTable t, java.lang.String fieldName, Location location, java.lang.Double searchRadius, java.lang.String units, java.lang.Boolean inclusive)
Service Category: Filters Service Description: Location filter (nearness).InfoTable
NEFilter(InfoTable t, java.lang.String fieldName, java.lang.String value)
Service Category: Filters Service Description: Not equal filter.InfoTable
Pivot(InfoTable t, java.lang.String timestampColumn, java.lang.String nameColumn, java.lang.String valueColumn)
Service Category: Transformation Service Description: Returns a transformation of a dataset with timestamp, name and value columns.InfoTable
Query(InfoTable t, org.json.JSONObject query)
Service Category: Filters Service Description: Generic query.InfoTable
RegexFilter(InfoTable t, java.lang.String fieldName, java.lang.String pattern, java.lang.Boolean inclusive)
Service Category: Filters Service Description: Pattern matching filter.InfoTable
RenameField(InfoTable t, java.lang.String from, java.lang.String to)
Service Category: Columns Service Description: Return an infotable with a column renamed.InfoTable
SetFilter(InfoTable t, java.lang.String fieldName, java.lang.String matchValues, java.lang.Boolean inclusive)
Service Category: Filters Service Description: Set of values filter.InfoTable
Sort(InfoTable t, java.lang.String sortColumn, java.lang.Boolean ascending)
Service Category: Sorting Service Description: Sort InfoTable on a specified field.InfoTable
TagFilter(InfoTable t, java.lang.String fieldName, TagCollection tags, java.lang.Boolean inclusive)
Service Category: Filters Service Description: Filter by tag value(s).InfoTable
TimeShift(InfoTable t, java.lang.String timestampField, java.lang.Double shift)
Service Category: TimeInterpolation Service Description: Shift the time values for an infotable by a given amount.org.json.JSONObject
ToJSON(InfoTable table)
Deprecated.no replacementInfoTable
TopN(InfoTable t, java.lang.Double maxItems)
Service Category: Filters Service Description: Returns the top n rows.InfoTable
Union(InfoTable t1, InfoTable t2)
Service Category: Combination Service Description: Returns a single infotable with values from two tables.InfoTable
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
-
-
-
-
Method Detail
-
FromXML
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable FromXML(org.w3c.dom.Document xml) throws java.lang.Exception
- Service Category:
- Conversion
- Service Description:
- Convert XML into an info table.
- Parameters:
xml
- XML content - XML- Returns:
- result Resultant data - INFOTABLE
- Throws:
java.lang.Exception
- If an error occurs
-
FromJSON
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable FromJSON(org.json.JSONObject json) throws java.lang.Exception
- Service Category:
- Conversion
- Service Description:
- Convert JSON into an info table.
- Parameters:
json
- JSON content - JSON- Returns:
- result Resultant data - INFOTABLE
- Throws:
java.lang.Exception
- If an error occurs
-
ToJSON
@Deprecated @ThingworxExtensionApiMethod(since={6,6}, deprecatedSince={8,4}) public org.json.JSONObject ToJSON(InfoTable table) throws java.lang.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:
java.lang.Exception
- if an error occurs
-
Clone
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Clone(InfoTable t1) throws java.lang.Exception
- Service Category:
- Creation
- Service Description:
- Clone an info table.
- Parameters:
t1
- First table to join - INFOTABLE- Returns:
- result Resultant data - INFOTABLE
- Throws:
java.lang.Exception
- If an error occurs
-
Intersect
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Intersect(InfoTable t1, InfoTable t2, java.lang.String columns1, java.lang.String columns2, java.lang.String joinColumns1, java.lang.String joinColumns2, java.lang.String joinType) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
Pivot
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Pivot(InfoTable t, java.lang.String timestampColumn, java.lang.String nameColumn, java.lang.String valueColumn) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
Union
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Union(InfoTable t1, InfoTable t2) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
TimeShift
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable TimeShift(InfoTable t, java.lang.String timestampField, java.lang.Double shift) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
TopN
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable TopN(InfoTable t, java.lang.Double maxItems) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
DeriveFields
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable DeriveFields(InfoTable t, java.lang.String columns, java.lang.String types, java.lang.String expressions) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
RenameField
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable RenameField(InfoTable t, java.lang.String from, java.lang.String to) throws java.lang.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:
java.lang.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, java.lang.String columns, java.lang.String aggregates, java.lang.String groupByColumns) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
SetFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable SetFilter(InfoTable t, java.lang.String fieldName, java.lang.String matchValues, java.lang.Boolean inclusive) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
LikeFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable LikeFilter(InfoTable t, java.lang.String fieldName, java.lang.String pattern, java.lang.Boolean inclusive) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
RegexFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable RegexFilter(InfoTable t, java.lang.String fieldName, java.lang.String pattern, java.lang.Boolean inclusive) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
BetweenFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable BetweenFilter(InfoTable t, java.lang.String fieldName, java.lang.String minValue, java.lang.String maxValue, java.lang.Boolean inclusive) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
GEFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GEFilter(InfoTable t, java.lang.String fieldName, java.lang.String value) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
GTFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable GTFilter(InfoTable t, java.lang.String fieldName, java.lang.String value) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
LEFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable LEFilter(InfoTable t, java.lang.String fieldName, java.lang.String value) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
LTFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable LTFilter(InfoTable t, java.lang.String fieldName, java.lang.String value) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
EQFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable EQFilter(InfoTable t, java.lang.String fieldName, java.lang.String value) throws java.lang.Exception
- Throws:
java.lang.Exception
- If an error occurs
-
EQFilter
@ThingworxExtensionApiMethod(since={7,3}) public InfoTable EQFilter(InfoTable t, java.lang.String fieldName, java.lang.String value, java.lang.Boolean isCaseSensitive) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
NEFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable NEFilter(InfoTable t, java.lang.String fieldName, java.lang.String value) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
NearFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable NearFilter(InfoTable t, java.lang.String fieldName, Location location, java.lang.Double searchRadius, java.lang.String units, java.lang.Boolean inclusive) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
TagFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable TagFilter(InfoTable t, java.lang.String fieldName, TagCollection tags, java.lang.Boolean inclusive) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
MissingValueFilter
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable MissingValueFilter(InfoTable t, java.lang.String fieldName, java.lang.Boolean inclusive) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
Sort
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Sort(InfoTable t, java.lang.String sortColumn, java.lang.Boolean ascending) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
Interpolate
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Interpolate(InfoTable t, java.lang.String timeColumn, java.lang.String columns, java.lang.String mode, java.lang.Double count, java.lang.String stats, org.joda.time.DateTime startDate, org.joda.time.DateTime endDate, java.lang.Boolean ignoreMissingData) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
Combine
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Combine(InfoTable tables) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
Distinct
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Distinct(InfoTable t, java.lang.String columns) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
Query
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable Query(InfoTable t, org.json.JSONObject query) throws java.lang.Exception
- Service Category:
- Filters
- Service Description:
- Generic query.
- Parameters:
t
- Info table to query - INFOTABLEquery
- Query expression - QUERY- Returns:
- result Resultant data - INFOTABLE
- Throws:
java.lang.Exception
- If an error occurs
-
DeleteQuery
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable DeleteQuery(InfoTable t, org.json.JSONObject query) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
UpdateQuery
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable UpdateQuery(InfoTable t, org.json.JSONObject query, InfoTable values) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
CreateInfoTableFromDataShape
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable CreateInfoTableFromDataShape(java.lang.String infoTableName, java.lang.String dataShapeName) throws java.lang.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:
java.lang.Exception
- If an error occurs
-
CreateInfoTable
@ThingworxExtensionApiMethod(since={6,6}) public InfoTable CreateInfoTable(java.lang.String infoTableName)
- Service Category:
- Creation
- Service Description:
- Create an empty InfoTable.
- Parameters:
infoTableName
- Name for the infotable - STRING- Returns:
- result Resultant data - INFOTABLE
-
-