Class DatasetUtilities.PyDataSet
java.lang.Object
org.python.core.PyObject
org.python.core.PySequence
com.inductiveautomation.ignition.common.script.abc.AbstractJythonSequence
com.inductiveautomation.ignition.common.script.builtin.DatasetUtilities.PyDataSet
- All Implemented Interfaces:
- Dataset,- JythonSequence,- Serializable
- Enclosing class:
- DatasetUtilities
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class org.python.core.PySequenceorg.python.core.PySequence.DefaultIndexDelegateNested classes/interfaces inherited from class org.python.core.PyObjectorg.python.core.PyObject.ConversionException
- 
Field SummaryFieldsFields inherited from class org.python.core.PySequencedelegatorFields inherited from class org.python.core.PyObjectattributes, gcMonitorGlobal, objtype, TYPE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionorg.python.core.PyObject__add__(org.python.core.PyObject other) int__len__()intbinarySearch(int column, Object key) Performs a binary search on the specified column, looking for the specified key.org.python.core.PyIntegercount(org.python.core.PyObject element) Return occurrences ofelementin sequence.getColumnAsList(int col) intReturns the number of columns.intgetColumnIndex(String name) Returns the index of the given column, case-insensitivegetColumnName(int col) Returns the name of the given column.Returns an unmodifiable list of this dataset's column names, in order.Class<?>getColumnType(int col) Returns the type of the given column.Returns an unmodifiable list of this dataset's column types, in order.doublegetPrimitiveValueAt(int row, int col) If the given column is a numeric type or a Date, then the value will be returned as a double.getQualityAt(int row, int col) Returns the quality of the value at the given location.intReturn the number of rows in this datasetprotected org.python.core.PyObjectgetslice(int start, int stop, int step) Retrieve a 'slice' of this sequence; fromstart(inclusive) tostop(exclusive), stepping bystep.getValueAt(int row, int col) Returns the value in the dataset at the given location.getValueAt(int row, String colName) Returns the value at the given row and at a column named colName.booleanWhether this dataset has any quality data to report.intindex(org.python.core.PyObject element) Returns the position of the first occurrence ofelementin the sequence.protected DatasetUtilities.PyDataSet.PyRowpyget(int index) protected org.python.core.PyObjectrepeat(int count) Implements the repeat operation, which is used by Jython when performingsequence * count, which returns a new list containing sequence * count items.voidUsed for serialization only.protected List<DatasetUtilities.PyDataSet.PyRow>sublist(int start, int stop) Retrieve a subset of this sequence, fromstart(inclusive) tostop(exclusive).toString()Methods inherited from class com.inductiveautomation.ignition.common.script.abc.AbstractJythonSequence__mul__, __repr__, __rmul__, __str__, isMappingType, isNumberType, isSequenceTypeMethods inherited from class org.python.core.PySequence__delitem__, __delslice__, __eq__, __finditem__, __finditem__, __ge__, __getitem__, __getslice__, __gt__, __iter__, __le__, __lt__, __ne__, __nonzero__, __setitem__, __setitem__, __setslice__, __tojava__, boundToSequence, cmp, del, delRange, delslice, fastSequence, isSubType, pyset, runsupportedopMessage, setslice, sliceLength, unsupportedopMessageMethods inherited from class org.python.core.PyObject__abs__, __and__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __cmp__, __coerce__, __coerce_ex__, __complex__, __contains__, __delattr__, __delattr__, __delete__, __delitem__, __delslice__, __dir__, __div__, __divmod__, __ensure_finalizer__, __findattr__, __findattr__, __findattr_ex__, __finditem__, __float__, __floordiv__, __format__, __get__, __getattr__, __getattr__, __getitem__, __getnewargs__, __getslice__, __hash__, __hex__, __iadd__, __iand__, __idiv__, __idivmod__, __ifloordiv__, __ilshift__, __imod__, __imul__, __index__, __int__, __invert__, __ior__, __ipow__, __irshift__, __isub__, __iternext__, __itruediv__, __ixor__, __long__, __lshift__, __mod__, __neg__, __not__, __oct__, __or__, __pos__, __pow__, __pow__, __radd__, __rand__, __rawdir__, __rdiv__, __rdivmod__, __reduce__, __reduce_ex__, __reduce_ex__, __rfloordiv__, __rlshift__, __rmod__, __ror__, __rpow__, __rrshift__, __rshift__, __rsub__, __rtruediv__, __rxor__, __set__, __setattr__, __setattr__, __setitem__, __setslice__, __sub__, __truediv__, __trunc__, __unicode__, __xor__, _add, _and, _callextra, _cmp, _div, _divmod, _doget, _doget, _doset, _eq, _floordiv, _ge, _gt, _iadd, _iand, _idiv, _idivmod, _ifloordiv, _ilshift, _imod, _imul, _in, _ior, _ipow, _irshift, _is, _isnot, _isub, _itruediv, _ixor, _jcall, _jcallexc, _jthrow, _le, _lshift, _lt, _mod, _mul, _ne, _notin, _or, _pow, _rshift, _sub, _truediv, _unsupportedop, _xor, adaptToCoerceTuple, asDouble, asIndex, asIndex, asInt, asInt, asIterable, asLong, asLong, asName, asName, asString, asString, asStringOrNull, asStringOrNull, bit_length, conjugate, delDict, delType, dispatch__init__, equals, fastGetClass, fastGetDict, finalize, getDict, getJavaProxy, getType, hashCode, impAttr, implementsDescrDelete, implementsDescrGet, implementsDescrSet, invoke, invoke, invoke, invoke, invoke, invoke, isCallable, isDataDescr, isIndex, isInteger, mergeClassDict, mergeDictAttr, mergeListAttr, noAttributeError, object___subclasshook__, readonlyAttributeError, setDict, setTypeMethods inherited from interface com.inductiveautomation.ignition.common.script.abc.JythonSequence__contains__, __iter__
- 
Field Details- 
data
- 
rows
 
- 
- 
Constructor Details- 
PyDataSetpublic PyDataSet()No arg constructor for serialization.
- 
PyDataSet
 
- 
- 
Method Details- 
getUnderlyingDataset
- 
indexpublic int index(org.python.core.PyObject element) throws org.python.core.PyIgnoreMethodTag Description copied from interface:JythonSequenceReturns the position of the first occurrence ofelementin the sequence.- Specified by:
- indexin interface- JythonSequence
- Throws:
- org.python.core.PyIgnoreMethodTag
 
- 
countpublic org.python.core.PyInteger count(org.python.core.PyObject element) throws org.python.core.PyIgnoreMethodTag Description copied from interface:JythonSequenceReturn occurrences ofelementin sequence.- Specified by:
- countin interface- JythonSequence
- Throws:
- org.python.core.PyIgnoreMethodTag
 
- 
__len__public int __len__()- Specified by:
- __len__in interface- JythonSequence
- Overrides:
- __len__in class- org.python.core.PyObject
- Returns:
- the length of this mapping.
 
- 
pyget- Specified by:
- pygetin class- AbstractJythonSequence
 
- 
getsliceprotected org.python.core.PyObject getslice(int start, int stop, int step) Description copied from class:AbstractJythonSequenceRetrieve a 'slice' of this sequence; fromstart(inclusive) tostop(exclusive), stepping bystep. Will delegate toAbstractJythonSequence.pyget(int)andAbstractJythonSequence.sublist(int, int), and handle negative indices appropriately.- Overrides:
- getslicein class- AbstractJythonSequence
- Returns:
- A new list from specified elements of the original sequence.
 
- 
sublistDescription copied from class:AbstractJythonSequenceRetrieve a subset of this sequence, fromstart(inclusive) tostop(exclusive).- Specified by:
- sublistin class- AbstractJythonSequence
- See Also:
 
- 
repeatprotected org.python.core.PyObject repeat(int count) throws org.python.core.PyIgnoreMethodTag Description copied from class:AbstractJythonSequenceImplements the repeat operation, which is used by Jython when performingsequence * count, which returns a new list containing sequence * count items. If count is <= 0, returns an empty sequence, ideally of the same type.- Specified by:
- repeatin class- AbstractJythonSequence
- Parameters:
- count- The number of times to repeat the sequence in the output.
- Throws:
- org.python.core.PyIgnoreMethodTag
 
- 
__add__public org.python.core.PyObject __add__(org.python.core.PyObject other) - Specified by:
- __add__in class- AbstractJythonSequence
 
- 
toString- Overrides:
- toStringin class- AbstractJythonSequence
 
- 
getColumnNamesDescription copied from interface:DatasetReturns an unmodifiable list of this dataset's column names, in order.- Specified by:
- getColumnNamesin interface- Dataset
 
- 
getColumnTypesDescription copied from interface:DatasetReturns an unmodifiable list of this dataset's column types, in order.- Specified by:
- getColumnTypesin interface- Dataset
 
- 
getColumnCountpublic int getColumnCount()Description copied from interface:DatasetReturns the number of columns.- Specified by:
- getColumnCountin interface- Dataset
 
- 
getRowCountpublic int getRowCount()Description copied from interface:DatasetReturn the number of rows in this dataset- Specified by:
- getRowCountin interface- Dataset
 
- 
getColumnIndexDescription copied from interface:DatasetReturns the index of the given column, case-insensitive- Specified by:
- getColumnIndexin interface- Dataset
- Parameters:
- name- the name of the column to look up
- Returns:
- the index of the column
 
- 
getColumnNameDescription copied from interface:DatasetReturns the name of the given column.- Specified by:
- getColumnNamein interface- Dataset
 
- 
getColumnTypeDescription copied from interface:DatasetReturns the type of the given column.- Specified by:
- getColumnTypein interface- Dataset
 
- 
getValueAtDescription copied from interface:DatasetReturns the value in the dataset at the given location.- Specified by:
- getValueAtin interface- Dataset
 
- 
getQualityAtDescription copied from interface:DatasetReturns the quality of the value at the given location.- Specified by:
- getQualityAtin interface- Dataset
 
- 
getValueAtDescription copied from interface:DatasetReturns the value at the given row and at a column named colName. Column name matching is case insensitive.- Specified by:
- getValueAtin interface- Dataset
 
- 
getPrimitiveValueAtpublic double getPrimitiveValueAt(int row, int col) Description copied from interface:DatasetIf the given column is a numeric type or a Date, then the value will be returned as a double. (Charts uses this functionality to provide a seamless interface with certain optimized dataset implementations.- Specified by:
- getPrimitiveValueAtin interface- Dataset
 
- 
setDataUsed for serialization only.- Parameters:
- data- If null, creates an empty PyDataSet.
 
- 
binarySearchDescription copied from interface:DatasetPerforms a binary search on the specified column, looking for the specified key. Column MUST be sorted in ascending order. Dataset provides an inefficient default implementation of binary search that allocates a new array list for the entire column.- Specified by:
- binarySearchin interface- Dataset
- Returns:
- index of the search key, if it is contained in the list; otherwise, (-(insertion point) - 1). The insertion point is defined as the point at which the key would be inserted into the list: the index of the first element greater than the key, or list.size(), if all elements in the list are less than the specified key. Note that this guarantees the return value will be greater than or equal to 0, but only if the key is found.
 
- 
getColumnAsList- Specified by:
- getColumnAsListin interface- Dataset
 
- 
hasQualityDatapublic boolean hasQualityData()Description copied from interface:DatasetWhether this dataset has any quality data to report. If false, getQualityAt is expected to returnQualityCode.Good.- Specified by:
- hasQualityDatain interface- Dataset
- See Also:
 
 
-