Column<T>
, Comparator<T>
, Iterable<T>
AbstractStringColumn
, BooleanColumn
, DateColumn
, DateTimeColumn
, InstantColumn
, IntColumn
, LongColumn
, ShortColumn
, StringColumn
, TextColumn
, TimeColumn
public interface CategoricalColumn<T> extends Column<T>
The column data is generally discrete, however NumberColumn implements CategoricalColumn so that it can be used to summarize when it contains ints. If you use it to summarize over a large range of floating point numbers, you will likely run out of memory.
Supporting subtypes include: - StringColumn - BooleanColumn - DateColumn, - etc
DateTimeColumn is not included. TimeColumn can be converted to ints without loss of data, so it does implement this interface
Modifier and Type | Method | Description |
---|---|---|
default Table |
countByCategory() |
Returns a count of the number of elements in each category (i.e., the number of repetitions of
each value) TODO: This needs to be well tested, especially for IntColumn
|
allMatch, anyMatch, append, append, append, appendCell, appendCell, appendMissing, appendObj, asBytes, asList, asObjectArray, asSet, asStringColumn, byteSize, clear, columnWidth, contains, copy, count, count, countMissing, countUnique, emptyCopy, emptyCopy, equals, filter, first, get, getString, getUnformattedString, indexOf, inRange, interpolate, isEmpty, isMissing, isMissing, isNotMissing, lag, last, lead, map, map, mapInto, max, max, min, min, name, noneMatch, parser, print, reduce, reduce, removeMissing, rolling, rowComparator, sampleN, sampleX, set, set, set, set, set, set, setMissing, setMissingTo, setName, setParser, size, sortAscending, sortDescending, sorted, subset, summary, title, type, unique, valueHash, where
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
forEach, iterator, spliterator
default Table countByCategory()
Copyright © 2022. All rights reserved.