Modifier and Type | Method and Description |
---|---|
abstract double |
StringAggregateFunction.summarize(Column column) |
abstract double |
AggregateFunction.summarize(Column column) |
abstract double |
NumericAggregateFunction.summarize(Column column) |
abstract double |
TimeAggregateFunction.summarize(Column column) |
abstract double |
DateAggregateFunction.summarize(Column column) |
abstract double |
BooleanAggregateFunction.summarize(Column column) |
abstract double |
DateTimeAggregateFunction.summarize(Column 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,
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
|
Modifier and Type | Interface and Description |
---|---|
interface |
CategoricalColumn
A column type that can be summarized, or serve as a grouping variable in cross tabs or other aggregation operations.
|
interface |
NumberColumn |
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
A column in a base table that contains double precision floating point values
|
class |
StringColumn
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 |
Table.column(int columnIndex)
Returns the column at the given index in the column list
|
Column[] |
Table.columnArray() |
Column |
ColumnType.create(String name) |
Column |
DoubleColumn.unique()
TODO(lwhite): Ensure proper handling of missing values.
|
Column |
NumberColumn.unique() |
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
|
void |
BooleanColumn.append(Column column) |
void |
DateColumn.append(Column column) |
void |
DateTimeColumn.append(Column column) |
void |
DoubleColumn.append(Column column) |
void |
NumberColumn.append(Column column) |
void |
StringColumn.append(Column column) |
void |
TimeColumn.append(Column column) |
int |
Table.columnIndex(Column column)
Returns the index of the given column (its position in the list of columns)
|
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
|
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) |
Summarizer |
Table.summarize(Column numberColumn,
AggregateFunction... function) |
Summarizer |
Table.summarize(Column numberColumn1,
Column numberColumn2,
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) |
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
Partial implementation of the
Column interface |
Modifier and Type | Method and Description |
---|---|
abstract Column |
AbstractColumn.appendCell(String stringvalue) |
Column |
Column.appendCell(String stringValue) |
Column |
Column.appendMissing()
Appends a missing value appropriate to the column
|
Column |
Column.copy()
Returns a deep copy of the receiver
|
static Column |
Column.create(String columnName,
ColumnType type) |
Column |
Column.emptyCopy()
Returns a copy of the receiver with no data.
|
Column |
Column.emptyCopy(int rowSize)
Returns an empty copy of the receiver, with its internal storage initialized to the given row size.
|
default Column |
Column.first(int numRows) |
default Column |
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 |
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 |
Column.last(int numRows) |
default Column |
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.
|
Column |
Column.removeMissing() |
default Column |
Column.rows(int... indices)
Returns a column containing the values in this column with the given indices
|
default Column |
Column.sampleN(int n)
Returns a column containing a random sample of the values in this column
|
default Column |
Column.sampleX(double proportion)
Returns a table consisting of randomly selected values from this column.
|
Column |
AbstractColumn.setName(String name) |
Column |
Column.setName(String name)
Sets the columns name to the given string
|
default Column |
Column.subset(Selection rows) |
Column |
Column.unique()
Returns a column of the same type as the receiver, containing only the unique values of the receiver.
|
Column |
Column.where(Selection selection) |
Modifier and Type | Method and Description |
---|---|
void |
Column.append(Column column) |
Modifier and Type | Interface and Description |
---|---|
interface |
BooleanColumnUtils |
interface |
BooleanMapUtils
An interface for mapping operations unique to Boolean columns
|
Modifier and Type | Method and Description |
---|---|
Selection |
IsTrue.apply(Column columnBeingFiltered) |
Selection |
IsFalse.apply(Column columnBeingFiltered) |
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 column1,
int value,
TemporalUnit unit) |
Modifier and Type | Method and Description |
---|---|
Selection |
ColumnEqualTo.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
BetweenInclusive.apply(Column columnBeingFiltered) |
Selection |
IsOnOrAfter.apply(Column columnBeingFiltered) |
Selection |
IsOnOrBefore.apply(Column columnBeingFiltered) |
Selection |
IsAfter.apply(Column columnBeingFiltered) |
Selection |
ColumnNotEqualTo.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
ColumnIsAfter.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
BetweenExclusive.apply(Column columnBeingFiltered) |
Selection |
ColumnIsBefore.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
EqualTo.apply(Column columnBeingFiltered) |
Selection |
IsBefore.apply(Column columnBeingFiltered) |
Constructor and Description |
---|
ColumnEqualTo(ColumnReference reference,
Column otherColumn) |
ColumnIsAfter(ColumnReference reference,
Column otherColumn) |
ColumnIsBefore(ColumnReference reference,
Column otherColumn) |
ColumnNotEqualTo(ColumnReference reference,
Column otherColumn) |
Modifier and Type | Interface and Description |
---|---|
interface |
DateTimeFilters |
interface |
DateTimeMapFunctions |
Modifier and Type | Method and Description |
---|---|
Selection |
IsInApril.apply(Column columnBeingFiltered) |
Selection |
NotEqualTo.apply(Column columnBeingFiltered) |
Selection |
ColumnEqualTo.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
IsInOctober.apply(Column columnBeingFiltered) |
Selection |
IsFirstDayOfTheMonth.apply(Column columnBeingFiltered) |
Selection |
IsTuesday.apply(Column columnBeingFiltered) |
Selection |
IsInQ4.apply(Column columnBeingFiltered) |
Selection |
IsWednesday.apply(Column columnBeingFiltered) |
Selection |
IsInQ2.apply(Column columnBeingFiltered) |
Selection |
IsInMay.apply(Column columnBeingFiltered) |
Selection |
IsInJuly.apply(Column columnBeingFiltered) |
Selection |
IsInYear.apply(Column columnBeingFiltered) |
Selection |
IsInNovember.apply(Column columnBeingFiltered) |
Selection |
IsOnOrAfter.apply(Column columnBeingFiltered) |
Selection |
IsOnOrBefore.apply(Column columnBeingFiltered) |
Selection |
IsAfter.apply(Column columnBeingFiltered) |
Selection |
IsInFebruary.apply(Column columnBeingFiltered) |
Selection |
IsInJanuary.apply(Column columnBeingFiltered) |
Selection |
IsLastDayOfTheMonth.apply(Column columnBeingFiltered) |
Selection |
IsInQ1.apply(Column columnBeingFiltered) |
Selection |
IsInJune.apply(Column columnBeingFiltered) |
Selection |
IsMonday.apply(Column columnBeingFiltered) |
Selection |
IsInDecember.apply(Column columnBeingFiltered) |
Selection |
ColumnNotEqualTo.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
IsInMarch.apply(Column columnBeingFiltered) |
Selection |
IsThursday.apply(Column columnBeingFiltered) |
Selection |
ColumnIsAfter.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
IsSunday.apply(Column columnBeingFiltered) |
Selection |
IsFriday.apply(Column columnBeingFiltered) |
Selection |
IsInSeptember.apply(Column columnBeingFiltered) |
Selection |
IsInQ3.apply(Column columnBeingFiltered) |
Selection |
ColumnIsBefore.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
EqualTo.apply(Column columnBeingFiltered) |
Selection |
IsBefore.apply(Column columnBeingFiltered) |
Selection |
IsInAugust.apply(Column columnBeingFiltered) |
Selection |
IsSaturday.apply(Column columnBeingFiltered) |
Constructor and Description |
---|
ColumnEqualTo(ColumnReference reference,
Column otherColumn) |
ColumnIsAfter(ColumnReference reference,
Column otherColumn) |
ColumnIsBefore(ColumnReference reference,
Column otherColumn) |
ColumnNotEqualTo(ColumnReference reference,
Column otherColumn) |
Modifier and Type | Interface and Description |
---|---|
interface |
NumberFilters |
interface |
NumberMapFunctions |
interface |
NumberPredicates
Support for built-in predicates on double column
|
Modifier and Type | Method and Description |
---|---|
Selection |
ColumnLessThan.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
NotEqualTo.apply(Column columnBeingFiltered) |
Selection |
ColumnEqualTo.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
IsPositive.apply(Column columnBeingFiltered) |
Selection |
IsNegative.apply(Column columnBeingFiltered) |
Selection |
IsNonNegative.apply(Column columnBeingFiltered) |
Selection |
LessThan.apply(Column columnBeingFiltered) |
Selection |
IsIn.apply(Column columnBeingFiltered) |
Selection |
GreaterThanOrEqualTo.apply(Column columnBeingFiltered) |
Selection |
IsCloseTo.apply(Column columnBeingFiltered) |
Selection |
BetweenInclusive.apply(Column columnBeingFiltered) |
Selection |
IsNotIn.apply(Column columnBeingFiltered) |
Selection |
IsZero.apply(Column columnBeingFiltered) |
Selection |
GreaterThan.apply(Column columnBeingFiltered) |
Selection |
LessThanOrEqualTo.apply(Column columnBeingFiltered) |
Selection |
BetweenExclusive.apply(Column columnBeingFiltered) |
Selection |
ColumnGreaterThan.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
EqualTo.apply(Column columnBeingFiltered) |
Constructor and Description |
---|
ColumnEqualTo(Column columnToCompareAgainst) |
ColumnEqualTo(ColumnReference reference,
Column otherColumn) |
ColumnGreaterThan(Column columnToCompareAgainst) |
ColumnGreaterThan(ColumnReference reference,
Column otherColumn) |
ColumnLessThan(Column columnToCompareAgainst) |
ColumnLessThan(ColumnReference reference,
Column otherColumn) |
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 NumberColumn |
StringMapFunctions.distance(Column column2)
Returns a column containing the levenshtein distance between the two given string columns
|
Modifier and Type | Method and Description |
---|---|
Selection |
NotEqualTo.apply(Column columnBeingFiltered) |
Selection |
ColumnEqualTo.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
EqualToIgnoringCase.apply(Column columnBeingFiltered) |
Selection |
IsUpperCase.apply(Column columnBeingFiltered) |
Selection |
IsEmptyString.apply(Column columnBeingFiltered) |
Selection |
IsIn.apply(Column columnBeingFiltered) |
Selection |
MatchesRegex.apply(Column columnBeingFiltered) |
Selection |
ContainsString.apply(Column columnBeingFiltered) |
Selection |
IsAlpha.apply(Column columnBeingFiltered) |
Selection |
ColumnStartsWith.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
IsLowerCase.apply(Column columnBeingFiltered) |
Selection |
IsNotIn.apply(Column columnBeingFiltered) |
Selection |
StartsWith.apply(Column columnBeingFiltered) |
Selection |
ColumnContainsString.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
IsShorterThan.apply(Column columnBeingFiltered) |
Selection |
ColumnNotEqualTo.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
ColumnEndsWith.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
IsAlphaNumeric.apply(Column columnBeingFiltered) |
Selection |
EndsWith.apply(Column columnBeingFiltered) |
Selection |
ColumnEqualToIgnoringCase.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
IsNumeric.apply(Column columnBeingFiltered) |
Selection |
EqualTo.apply(Column columnBeingFiltered) |
Selection |
IsLongerThan.apply(Column columnBeingFiltered) |
Selection |
HasLengthEqualTo.apply(Column columnBeingFiltered) |
Modifier and Type | Interface and Description |
---|---|
interface |
TimeFilters |
interface |
TimeMapFunctions |
Modifier and Type | Method and Description |
---|---|
Selection |
NotEqualTo.apply(Column columnBeingFiltered) |
Selection |
ColumnEqualTo.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
IsNoon.apply(Column columnBeingFiltered) |
Selection |
IsAfterNoon.apply(Column columnBeingFiltered) |
Selection |
IsMidnight.apply(Column columnBeingFiltered) |
Selection |
IsOnOrAfter.apply(Column columnBeingFiltered) |
Selection |
IsOnOrBefore.apply(Column columnBeingFiltered) |
Selection |
IsAfter.apply(Column columnBeingFiltered) |
Selection |
ColumnNotEqualTo.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
ColumnIsAfter.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
IsBeforeNoon.apply(Column columnBeingFiltered) |
Selection |
ColumnIsBefore.apply(Column columnBeingFiltered)
Returns a selection formed by applying a predicate for case-neutral equality between
each value in the given column and the corresponding value of the column passed into the constructor.
|
Selection |
EqualTo.apply(Column columnBeingFiltered) |
Selection |
IsBefore.apply(Column columnBeingFiltered) |
Constructor and Description |
---|
ColumnEqualTo(ColumnReference reference,
Column otherColumn) |
ColumnIsAfter(ColumnReference reference,
Column otherColumn) |
ColumnIsBefore(ColumnReference reference,
Column otherColumn) |
ColumnNotEqualTo(ColumnReference reference,
Column otherColumn) |
Modifier and Type | Method and Description |
---|---|
Column |
TwoColumnFilter.otherColumn() |
Modifier and Type | Method and Description |
---|---|
Selection |
Filter.apply(Column columnBeingFiltered)
Returns a selection created by applying this filter (and any optional params added in extending classes) to the
given column
|
Selection |
IsNotMissing.apply(Column columnBeingFiltered) |
Selection |
IsMissing.apply(Column columnBeingFiltered) |
Constructor and Description |
---|
TwoColumnFilter(Column columnToCompareAgainst) |
TwoColumnFilter(ColumnReference reference,
Column otherColumn) |
Modifier and Type | Method and Description |
---|---|
Selection |
AllOf.apply(Column columnBeingFiltered) |
Selection |
IsTrue.apply(Column columnBeingFiltered) |
Selection |
AnyOf.apply(Column columnBeingFiltered) |
Selection |
IsFalse.apply(Column columnBeingFiltered) |
Modifier and Type | Method and Description |
---|---|
static Column |
TypeUtils.newColumn(String name,
ColumnType type)
Constructs and returns a column for the given
name and type |
Modifier and Type | Method and Description |
---|---|
default Selection |
Selection.apply(Column columnBeingFiltered) |
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 | Method and Description |
---|---|
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
|
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 © 2018. All rights reserved.