Modifier and Type | Class and Description |
---|---|
class |
AggregateFunction<INCOL extends Column<?>,OUT>
A partial implementation of aggregate functions to summarize over a numeric column
|
Constructor and Description |
---|
Summarizer(Table sourceTable,
Column<?> column,
AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given column in the given sourceTable,
by applying the given functions
|
Summarizer(Table sourceTable,
Column<?> column1,
Column<?> column2,
AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given columns in the given sourceTable,
by applying the given functions
|
Summarizer(Table sourceTable,
Column<?> column1,
Column<?> column2,
AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given columns in the given sourceTable,
by applying the given functions
|
Summarizer(Table sourceTable,
Column<?> column1,
Column<?> column2,
Column<?> column3,
AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given column2 in the given sourceTable,
by applying the given functions
|
Summarizer(Table sourceTable,
Column<?> column1,
Column<?> column2,
Column<?> column3,
AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given column2 in the given sourceTable,
by applying the given functions
|
Summarizer(Table sourceTable,
Column<?> column1,
Column<?> column2,
Column<?> column3,
AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given column2 in the given sourceTable,
by applying the given functions
|
Summarizer(Table sourceTable,
Column<?> column1,
Column<?> column2,
Column<?> column3,
Column<?> column4,
AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given columns in the given sourceTable,
by applying the given functions
|
Summarizer(Table sourceTable,
Column<?> column1,
Column<?> column2,
Column<?> column3,
Column<?> column4,
AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given columns in the given sourceTable,
by applying the given functions
|
Summarizer(Table sourceTable,
Column<?> column1,
Column<?> column2,
Column<?> column3,
Column<?> column4,
AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given columns in the given sourceTable,
by applying the given functions
|
Summarizer(Table sourceTable,
Column<?> column1,
Column<?> column2,
Column<?> column3,
Column<?> column4,
AggregateFunction<?,?>... functions)
Returns an object capable of summarizing the given columns in the given sourceTable,
by applying the given functions
|
Modifier and Type | Interface and Description |
---|---|
interface |
CategoricalColumn<T>
A column type that can be summarized, or serve as a grouping variable in cross tabs or other aggregation operations.
|
interface |
NumericColumn<T> |
Modifier and Type | Class and Description |
---|---|
class |
BooleanColumn
A column in a base table that contains float values
|
class |
DateColumn
A column in a base table that contains float values
|
class |
DateTimeColumn
A column in a table that contains long-integer encoded (packed) local date-time values
|
class |
DoubleColumn |
class |
FloatColumn |
class |
IntColumn |
class |
LongColumn |
class |
NumberColumn<T extends Number> |
class |
ShortColumn |
class |
StringColumn
A column that contains String values.
|
class |
TextColumn
A column that contains String values.
|
class |
TimeColumn
A column in a base table that contains float values
|
Modifier and Type | Method and Description |
---|---|
Column<Boolean> |
BooleanColumn.append(Column<Boolean> column,
int row) |
Column<String> |
TextColumn.append(Column<String> column,
int row) |
Column<String> |
StringColumn.append(Column<String> column,
int row) |
Column<?> |
Table.column(int columnIndex)
Returns the column at the given index in the column list
|
Column<?>[] |
Table.columnArray() |
Column<?> |
ColumnType.create(String name) |
default <R> Column<R> |
NumericColumn.mapInto(DoubleFunction<? extends R> fun,
Column<R> into)
Maps the function across all rows, appending the results to the provided Column
|
Column<Boolean> |
BooleanColumn.set(int row,
Column<Boolean> column,
int sourceRow) |
Column<String> |
TextColumn.set(int row,
Column<String> column,
int sourceRow) |
Column<String> |
StringColumn.set(int row,
Column<String> column,
int sourceRow) |
Column<Boolean> |
BooleanColumn.setMissing(int i) |
Column<LocalDate> |
DateColumn.setMissing(int i) |
Column<String> |
TextColumn.setMissing(int i) |
Column<LocalDateTime> |
DateTimeColumn.setMissing(int i) |
Column<Short> |
ShortColumn.setMissing(int i) |
Column<Long> |
LongColumn.setMissing(int i) |
Column<Float> |
FloatColumn.setMissing(int i) |
Column<String> |
StringColumn.setMissing(int i) |
Modifier and Type | Method and Description |
---|---|
List<Column<?>> |
Table.columns()
Returns the list of columns
|
Modifier and Type | Method and Description |
---|---|
Table |
Table.addColumns(Column<?>... cols)
Adds the given column to this table
|
BooleanColumn |
BooleanColumn.append(Column<Boolean> column) |
Column<Boolean> |
BooleanColumn.append(Column<Boolean> column,
int row) |
DoubleColumn |
DoubleColumn.append(Column<Double> column) |
DoubleColumn |
DoubleColumn.append(Column<Double> column,
int row) |
FloatColumn |
FloatColumn.append(Column<Float> column) |
FloatColumn |
FloatColumn.append(Column<Float> column,
int row) |
IntColumn |
IntColumn.append(Column<Integer> column) |
IntColumn |
IntColumn.append(Column<Integer> column,
int row) |
DateColumn |
DateColumn.append(Column<LocalDate> column) |
DateColumn |
DateColumn.append(Column<LocalDate> column,
int row) |
DateTimeColumn |
DateTimeColumn.append(Column<LocalDateTime> column) |
DateTimeColumn |
DateTimeColumn.append(Column<LocalDateTime> column,
int row) |
TimeColumn |
TimeColumn.append(Column<LocalTime> column) |
TimeColumn |
TimeColumn.append(Column<LocalTime> column,
int row) |
LongColumn |
LongColumn.append(Column<Long> column) |
LongColumn |
LongColumn.append(Column<Long> column,
int row) |
ShortColumn |
ShortColumn.append(Column<Short> column) |
ShortColumn |
ShortColumn.append(Column<Short> column,
int row) |
TextColumn |
TextColumn.append(Column<String> column) |
StringColumn |
StringColumn.append(Column<String> column) |
Column<String> |
TextColumn.append(Column<String> column,
int row) |
Column<String> |
StringColumn.append(Column<String> column,
int row) |
int |
Table.columnIndex(Column<?> column)
Returns the index of the given column (its position in the list of columns)
|
default boolean |
ColumnType.compare(int rowNumber,
Column<?> temp,
Column<?> original) |
default boolean |
ColumnType.compare(int rowNumber,
Column<?> temp,
Column<?> original) |
static Table |
Table.create(String tableName,
Column<?>... columns)
Returns a new table with the given columns and given name
|
Table |
Table.insertColumn(int index,
Column<?> column)
Adds the given column to this table at the given position in the column list
|
default <R> Column<R> |
NumericColumn.mapInto(DoubleFunction<? extends R> fun,
Column<R> into)
Maps the function across all rows, appending the results to the provided Column
|
BooleanColumn |
BooleanColumn.max(Column<Boolean> other) |
DoubleColumn |
DoubleColumn.max(Column<Double> other) |
FloatColumn |
FloatColumn.max(Column<Float> other) |
IntColumn |
IntColumn.max(Column<Integer> other) |
DateColumn |
DateColumn.max(Column<LocalDate> other) |
DateTimeColumn |
DateTimeColumn.max(Column<LocalDateTime> other) |
TimeColumn |
TimeColumn.max(Column<LocalTime> other) |
LongColumn |
LongColumn.max(Column<Long> other) |
ShortColumn |
ShortColumn.max(Column<Short> other) |
StringColumn |
StringColumn.max(Column<String> other) |
BooleanColumn |
BooleanColumn.min(Column<Boolean> other) |
DoubleColumn |
DoubleColumn.min(Column<Double> other) |
FloatColumn |
FloatColumn.min(Column<Float> other) |
IntColumn |
IntColumn.min(Column<Integer> other) |
DateColumn |
DateColumn.min(Column<LocalDate> other) |
DateTimeColumn |
DateTimeColumn.min(Column<LocalDateTime> other) |
TimeColumn |
TimeColumn.min(Column<LocalTime> other) |
LongColumn |
LongColumn.min(Column<Long> other) |
ShortColumn |
ShortColumn.min(Column<Short> other) |
StringColumn |
StringColumn.min(Column<String> other) |
Table |
Table.removeColumns(Column<?>... columns)
Removes the given columns
|
Table |
Table.replaceColumn(int colIndex,
Column<?> newColumn)
Replaces an existing column (by index) in this table with the given new column
|
Table |
Table.replaceColumn(String columnName,
Column<?> newColumn)
Replaces an existing column (by name) in this table with the given new column
|
Table |
Table.retainColumns(Column<?>... columns)
Removes all columns except for those given in the argument from this table
|
Table |
Table.select(Column<?>... columns) |
Column<Boolean> |
BooleanColumn.set(int row,
Column<Boolean> column,
int sourceRow) |
DoubleColumn |
DoubleColumn.set(int row,
Column<Double> column,
int sourceRow) |
FloatColumn |
FloatColumn.set(int row,
Column<Float> column,
int sourceRow) |
IntColumn |
IntColumn.set(int row,
Column<Integer> column,
int sourceRow) |
DateColumn |
DateColumn.set(int row,
Column<LocalDate> column,
int sourceRow) |
DateTimeColumn |
DateTimeColumn.set(int row,
Column<LocalDateTime> column,
int sourceRow) |
TimeColumn |
TimeColumn.set(int row,
Column<LocalTime> column,
int sourceRow) |
LongColumn |
LongColumn.set(int row,
Column<Long> column,
int sourceRow) |
ShortColumn |
ShortColumn.set(int row,
Column<Short> column,
int sourceRow) |
Column<String> |
TextColumn.set(int row,
Column<String> column,
int sourceRow) |
Column<String> |
StringColumn.set(int row,
Column<String> column,
int sourceRow) |
BooleanColumn |
BooleanColumn.set(Selection condition,
Column<Boolean> other) |
DoubleColumn |
DoubleColumn.set(Selection condition,
Column<Double> other) |
FloatColumn |
FloatColumn.set(Selection condition,
Column<Float> other) |
IntColumn |
IntColumn.set(Selection condition,
Column<Integer> other) |
DateColumn |
DateColumn.set(Selection condition,
Column<LocalDate> other) |
DateTimeColumn |
DateTimeColumn.set(Selection condition,
Column<LocalDateTime> other) |
TimeColumn |
TimeColumn.set(Selection condition,
Column<LocalTime> other) |
LongColumn |
LongColumn.set(Selection condition,
Column<Long> other) |
ShortColumn |
ShortColumn.set(Selection condition,
Column<Short> other) |
StringColumn |
StringColumn.set(Selection condition,
Column<String> other) |
Summarizer |
Table.summarize(Column<?> numberColumn,
AggregateFunction<?,?>... function) |
Summarizer |
Table.summarize(Column<?> column1,
Column<?> column2,
AggregateFunction<?,?>... function) |
Summarizer |
Table.summarize(Column<?> column1,
Column<?> column2,
AggregateFunction<?,?>... function) |
Summarizer |
Table.summarize(Column<?> column1,
Column<?> column2,
Column<?> column3,
AggregateFunction<?,?>... function) |
Summarizer |
Table.summarize(Column<?> column1,
Column<?> column2,
Column<?> column3,
AggregateFunction<?,?>... function) |
Summarizer |
Table.summarize(Column<?> column1,
Column<?> column2,
Column<?> column3,
AggregateFunction<?,?>... function) |
Summarizer |
Table.summarize(Column<?> column1,
Column<?> column2,
Column<?> column3,
Column<?> column4,
AggregateFunction<?,?>... function) |
Summarizer |
Table.summarize(Column<?> column1,
Column<?> column2,
Column<?> column3,
Column<?> column4,
AggregateFunction<?,?>... function) |
Summarizer |
Table.summarize(Column<?> column1,
Column<?> column2,
Column<?> column3,
Column<?> column4,
AggregateFunction<?,?>... function) |
Summarizer |
Table.summarize(Column<?> column1,
Column<?> column2,
Column<?> column3,
Column<?> column4,
AggregateFunction<?,?>... function) |
Constructor and Description |
---|
Table(String name,
Column<?>... columns)
Returns a new Table initialized with the given names and columns
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractColumn<T>
Partial implementation of the
Column interface |
Modifier and Type | Method and Description |
---|---|
Column<T> |
Column.append(Column<T> column) |
Column<T> |
Column.append(Column<T> column,
int row) |
Column<T> |
Column.append(T value) |
Column<T> |
Column.appendCell(String stringValue) |
Column<T> |
Column.appendCell(String stringValue,
AbstractParser<?> parser) |
Column<T> |
Column.appendMissing()
Appends a missing value appropriate to the column
|
Column<T> |
Column.appendObj(Object value) |
Column<T> |
Column.copy()
Returns a deep copy of the receiver
|
Column<Void> |
SkipColumnType.create(String name) |
abstract Column<T> |
AbstractColumn.emptyCopy() |
Column<T> |
Column.emptyCopy()
Returns a copy of the receiver with no data.
|
Column<T> |
Column.emptyCopy(int rowSize)
Returns an empty copy of the receiver, with its internal storage initialized to the given row size.
|
default Column<T> |
Column.filter(Predicate<? super T> test)
Returns a new Column of the same type with only those rows satisfying the predicate
|
default Column<T> |
Column.first(int numRows) |
default Column<T> |
Column.inRange(int start,
int end)
Returns a column containing the rows in this column beginning with start inclusive, and ending with end exclusive
|
Column<T> |
Column.lag(int n)
Returns a column of the same type and size as the receiver, containing the receivers values offset by n.
|
default Column<T> |
Column.last(int numRows) |
default Column<T> |
Column.lead(int n)
Returns a column of the same type as the receiver, containing the receivers values offset -n
For example if you lead a column containing 2, 3, 4 by 1, you get a column containing 3, 4, NA.
|
default Column<T> |
Column.map(Function<? super T,? extends T> fun)
Maps the function across all rows, appending the results to a new Column of the same type
|
default <R> Column<R> |
Column.mapInto(Function<? super T,? extends R> fun,
Column<R> into)
Maps the function across all rows, appending the results to the provided Column
|
default Column<T> |
Column.max(Column<T> other)
Returns a column containing the element-wise min between this column and other column
TODO(lwhite) Override in column subtypes for better performance
|
default Column<T> |
Column.min(Column<T> other)
Returns a column containing the element-wise min between this column and other column
TODO(lwhite) Override in column subtypes for better performance
|
Column<T> |
Column.removeMissing() |
default Column<T> |
Column.sampleN(int n)
Returns a column containing a random sample of the values in this column
|
default Column<T> |
Column.sampleX(double proportion)
Returns a table consisting of randomly selected values from this column.
|
Column<T> |
Column.set(int row,
Column<T> sourceColumn,
int sourceRow) |
Column<T> |
Column.set(int row,
T value) |
default Column<T> |
Column.set(Selection condition,
Column<T> other)
Updates this column where values matching the selection are replaced with the corresponding value
from the given column
|
default Column<T> |
Column.set(Selection rowSelection,
T newValue)
Conditionally update this column, replacing current values with newValue for all rows where the current value
matches the selection criteria
|
Column<T> |
Column.setMissing(int i) |
Column<T> |
AbstractColumn.setName(String name) |
Column<T> |
Column.setName(String name)
Sets the columns name to the given string
|
default Column<T> |
Column.sorted(Comparator<? super T> comp)
Returns a new Column of the same type sorted according to the provided Comparator
|
default Column<T> |
Column.subset(int[] rows) |
Column<T> |
Column.unique()
Returns a column of the same type as the receiver, containing only the unique values of the receiver.
|
Column<T> |
Column.where(Selection selection) |
Modifier and Type | Method and Description |
---|---|
Column<T> |
Column.append(Column<T> column) |
Column<T> |
Column.append(Column<T> column,
int row) |
default <R> Column<R> |
Column.mapInto(Function<? super T,? extends R> fun,
Column<R> into)
Maps the function across all rows, appending the results to the provided Column
|
default Column<T> |
Column.max(Column<T> other)
Returns a column containing the element-wise min between this column and other column
TODO(lwhite) Override in column subtypes for better performance
|
default Column<T> |
Column.min(Column<T> other)
Returns a column containing the element-wise min between this column and other column
TODO(lwhite) Override in column subtypes for better performance
|
Column<T> |
Column.set(int row,
Column<T> sourceColumn,
int sourceRow) |
default Column<T> |
Column.set(Selection condition,
Column<T> other)
Updates this column where values matching the selection are replaced with the corresponding value
from the given column
|
Modifier and Type | Interface and Description |
---|---|
interface |
BooleanMapUtils
An interface for mapping operations unique to Boolean columns
|
Modifier and Type | Interface and Description |
---|---|
interface |
DateFilters |
interface |
DateMapFunctions
An interface for mapping operations unique to Date columns
|
Modifier and Type | Method and Description |
---|---|
static String |
DateMapFunctions.dateColumnName(Column<LocalDate> column1,
int value,
TemporalUnit unit) |
Modifier and Type | Interface and Description |
---|---|
interface |
DateTimeFilters |
interface |
DateTimeMapFunctions |
Modifier and Type | Method and Description |
---|---|
static String |
DateTimeMapFunctions.dateTimeColumnName(Column<LocalDateTime> column1,
long value,
TemporalUnit unit) |
Modifier and Type | Interface and Description |
---|---|
interface |
NumberPredicates
Support for built-in predicates on double column
|
Modifier and Type | Interface and Description |
---|---|
interface |
StringFilters |
interface |
StringMapFunctions
String utility functions.
|
interface |
StringReduceUtils |
Modifier and Type | Method and Description |
---|---|
default StringColumn |
StringMapFunctions.commonPrefix(Column<?> column2) |
default StringColumn |
StringMapFunctions.commonSuffix(Column<?> column2) |
default DoubleColumn |
StringMapFunctions.distance(Column<?> column2)
Returns a column containing the levenshtein distance between the two given string columns
|
default Selection |
StringFilters.equalsIgnoreCase(Column<String> other) |
default Selection |
StringFilters.eval(BiPredicate<String,String> predicate,
Column<String> otherColumn) |
default Selection |
StringFilters.isEqualTo(Column<String> other) |
default Selection |
StringFilters.isNotEqualTo(Column<String> other) |
default StringColumn |
StringMapFunctions.join(String separator,
Column<?>... columns)
Return a copy of this column with the given string appended
|
default Selection |
StringFilters.startsWith(Column<String> other) |
Modifier and Type | Interface and Description |
---|---|
interface |
TimeFilters |
interface |
TimeMapFunctions |
Modifier and Type | Method and Description |
---|---|
static it.unimi.dsi.fastutil.ints.IntComparator |
SortUtils.rowComparator(Column<?> column,
Sort.Order order)
Returns a comparator for the column matching the specified name
|
Modifier and Type | Field and Description |
---|---|
protected Column<?> |
RollingColumn.column |
Modifier and Type | Method and Description |
---|---|
<INCOL extends Column<?>,OUT> |
RollingColumn.calc(AggregateFunction<INCOL,OUT> function) |
Modifier and Type | Method and Description |
---|---|
<INCOL extends Column<?>,OUT> |
RollingColumn.calc(AggregateFunction<INCOL,OUT> function) |
abstract Column<?> |
Relation.column(int columnIndex)
Returns the column at columnIndex (0-based)
|
Column<?> |
TableSlice.column(int columnIndex) |
Column<?> |
Relation.column(String columnName)
Returns the column with the given columnName, ignoring case
|
Column<?> |
TableSlice.column(String columnName) |
Modifier and Type | Method and Description |
---|---|
abstract List<Column<?>> |
Relation.columns()
Returns a list of all the columns in the relation
|
List<Column<?>> |
TableSlice.columns() |
List<Column<?>> |
Relation.columns(int... columnIndices)
Returns the columns whose indices are given in the input array
|
List<Column<?>> |
Relation.columns(String... columnName)
Returns the columns whose names are given in the input array
|
List<Column<?>> |
Relation.columnsOfType(ColumnType type) |
Modifier and Type | Method and Description |
---|---|
abstract Relation |
Relation.addColumns(Column<?>... cols) |
TableSlice |
TableSlice.addColumns(Column<?>... column) |
abstract int |
Relation.columnIndex(Column<?> col)
Returns the index of the given column
|
int |
TableSlice.columnIndex(Column<?> column) |
boolean |
Relation.containsColumn(Column<?> column) |
abstract Relation |
Relation.removeColumns(Column<?>... columns)
Removes the given columns from the receiver
|
TableSlice |
TableSlice.removeColumns(Column<?>... columns) |
Constructor and Description |
---|
RollingColumn(Column<?> column,
int window) |
Copyright © 2019. All rights reserved.