util
pentaho.data. util
AMD Module
require(["pentaho/data/util"], function(util) { /* code goes here */ });
The util
namespace contains functions for common tasks around dealing with data.
Source: javascript/web/pentaho/data/util.js, line 22
Methods
Name | Description |
---|---|
buildRowPredicateNotAllNullColumns(columnIndexes) : function | Builds a row predicate function that tests if not all of the given columns contain a null value. |
createFilterFromCellsMap(cellsMap, dataPlain, context) : pentaho.data.filter.Abstract | Creates a data filter from the given cells map, source data table and Type API context. |
createFilterIsEqualFromCell(dataPlain, columnId, cell, context) : pentaho.data.filter.IsEqual | Creates an |
filterByPredicate(dataPlain, rowPredicate) : pentaho.data.ITable | Filters a plain data table given a row predicate and returns a resulting data view. |
getCellValue(valueOrCell) : any | Gets the value of a cell, or value, directly. |
getColumnIndexesByIds(dataTable, columnIds) : Array.<<code>number > | Gets the array of column indexes given a data table and an array of column identifiers. |
getFilteredRowsByPredicate(dataPlain, rowPredicate) : Array.<<code>number > | Filters a plain data table given a row predicate and returns the resulting filtered row indexes. |
hasAnyKeyColumns(dataTable) : boolean | Gets a value that indicates if a given data table has any key columns. |
isColumnKeyEffective(dataTable, columnIndex, hasDataKeyColumns) : boolean | Gets a value that indicates if a column is an effective key. |
isColumnTypeContinuous(dataType) : boolean | Gets a value that indicates if a given column data type has the continuous capability. |
Methods Details
buildRowPredicateNotAllNullColumns(columnIndexes) : function | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Builds a row predicate function that tests if not all of the given columns contain a null value. Source: javascript/web/pentaho/data/util.js, line 241
|
createFilterFromCellsMap(cellsMap, dataPlain, context) : pentaho.data.filter.Abstract | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a data filter from the given cells map, source data table and Type API context. Source: javascript/web/pentaho/data/util.js, line 118
|
createFilterIsEqualFromCell(dataPlain, columnId, cell, context) : pentaho.data.filter.IsEqual | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an Returns Source: javascript/web/pentaho/data/util.js, line 154
|
filterByPredicate(dataPlain, rowPredicate) : pentaho.data.ITable | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Filters a plain data table given a row predicate and returns a resulting data view. If all rows are selected, then the given plain table is returned, directly. Source: javascript/web/pentaho/data/util.js, line 200
|
getCellValue(valueOrCell) : any | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets the value of a cell, or value, directly. Source: javascript/web/pentaho/data/util.js, line 101
|
getColumnIndexesByIds(dataTable, columnIds) : Array.<<code>number > | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the array of column indexes given a data table and an array of column identifiers. If any of the given column identifiers is not defined, Source: javascript/web/pentaho/data/util.js, line 171
|
getFilteredRowsByPredicate(dataPlain, rowPredicate) : Array.<<code>number > | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Filters a plain data table given a row predicate and returns the resulting filtered row indexes. If all rows are selected, then Source: javascript/web/pentaho/data/util.js, line 218
|
hasAnyKeyColumns(dataTable) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets a value that indicates if a given data table has any key columns. Source: javascript/web/pentaho/data/util.js, line 41
See also: pentaho.data.ITable#isColumnKey |
isColumnKeyEffective(dataTable, columnIndex, hasDataKeyColumns) : boolean | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets a value that indicates if a column is an effective key. A column is considered an effective key if Source: javascript/web/pentaho/data/util.js, line 71
|
isColumnTypeContinuous(dataType) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets a value that indicates if a given column data type has the continuous capability. The data types Source: javascript/web/pentaho/data/util.js, line 90
|