Column<T>
, Comparator<T>
, Iterable<T>
NumberColumn
BooleanColumn
, DateColumn
, DoubleColumn
, StringColumn
, 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 |
---|---|---|
int[] |
asIntArray() |
|
default Set<Integer> |
asIntegerSet() |
|
default Table |
countByCategory() |
append, append, appendCell, appendCell, appendMissing, asBytes, asDoubleArray, asObjectArray, byteSize, clear, columnWidth, copy, countMissing, countUnique, create, doWithEach, emptyCopy, emptyCopy, fillMissing, fillMissing, first, get, getDouble, getString, getUnformattedString, inRange, isEmpty, isMissing, isMissing, isNotMissing, lag, last, lead, name, print, removeMissing, rolling, rowComparator, rows, sampleN, sampleX, set, setName, size, sortAscending, sortDescending, subset, summary, title, type, unique, where
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
forEach, iterator, spliterator
Copyright © 2018. All rights reserved.