interface VariantTableBase.NonEmpty<R,C,V,Tp>
undocumented
Extends: Streamable.NonEmpty<T>
, VariantTableBase<R,C,V,Tp>
Implemented by: VariantTable.NonEmpty<R,C,V>
, TableBase.NonEmpty<R,C,V,Tp>
Type parameters
Name | Constraints | Default | Description |
---|---|---|---|
R | undocumented | ||
C | undocumented | ||
V | undocumented | ||
Tp | VariantTableBase.Types | VariantTableBase.Types | undocumented |
Properties
amountRows
Returns the amount of rows in the collection.
amountRows
isEmpty
Returns false since this collection is known to be non-empty
isEmpty
rowMap
Returns the Map representation of this collection.
rowMap
size
Returns the amount of entries in the collection.
size
Methods
[Symbol.iterator]
Returns a FastIterator
instance used to iterate over the values of this Iterable
.
[Symbol.iterator]
FastIterator
instance used to iterate over the values of this Iterable
.asNormal
Returns this collection typed as a 'possibly empty' collection.
asNormal
assumeNonEmpty
Returns a self reference since this collection is known to be non-empty.
assumeNonEmpty
filter
Returns a collection containing only those entries that satisfy given pred
predicate.
filter
pred
predicate.filterRows
Returns a collection containing only those rows that satisfy given pred
predicate.
filterRows
pred
predicate.forEach
Performs given function f
for each entry of the collection, using given state
as initial traversal state.
forEach
f
for each entry of the collection, using given state
as initial traversal state.get
Returns the value at given row
and column
keys, or the otherwise
value if no value is present.
get
row
and column
keys, or the otherwise
value if no value is present.getRow
Returns a map containing the column keys and values in the given row
.
getRow
row
.hasRowKey
Returns true if given row
key is in the collection.
hasRowKey
row
key is in the collection.hasValueAt
Returns true if the collection has a value for given row
and column
keys.
hasValueAt
row
and column
keys.mapValues
Returns a non-empty collection with the same row and column keys, but where the given mapFun
function is applied to each entry value.
mapValues
mapFun
function is applied to each entry value.nonEmpty
Returns true since this collection is known to be non-empty
nonEmpty
remove
Returns the collection where the value at given row
and column
keys is removed.
remove
row
and column
keys is removed.removeAndGet
Returns a tuple containing the collection with the value at given row
and column
removed, and the removed value. If no such value is found, it returns undefined.
removeAndGet
row
and column
removed, and the removed value. If no such value is found, it returns undefined.removeEntries
Returns the collection where the given entries
are removed.
removeEntries
entries
are removed.removeRow
Returns the collection where all values in given row
are removed.
removeRow
row
are removed.removeRowAndGet
Returns a tuple containing the collection with the values at given row
removed, and a map containing the removed columns and values. If no such row is found, it returns undefined.
removeRowAndGet
row
removed, and a map containing the removed columns and values. If no such row is found, it returns undefined.removeRows
Returns the collection where the values for each row key in given rows
are removed.
removeRows
rows
are removed.stream
Returns a non-empty Stream containing all entries of this collection as tuples of row key, column key, and value.
stream
streamRows
Returns a non-empty Stream containing all row keys of this collection.
streamRows
streamValues
Returns a non-empty Stream containing all values of this collection.
streamValues
toArray
Returns a non-empty array containing all entries in this collection.
toArray
toJSON
Returns a JSON representation of this collection.
toJSON
toString
Returns a string representation of this collection.
toString