Package tech.tablesaw.api
Class QuerySupport
java.lang.Object
tech.tablesaw.api.QuerySupport
Utility methods to aid in the construction of complex queries on tables
-
Method Summary
Modifier and TypeMethodDescriptionReturns a selection for all records that match all of the given functions.Returns a selection for all records that match all of the given functionsReturns a selection for all records that match any of the given functions.static DeferredBooleanColumn
static DeferredBooleanColumn
booleanColumn
(String columnName) Returns a selection for all records that match both of the given functionsstatic DeferredColumn
static DeferredColumn
static DeferredDateColumn
static DeferredDateColumn
dateColumn
(String columnName) static DeferredDateTimeColumn
static DeferredDateTimeColumn
dateTimeColumn
(String columnName) Returns a selection for all records that match either of the given functionsstatic DeferredInstantColumn
instantColumn
(String columnName) Returns a selection for all records that match neither of the given functions.Returns a selection for all records for which the given function isfalse
Returns a selection for all records that don't match all of the given functionsReturns a selection for all records that don't match any of the given functionsReturns a selection for all records that don't match both of the given functions.static DeferredNumberColumn
static DeferredNumberColumn
numberColumn
(String columnName) Returns a selection for all records that match any of the given functionsstatic DeferredStringColumn
static DeferredStringColumn
stringColumn
(String columnName) static DeferredTextColumn
static DeferredTextColumn
textColumn
(String columnName) static DeferredTimeColumn
static DeferredTimeColumn
timeColumn
(String columnName)
-
Method Details
-
not
Returns a selection for all records for which the given function isfalse
-
neither
public static Function<Table,Selection> neither(Function<Table, Selection> sel1, Function<Table, Selection> sel2) Returns a selection for all records that match neither of the given functions. In other words, if either (or both) of sel1 or sel2 istrue
, the record as a whole isfalse
. -
notBoth
public static Function<Table,Selection> notBoth(Function<Table, Selection> sel1, Function<Table, Selection> sel2) Returns a selection for all records that don't match both of the given functions. In other words, if both sel1 and sel2 are true, the record as a whole is false, and if either (or both) of sel1 or sel2 isfalse
, the record as a whole istrue
. -
notAny
@SafeVarargs public static Function<Table,Selection> notAny(Function<Table, Selection>... deferredSelections) Returns a selection for all records that don't match any of the given functions -
notAll
@SafeVarargs public static Function<Table,Selection> notAll(Function<Table, Selection>... deferredSelections) Returns a selection for all records that don't match all of the given functions -
and
@SafeVarargs public static Function<Table,Selection> and(Function<Table, Selection>... deferredSelections) Returns a selection for all records that match all of the given functions -
all
@SafeVarargs public static Function<Table,Selection> all(Function<Table, Selection>... deferredSelections) Returns a selection for all records that match all of the given functions. A synonym for and() -
both
public static Function<Table,Selection> both(Function<Table, Selection> sel1, Function<Table, Selection> sel2) Returns a selection for all records that match both of the given functions -
or
@SafeVarargs public static Function<Table,Selection> or(Function<Table, Selection>... deferredSelections) Returns a selection for all records that match any of the given functions -
any
@SafeVarargs public static Function<Table,Selection> any(Function<Table, Selection>... deferredSelections) Returns a selection for all records that match any of the given functions. A synonym for or() -
either
public static Function<Table,Selection> either(Function<Table, Selection> sel1, Function<Table, Selection> sel2) Returns a selection for all records that match either of the given functions -
column
-
col
-
booleanColumn
-
bool
-
stringColumn
-
str
-
text
-
textColumn
-
numberColumn
-
num
-
dateColumn
-
date
-
dateTimeColumn
-
dateTime
-
instantColumn
-
timeColumn
-
time
-