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 24
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) : pentaho.data.filter.Abstract | Creates a data filter from the given cells map and source data table. |
createFilterIsEqualFromCell(dataPlain, columnId, cell) : 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.< | Gets the array of column indexes given a data table and an array of column identifiers. |
getFilteredRowsByPredicate(dataPlain, rowPredicate) : Array.< | 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 233
|
createFilterFromCellsMap(cellsMap, dataPlain) : pentaho.data.filter.Abstract | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a data filter from the given cells map and source data table. Source: javascript/web/pentaho/data/util.js, line 117
|
createFilterIsEqualFromCell(dataPlain, columnId, cell) : pentaho.data.filter.IsEqual | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an Returns Source: javascript/web/pentaho/data/util.js, line 148
|
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 192
|
getCellValue(valueOrCell) : any | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets the value of a cell, or value, directly. Source: javascript/web/pentaho/data/util.js, line 103
|
getColumnIndexesByIds(dataTable, columnIds) : Array.< | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 163
|
getFilteredRowsByPredicate(dataPlain, rowPredicate) : Array.< | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 210
|
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 43
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 73
|
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 92
|