Package com.landawn.abacus.util
Interface DataSet
- All Known Implementing Classes:
RowDataSet
public interface DataSet
- Since:
- 0.8
- Author:
- Haiyang Li
- See Also:
-
com.landawn.abacus.util.DataSetUtil
com.landawn.abacus.util.Build.DataSetBuilder
com.landawn.abacus.jdbc.JdbcUtil
CSVUtil
Fn.Factory
Clazz
CommonUtil.newEmptyDataSet()
CommonUtil.newEmptyDataSet(Collection)
CommonUtil.newDataSet(Map)
CommonUtil.newDataSet(Collection)
CommonUtil.newDataSet(Collection, Collection)
CommonUtil.newDataSet(String, String, Map)
-
Method Summary
Modifier and TypeMethodDescriptionabsolute
(int rowNum) Move the cursor to the specified row.<E extends Exception>
voidaccept
(Throwables.Consumer<? super DataSet, E> action) <E extends Exception>
voidaddColumn
(int columnIndex, String newColumnName, Tuple.Tuple2<String, String> fromColumnNames, Throwables.BiFunction<?, ?, ?, E> func) Generate the new column values from the specified columns by the specifiedFunction
.<E extends Exception>
voidaddColumn
(int columnIndex, String newColumnName, Tuple.Tuple3<String, String, String> fromColumnNames, Throwables.TriFunction<?, ?, ?, ?, E> func) Generate the new column values from the specified columns by the specifiedFunction
.<T,
E extends Exception>
voidaddColumn
(int columnIndex, String newColumnName, String fromColumnName, Throwables.Function<T, ?, E> func) Generate the new column values from the specified column by the specifiedFunction
.<E extends Exception>
voidaddColumn
(int columnIndex, String newColumnName, Collection<String> fromColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> func) Generate the new column values from the specified columns by the specifiedFunction
.void
<E extends Exception>
voidaddColumn
(String newColumnName, Tuple.Tuple2<String, String> fromColumnNames, Throwables.BiFunction<?, ?, ?, E> func) Generate the new column values from the specified columns by the specifiedFunction
.<E extends Exception>
voidaddColumn
(String newColumnName, Tuple.Tuple3<String, String, String> fromColumnNames, Throwables.TriFunction<?, ?, ?, ?, E> func) Generate the new column values from the specified columns by the specifiedFunction
.<T,
E extends Exception>
voidaddColumn
(String newColumnName, String fromColumnName, Throwables.Function<T, ?, E> func) Generate the new column values from the specified column by the specifiedFunction
.<E extends Exception>
voidaddColumn
(String newColumnName, Collection<String> fromColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> func) Generate the new column values from the specified columns by the specifiedFunction
.void
void
Adds the row.void
Adds the row.<R,
E extends Exception>
Rapply
(Throwables.Function<? super DataSet, R, E> func) void
clear()
Method clear.clone()
Deeply copy each element in thisDataSet
by Serialization/Deserialization.clone
(boolean freeze) Deeply copy each element in thisDataSet
by Serialization/Deserialization.Return the column name list in this DataSet.columns()
combineColumns
(Throwables.Predicate<String, E> columnNameFilter, String newColumnName, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E2> combineFunc) <E extends Exception>
voidcombineColumns
(Throwables.Predicate<String, E> columnNameFilter, String newColumnName, Class<?> newColumnClass) <E extends Exception>
voidcombineColumns
(Tuple.Tuple2<String, String> columnNames, String newColumnName, Throwables.BiFunction<?, ?, ?, E> combineFunc) <E extends Exception>
voidcombineColumns
(Tuple.Tuple3<String, String, String> columnNames, String newColumnName, Throwables.TriFunction<?, ?, ?, ?, E> combineFunc) <E extends Exception>
voidcombineColumns
(Collection<String> columnNames, String newColumnName, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> combineFunc) void
combineColumns
(Collection<String> columnNames, String newColumnName, Class<?> newColumnClass) boolean
containsAllColumns
(Collection<String> columnNames) Check if thisDataSet
contains all the specified columns.boolean
containsColumn
(String columnName) void
convertColumn
(String columnName, Class<?> targetType) Convert the specified column to target type.void
convertColumns
(Map<String, Class<?>> columnTargetTypes) Convert the specified columns to target types.copy()
Returns the copy of thisDataSet
.copy
(int fromRowIndex, int toRowIndex) Returns the copy of thisDataSet
from the specifiedfromRowIndex
totoRowIndex
.copy
(Collection<String> columnNames) Returns the copy of thisDataSet
with specified column name list.copy
(Collection<String> columnNames, int fromRowIndex, int toRowIndex) Returns the copy of thisDataSet
with specified column name list from the specifiedfromRowIndex
totoRowIndex
.<T> List<T>
copyOfColumn
(String columnName) Copy of column.cube
(Collection<String> columnNames) cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper) cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E2> func) cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E2> rowMapper, Collector<? super U, ?, ?> collector) cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) cube
(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E> func) cube
(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) cube
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E> rowMapper, Collector<? super U, ?, ?> collector) cube
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) cube
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) int
Returns the current row number.difference
(DataSet dataSet) Returns a newDataSet
with different rows in common columns from the specifiedDataSet
, occurrences matter.distinct()
Returns a newDataSet
with the rows de-duplicated by the values in all columns.distinctBy
(String columnName) Returns a newDataSet
with the rows de-duplicated by the value in the specified column.distinctBy
(String columnName, Throwables.Function<K, ?, E> keyMapper) Returns a newDataSet
with the rows de-duplicated by the value in the specified column from the specifiedfromRowIndex
totoRowIndex
.distinctBy
(Collection<String> columnNames) Returns a newDataSet
with the rows de-duplicated by the values in the specified columns.distinctBy
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper) Returns a newDataSet
with the rows de-duplicated by the values in the specified columns from the specifiedfromRowIndex
totoRowIndex
.<T,
E extends Exception>
voiddivideColumn
(String columnName, Tuple.Tuple2<String, String> newColumnNames, Throwables.BiConsumer<T, Pair<Object, Object>, E> output) <T,
E extends Exception>
voiddivideColumn
(String columnName, Tuple.Tuple3<String, String, String> newColumnNames, Throwables.BiConsumer<T, Triple<Object, Object, Object>, E> output) <T,
E extends Exception>
voiddivideColumn
(String columnName, Collection<String> newColumnNames, Throwables.BiConsumer<T, Object[], E> output) <T,
E extends Exception>
voiddivideColumn
(String columnName, Collection<String> newColumnNames, Throwables.Function<T, ? extends List<?>, E> divideFunc) Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns.filter
(int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) filter
(int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) filter
(Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) filter
(Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) filter
(Tuple.Tuple2<String, String> columnNames, int fromRowIndex, int toRowIndex, Throwables.BiPredicate<?, ?, E> filter) filter
(Tuple.Tuple2<String, String> columnNames, int fromRowIndex, int toRowIndex, Throwables.BiPredicate<?, ?, E> filter, int max) filter
(Tuple.Tuple2<String, String> columnNames, Throwables.BiPredicate<?, ?, E> filter) filter
(Tuple.Tuple2<String, String> columnNames, Throwables.BiPredicate<?, ?, E> filter, int max) filter
(Tuple.Tuple3<String, String, String> columnNames, int fromRowIndex, int toRowIndex, Throwables.TriPredicate<?, ?, ?, E> filter) filter
(Tuple.Tuple3<String, String, String> columnNames, int fromRowIndex, int toRowIndex, Throwables.TriPredicate<?, ?, ?, E> filter, int max) filter
(Tuple.Tuple3<String, String, String> columnNames, Throwables.TriPredicate<?, ?, ?, E> filter) filter
(Tuple.Tuple3<String, String, String> columnNames, Throwables.TriPredicate<?, ?, ?, E> filter, int max) filter
(String columnName, int fromRowIndex, int toRowIndex, Throwables.Predicate<T, E> filter) filter
(String columnName, int fromRowIndex, int toRowIndex, Throwables.Predicate<T, E> filter, int max) filter
(String columnName, Throwables.Predicate<T, E> filter) filter
(String columnName, Throwables.Predicate<T, E> filter, int max) filter
(Collection<String> columnNames, int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) filter
(Collection<String> columnNames, int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) filter
(Collection<String> columnNames, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) filter
(Collection<String> columnNames, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) u.Optional<Object[]>
firstRow()
<T> u.Optional<T>
<T> u.Optional<T>
firstRow
(Class<? extends T> rowClass, Collection<String> columnNames) <T> u.Optional<T>
firstRow
(Collection<String> columnNames, IntFunction<? extends T> rowSupplier) <T> u.Optional<T>
firstRow
(IntFunction<? extends T> rowSupplier) flatMap
(Tuple.Tuple2<String, String> fromColumnNames, Throwables.BiFunction<?, ?, ? extends Collection<?>, E> func, String newColumnName, Collection<String> copyingColumnNames) flatMap
(Tuple.Tuple3<String, String, String> fromColumnNames, Throwables.TriFunction<?, ?, ?, ? extends Collection<?>, E> func, String newColumnName, Collection<String> copyingColumnNames) flatMap
(String fromColumnName, Throwables.Function<?, ? extends Collection<?>, E> func, String newColumnName, String copyingColumnName) flatMap
(String fromColumnName, Throwables.Function<?, ? extends Collection<?>, E> func, String newColumnName, Collection<String> copyingColumnNames) flatMap
(Collection<String> fromColumnNames, Throwables.Function<NoCachingNoUpdating.DisposableObjArray, ? extends Collection<?>, E> func, String newColumnName, Collection<String> copyingColumnNames) <E extends Exception>
voidforEach
(int fromRowIndex, int toRowIndex, Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) Performs the given action for each row of theDataSet
until all rows have been processed or the action throws an exception.<E extends Exception>
voidforEach
(Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) Performs the given action for each row of theDataSet
until all rows have been processed or the action throws an exception.<E extends Exception>
voidforEach
(Tuple.Tuple2<String, String> columnNames, int fromRowIndex, int toRowIndex, Throwables.BiConsumer<?, ?, E> action) <E extends Exception>
voidforEach
(Tuple.Tuple2<String, String> columnNames, Throwables.BiConsumer<?, ?, E> action) <E extends Exception>
voidforEach
(Tuple.Tuple3<String, String, String> columnNames, int fromRowIndex, int toRowIndex, Throwables.TriConsumer<?, ?, ?, E> action) <E extends Exception>
voidforEach
(Tuple.Tuple3<String, String, String> columnNames, Throwables.TriConsumer<?, ?, ?, E> action) <E extends Exception>
voidforEach
(Collection<String> columnNames, int fromRowIndex, int toRowIndex, Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) Performs the given action for each row of theDataSet
until all rows have been processed or the action throws an exception.<E extends Exception>
voidforEach
(Collection<String> columnNames, Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) Performs the given action for each row of theDataSet
until all rows have been processed or the action throws an exception.void
freeze()
Method freeze.boolean
frozen()
Returns a newDataSet
that has all the rows from thisDataSet
and the specifiedright DataSet
, regardless of whether there are any matches.Returns a newDataSet
that has all the rows from thisDataSet
and the specifiedright DataSet
, regardless of whether there are any matches.fullJoin
(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass) Returns a newDataSet
that has all the rows from thisDataSet
and the specifiedright DataSet
, regardless of whether there are any matches.fullJoin
(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass, IntFunction<? extends Collection> collSupplier) Returns a newDataSet
that has all the rows from thisDataSet
and the specifiedright DataSet
, regardless of whether there are any matches.<T> T
get
(int columnIndex) There is NO underline auto-conversion from column value to target type:T
.<T> T
get
(int rowIndex, int columnIndex) There is NO underline auto-conversion from column value to target type:T
.<T> T
Deprecated.may be misused because it implies there is an underline auto-conversion from column values to target return type but actually there is not.<T> T
Deprecated.may be misused because it implies there is an underline auto-conversion from column values to target return type but actually there is not.<T> T
Deprecated.may be misused because it implies there is an underline auto-conversion from column values to target return type but actually there is not.<T> T
There is NO underline auto-conversion from column value to target type:T
.boolean
getBoolean
(int columnIndex) Return default value (false) if the property is null.boolean
getBoolean
(String columnName) Return default value (false) if the property is null.byte
getByte
(int columnIndex) Return default value (0) if the property is null.byte
Return default value (0) if the property is null.char
getChar
(int columnIndex) Return default value (0) if the property is null.char
Return default value (0) if the property is null.<T> ImmutableList<T>
getColumn
(int columnIndex) Must NOT modify the returned list.<T> ImmutableList<T>
Must NOT modify the returned list.int
getColumnIndex
(String columnName) int[]
getColumnIndexes
(Collection<String> columnNames) -1 is set to the element in the returned array if the mapping column name is not included in thisDataSet
.getColumnName
(int columnIndex) double
getDouble
(int columnIndex) Return default value (0d) if the property is null.double
Return default value (0d) if the property is null.float
getFloat
(int columnIndex) Return default value (0f) if the property is null.float
Return default value (0f) if the property is null.int
getInt
(int columnIndex) Return default value (0) if the property is null.int
Return default value (0) if the property is null.long
getLong
(int columnIndex) Return default value (0) if the property is null.long
Return default value (0) if the property is null.<T> T
getOrDefault
(int columnIndex, T defaultValue) Deprecated.<T> T
getOrDefault
(String columnName, T defaultValue) Deprecated.Object[]
getRow
(int rowNum) Gets the row.<T> T
getRow
(int rowNum, IntFunction<? extends T> rowSupplier) Gets the row.<T> T
Gets the row.<T> T
getRow
(Class<? extends T> rowClass, Collection<String> columnNames, int rowNum) Gets the row.<T> T
getRow
(Collection<String> columnNames, int rowNum, IntFunction<? extends T> rowSupplier) Gets the row.short
getShort
(int columnIndex) Return default value (0) if the property is null.short
Return default value (0) if the property is null.groupBy
(String columnName, Throwables.Function<K, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E2> func) groupBy
(String columnName, Throwables.Function<K, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) groupBy
(String columnName, Throwables.Function<K, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E2> rowMapper, Collector<? super U, ?, ?> collector) groupBy
(String columnName, Throwables.Function<K, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) groupBy
(String columnName, Throwables.Function<K, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) groupBy
(String columnName, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E> func) <T> DataSet
groupBy
(String columnName, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) groupBy
(String columnName, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E> rowMapper, Collector<? super U, ?, ?> collector) groupBy
(String columnName, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) groupBy
(String columnName, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) groupBy
(Collection<String> columnNames) groupBy
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper) groupBy
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E2> func) groupBy
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) groupBy
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E2> rowMapper, Collector<? super U, ?, ?> collector) groupBy
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) groupBy
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) groupBy
(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E> func) <T> DataSet
groupBy
(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) groupBy
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E> rowMapper, Collector<? super U, ?, ?> collector) groupBy
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) groupBy
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) Returns a newDataSet
that is limited to the rows where there is a match in boththis DataSet
andright DataSet
.Returns a newDataSet
that is limited to the rows where there is a match in boththis DataSet
andright DataSet
.innerJoin
(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass) Returns a newDataSet
that is limited to the rows where there is a match in boththis DataSet
andright DataSet
.innerJoin
(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass, IntFunction<? extends Collection> collSupplier) Returns a newDataSet
that is limited to the rows where there is a match in boththis DataSet
andright DataSet
.Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.intersectAll
(DataSet other) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.intersection
(DataSet dataSet) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns by occurrences.boolean
isEmpty()
Checks if is empty.boolean
isNull
(int columnIndex) Checks if is null.boolean
isNull
(int rowIndex, int columnIndex) Checks if is null.boolean
Checks if is null.<A,
B> BiIterator<A, B> <A,
B> BiIterator<A, B> <A,
B, C> TriIterator<A, B, C> <A,
B, C> TriIterator<A, B, C> iterator
(String columnNameA, String columnNameB, String columnNameC, int fromRowIndex, int toRowIndex) u.Optional<Object[]>
lastRow()
<T> u.Optional<T>
<T> u.Optional<T>
lastRow
(Class<? extends T> rowClass, Collection<String> columnNames) <T> u.Optional<T>
lastRow
(Collection<String> columnNames, IntFunction<? extends T> rowSupplier) <T> u.Optional<T>
lastRow
(IntFunction<? extends T> rowSupplier) Returns a newDataSet
that has all the rows from thisDataSet
and the rows from the specifiedright DataSet
if they have a match with the rows from the thisDataSet
.Returns a newDataSet
that has all the rows from thisDataSet
and the rows from the specifiedright DataSet
if they have a match with the rows from the thisDataSet
.leftJoin
(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass) Returns a newDataSet
that has all the rows from thisDataSet
and the rows from the specifiedright DataSet
if they have a match with the rows from the thisDataSet
.leftJoin
(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass, IntFunction<? extends Collection> collSupplier) Returns a newDataSet
that has all the rows from thisDataSet
and the rows from the specifiedright DataSet
if they have a match with the rows from the thisDataSet
.map
(Tuple.Tuple2<String, String> fromColumnNames, Throwables.BiFunction<?, ?, ?, E> func, String newColumnName, Collection<String> copyingColumnNames) map
(Tuple.Tuple3<String, String, String> fromColumnNames, Throwables.TriFunction<?, ?, ?, ?, E> func, String newColumnName, Collection<String> copyingColumnNames) map
(String fromColumnName, Throwables.Function<?, ?, E> func, String newColumnName, String copyingColumnName) map
(String fromColumnName, Throwables.Function<?, ?, E> func, String newColumnName, Collection<String> copyingColumnNames) map
(Collection<String> fromColumnNames, Throwables.Function<NoCachingNoUpdating.DisposableObjArray, ?, E> func, String newColumnName, Collection<String> copyingColumnNames) Returns a newDataSet
by appending the specifiedfrom
DataSet
into thisDataSet
.Returns a newDataSet
by appending the specifiedfrom
DataSet
fromfromRowIndex
totoRowIndex
into thisDataSet
.merge
(DataSet from, Collection<String> columnNames) Returns a newDataSet
by appending the specifiedfrom
DataSet
into thisDataSet
.merge
(DataSet from, Collection<String> columnNames, int fromRowIndex, int toRowIndex) Returns a newDataSet
by appending the specifiedcolumnNames
infrom
DataSet
fromfromRowIndex
totoRowIndex
into thisDataSet
.merge
(Collection<? extends DataSet> dss) void
moveColumn
(String columnName, int newPosition) void
moveColumns
(Map<String, Integer> columnNameNewPositionMap) void
moveRow
(int rowIndex, int newRowIndex) Move the specified row to the new position.paginate
(int pageSize) paginate
(Collection<String> columnNames, int pageSize) void
parallelSortBy
(String columnName) Parallel sort by.<T> void
parallelSortBy
(String columnName, Comparator<T> cmp) Parallel sort by.void
parallelSortBy
(Collection<String> columnNames) Parallel sort by.void
parallelSortBy
(Collection<String> columnNames, Comparator<? super Object[]> cmp) Parallel sort by.void
parallelSortBy
(Collection<String> columnNames, Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends Comparable> keyMapper) Parallel sort by.void
println()
void
println
(Collection<String> columnNames, int fromRowIndex, int toRowIndex) <W extends Writer>
Wprintln
(W outputWriter) <W extends Writer>
Wprintln
(W outputWriter, Collection<String> columnNames, int fromRowIndex, int toRowIndex) <T> List<T>
removeColumn
(String columnName) Remove the column with the specified columnName from this DataSet.<E extends Exception>
voidremoveColumns
(Throwables.Predicate<String, E> filter) Remove the column(s) whose name matches the specifiedfilter
.void
removeColumns
(Collection<String> columnNames) Remove the column(s) with the specified columnNames from this DataSet.void
removeRow
(int rowIndex) Removes the row.void
removeRowRange
(int inclusiveFromRowIndex, int exclusiveToRowIndex) Removes the row range.void
removeRows
(int... indices) Removes the rows.<E extends Exception>
voidrenameColumn
(String columnName, Throwables.Function<String, String, E> func) void
renameColumn
(String columnName, String newColumnName) <E extends Exception>
voidrenameColumns
(Throwables.Function<String, String, E> func) <E extends Exception>
voidrenameColumns
(Collection<String> columnNames, Throwables.Function<String, String, E> func) void
renameColumns
(Map<String, String> oldNewNames) <E extends Exception>
voidreplaceIf
(Throwables.Predicate<?, E> func, Object newValue) Replace all the values in this DataSet with the specified new value if it matches the specified condition.Returns a newDataSet
that has all the rows from the specified rightDataSet
and the rows fromthis DataSet
if they have a match with the rows from the rightDataSet
.Returns a newDataSet
that has all the rows from the specified rightDataSet
and the rows fromthis DataSet
if they have a match with the rows from the rightDataSet
.rightJoin
(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass) Returns a newDataSet
that has all the rows from the specified rightDataSet
and the rows fromthis DataSet
if they have a match with the rows from the rightDataSet
.rightJoin
(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass, IntFunction<? extends Collection> collSupplier) Returns a newDataSet
that has all the rows from the specified rightDataSet
and the rows fromthis DataSet
if they have a match with the rows from the rightDataSet
.rollup
(Collection<String> columnNames) rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper) rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E2> func) rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E2> rowMapper, Collector<? super U, ?, ?> collector) rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) rollup
(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E> func) rollup
(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) rollup
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E> rowMapper, Collector<? super U, ?, ?> collector) rollup
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) rollup
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) void
void
void
int
size()
Returns the size of thisDataSet
.slice
(int fromRowIndex, int toRowIndex) Returns a frozenDataSet
.slice
(Collection<String> columnNames) Returns a frozenDataSet
.slice
(Collection<String> columnNames, int fromRowIndex, int toRowIndex) Returns a frozenDataSet
.void
<T> void
sortBy
(String columnName, Comparator<T> cmp) void
sortBy
(Collection<String> columnNames) void
sortBy
(Collection<String> columnNames, Comparator<? super Object[]> cmp) void
sortBy
(Collection<String> columnNames, Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends Comparable> keyMapper) split
(int chunkSize) Returns consecutive sub lists of this DataSet, each of the same chunkSize (the list may be smaller), or an empty List if this DataSet is empty.split
(Collection<String> columnNames, int chunkSize) Returns consecutive sub lists of this DataSet, each of the same chunkSize (the list may be smaller), or an empty List if this DataSet is empty.splitToList
(int chunkSize) Returns consecutive sub lists of this DataSet, each of the same chunkSize (the list may be smaller), or an empty List if this DataSet is empty.splitToList
(Collection<String> columnNames, int chunkSize) Returns consecutive sub lists of this DataSet, each of the same chunkSize (the list may be smaller), or an empty List if this DataSet is empty.<T> Stream<T>
stream
(int fromRowIndex, int toRowIndex, IntFunction<? extends T> rowSupplier) <T> Stream<T>
<T> Stream<T>
<T> Stream<T>
stream
(Class<? extends T> rowClass, Collection<String> columnNames) <T> Stream<T>
stream
(Class<? extends T> rowClass, Collection<String> columnNames, int fromRowIndex, int toRowIndex) <T> Stream<T>
<T> Stream<T>
<T> Stream<T>
stream
(Collection<String> columnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends T> rowSupplier) <T> Stream<T>
stream
(Collection<String> columnNames, IntFunction<? extends T> rowSupplier) <T> Stream<T>
stream
(IntFunction<? extends T> rowSupplier) void
swapColumns
(String columnNameA, String columnNameB) Swap the positions of the two specified columns.void
swapRows
(int rowIndexA, int rowIndexB) Swap the positions of the two specified rows.symmetricDifference
(DataSet dataSet) toCSV()
Each line in the output file/Writer is an array of JSON String without root bracket.toCSV
(boolean writeTitle, boolean quoteValue) Each line in the output file/Writer is an array of JSON String without root bracket.void
Each line in the output file/Writer is an array of JSON String without root bracket.void
Each line in the output file/Writer is an array of JSON String without root bracket.void
toCSV
(File output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) Each line in the output file/Writer is an array of JSON String without root bracket.void
toCSV
(File output, Collection<String> columnNames, int fromRowIndex, int toRowIndex, boolean writeTitle, boolean quoteValue) Each line in the output file/Writer is an array of JSON String without root bracket.void
toCSV
(OutputStream output) Each line in the output file/Writer is an array of JSON String without root bracket.void
toCSV
(OutputStream output, boolean writeTitle, boolean quoteValue) Each line in the output file/Writer is an array of JSON String without root bracket.void
toCSV
(OutputStream output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) Each line in the output file/Writer is an array of JSON String without root bracket.void
toCSV
(OutputStream output, Collection<String> columnNames, int fromRowIndex, int toRowIndex, boolean writeTitle, boolean quoteValue) Each line in the output file/Writer is an array of JSON String without root bracket.void
Each line in the output file/Writer is an array of JSON String without root bracket.void
Each line in the output file/Writer is an array of JSON String without root bracket.void
toCSV
(Writer output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) Each line in the output file/Writer is an array of JSON String without root bracket.void
toCSV
(Writer output, Collection<String> columnNames, int fromRowIndex, int toRowIndex, boolean writeTitle, boolean quoteValue) Each line in the output file/Writer is an array of JSON String without root bracket.toCSV
(Collection<String> columnNames, int fromRowIndex, int toRowIndex) Each line in the output file/Writer is an array of JSON String without root bracket.toCSV
(Collection<String> columnNames, int fromRowIndex, int toRowIndex, boolean writeTitle, boolean quoteValue) Each line in the output file/Writer is an array of JSON String without root bracket.toJSON()
toJSON
(int fromRowIndex, int toRowIndex) void
void
void
toJSON
(File output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) void
toJSON
(OutputStream output) void
toJSON
(OutputStream output, int fromRowIndex, int toRowIndex) void
toJSON
(OutputStream output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) void
void
void
toJSON
(Writer output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) toJSON
(Collection<String> columnNames, int fromRowIndex, int toRowIndex) toList()
toList
(int fromRowIndex, int toRowIndex) <T> List<T>
toList
(int fromRowIndex, int toRowIndex, IntFunction<? extends T> rowSupplier) <T> List<T>
<T> List<T>
toList
(Class<? extends T> rowClass, Throwables.Predicate<? super String, E> columnFilter, Throwables.Function<? super String, String, E2> columnConverter) toList
(Class<? extends T> rowClass, Throwables.Predicate<? super String, E> columnFilter, Throwables.Function<? super String, String, E2> columnConverter, int fromRowIndex, int toRowIndex) <T> List<T>
toList
(Class<? extends T> rowClass, Collection<String> columnNames) <T> List<T>
toList
(Class<? extends T> rowClass, Collection<String> columnNames, int fromRowIndex, int toRowIndex) <T> List<T>
toList
(Collection<String> columnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends T> rowSupplier) <T> List<T>
toList
(Collection<String> columnNames, IntFunction<? extends T> rowSupplier) <T> List<T>
toList
(IntFunction<? extends T> rowSupplier) <K,
V> Map<K, V> toMap
(Class<? extends V> rowClass, String keyColumnName, Collection<String> valueColumnNames) <K,
V> Map<K, V> toMap
(Class<? extends V> rowClass, String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex) <K,
V, M extends Map<K, V>>
MtoMap
(Class<? extends V> rowClass, String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends M> supplier) <K,
V> Map<K, V> <K,
V> Map<K, V> <K,
V, M extends Map<K, V>>
MtoMap
(String keyColumnName, String valueColumnName, int fromRowIndex, int toRowIndex, IntFunction<? extends M> supplier) <K,
V> Map<K, V> toMap
(String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends V> rowSupplier) <K,
V, M extends Map<K, V>>
MtoMap
(String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends V> rowSupplier, IntFunction<? extends M> supplier) <K,
V> Map<K, V> toMap
(String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends V> rowSupplier) <T> List<T>
toMergedEntities
(Class<T> entityClass) <T> List<T>
toMergedEntities
(Class<T> entityClass, String idPropName) <T> List<T>
toMergedEntities
(Class<T> entityClass, String idPropName, Collection<String> selectPropNames) <T> List<T>
toMergedEntities
(Class<T> entityClass, Collection<String> selectPropNames) <T> List<T>
toMergedEntities
(Class<T> entityClass, Collection<String> idPropNames, Collection<String> selectPropNames) <K,
E> ListMultimap<K, E> toMultimap
(Class<? extends E> rowClass, String keyColumnName, Collection<String> valueColumnNames) <K,
E> ListMultimap<K, E> toMultimap
(Class<? extends E> rowClass, String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex) <K,
E, V extends Collection<E>, M extends Multimap<K, E, V>>
MtoMultimap
(Class<? extends E> rowClass, String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends M> supplier) <K,
E> ListMultimap<K, E> toMultimap
(String keyColumnName, String valueColumnName) <K,
E> ListMultimap<K, E> toMultimap
(String keyColumnName, String valueColumnName, int fromRowIndex, int toRowIndex) <K,
E, V extends Collection<E>, M extends Multimap<K, E, V>>
MtoMultimap
(String keyColumnName, String valueColumnName, int fromRowIndex, int toRowIndex, IntFunction<? extends M> supplier) <K,
E> ListMultimap<K, E> toMultimap
(String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends E> rowSupplier) <K,
E, V extends Collection<E>, M extends Multimap<K, E, V>>
MtoMultimap
(String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends E> rowSupplier, IntFunction<? extends M> supplier) <K,
E> ListMultimap<K, E> toMultimap
(String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends E> rowSupplier) <T> DataSet
topBy
(String columnName, int n, Comparator<T> cmp) topBy
(Collection<String> columnNames, int n) topBy
(Collection<String> columnNames, int n, Comparator<? super Object[]> cmp) topBy
(Collection<String> columnNames, int n, Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends Comparable> keyMapper) toXML()
toXML
(int fromRowIndex, int toRowIndex) void
void
void
void
void
toXML
(File output, String rowElementName, Collection<String> columnNames, int fromRowIndex, int toRowIndex) void
toXML
(File output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) void
toXML
(OutputStream output) void
toXML
(OutputStream output, int fromRowIndex, int toRowIndex) void
toXML
(OutputStream output, String rowElementName) void
toXML
(OutputStream output, String rowElementName, int fromRowIndex, int toRowIndex) void
toXML
(OutputStream output, String rowElementName, Collection<String> columnNames, int fromRowIndex, int toRowIndex) void
toXML
(OutputStream output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) void
void
void
void
void
toXML
(Writer output, String rowElementName, Collection<String> columnNames, int fromRowIndex, int toRowIndex) void
toXML
(Writer output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) toXML
(String rowElementName, Collection<String> columnNames, int fromRowIndex, int toRowIndex) toXML
(Collection<String> columnNames, int fromRowIndex, int toRowIndex) void
Trim to size.Returns a newDataSet
.Returns a newDataSet
.<E extends Exception>
voidupdateAll
(Throwables.Function<?, ?, E> func) Update all the values in this DataSet with the specified Try.Function.<E extends Exception>
voidupdateColumn
(String columnName, Throwables.Function<?, ?, E> func) Update the values of the specified column by the specified Try.Function.<E extends Exception>
voidupdateColumns
(Collection<String> columnNames, Throwables.Function<?, ?, E> func) Update the values of the specified columns one by one with the specified Try.Function.<E extends Exception>
voidupdateRow
(int rowIndex, Throwables.Function<?, ?, E> func) Update the values in the specified row with the specified Try.Function.<E extends Exception>
voidupdateRows
(int[] indices, Throwables.Function<?, ?, E> func) Update the values in the specified rows one by one with the specified Try.Function.
-
Method Details
-
columnNameList
ImmutableList<String> columnNameList()Return the column name list in this DataSet.- Returns:
-
getColumnName
- Parameters:
columnIndex
-- Returns:
-
getColumnIndex
- Parameters:
columnName
-- Returns:
- -1 if the specified
columnName
is not found
-
getColumnIndexes
-1 is set to the element in the returned array if the mapping column name is not included in thisDataSet
.- Parameters:
columnNames
-- Returns:
-
containsColumn
- Parameters:
columnName
-- Returns:
- true, if successful
-
containsAllColumns
Check if thisDataSet
contains all the specified columns.- Parameters:
columnNames
-- Returns:
true
if all the specified columns are included in the thisDataSet
-
renameColumn
- Parameters:
columnName
-newColumnName
-
-
renameColumns
- Parameters:
oldNewNames
-
-
renameColumn
<E extends Exception> void renameColumn(String columnName, Throwables.Function<String, String, throws EE> func) - Type Parameters:
E
-- Parameters:
columnName
-func
-- Throws:
E
- the e
-
renameColumns
<E extends Exception> void renameColumns(Collection<String> columnNames, Throwables.Function<String, String, throws EE> func) - Type Parameters:
E
-- Parameters:
columnNames
-func
-- Throws:
E
- the e
-
renameColumns
- Type Parameters:
E
-- Parameters:
func
-- Throws:
E
- the e
-
moveColumn
- Parameters:
columnName
-newPosition
-
-
moveColumns
- Parameters:
columnNameNewPositionMap
-
-
swapColumns
Swap the positions of the two specified columns.- Parameters:
columnNameA
-columnNameB
-
-
moveRow
void moveRow(int rowIndex, int newRowIndex) Move the specified row to the new position.- Parameters:
rowIndex
-newRowIndex
-
-
swapRows
void swapRows(int rowIndexA, int rowIndexB) Swap the positions of the two specified rows.- Parameters:
rowIndexA
-rowIndexB
-
-
get
<T> T get(int rowIndex, int columnIndex) There is NO underline auto-conversion from column value to target type:T
. So the column values must be the type which is assignable to target type.- Type Parameters:
T
-- Parameters:
rowIndex
-columnIndex
-- Returns:
-
get
Deprecated.may be misused because it implies there is an underline auto-conversion from column values to target return type but actually there is not.There is NO underline auto-conversion from column value to target type:T
. So the column values must be the type which is assignable to target type.
Node: To follow one of general design rules inAbacus
, if there is a conversion behind when the source value is not assignable to the target type, put thetargetType
to last parameter of the method. Otherwise, put thetargetTpye
to the first parameter of the method.- Type Parameters:
T
-- Parameters:
targetType
-rowIndex
-columnIndex
-- Returns:
-
set
- Parameters:
rowIndex
-columnIndex
-element
-
-
isNull
boolean isNull(int rowIndex, int columnIndex) Checks if is null.- Parameters:
rowIndex
-columnIndex
-- Returns:
- true, if is null
-
get
<T> T get(int columnIndex) There is NO underline auto-conversion from column value to target type:T
. So the column values must be the type which is assignable to target type.- Type Parameters:
T
-- Parameters:
columnIndex
-- Returns:
-
get
There is NO underline auto-conversion from column value to target type:T
. So the column values must be the type which is assignable to target type.- Type Parameters:
T
-- Parameters:
columnName
-- Returns:
-
get
Deprecated.may be misused because it implies there is an underline auto-conversion from column values to target return type but actually there is not.There is NO underline auto-conversion from column value to target type:T
. So the column values must be the type which is assignable to target type.
Node: To follow one of general design rules inAbacus
, if there is a conversion behind when the source value is not assignable to the target type, put thetargetType
to last parameter of the method. Otherwise, put thetargetTpye
to the first parameter of the method.- Type Parameters:
T
-- Parameters:
targetType
-columnIndex
-- Returns:
-
get
Deprecated.may be misused because it implies there is an underline auto-conversion from column values to target return type but actually there is not.There is NO underline auto-conversion from column value to target type:T
. So the column values must be the type which is assignable to target type.
Node: To follow one of general design rules inAbacus
, if there is a conversion behind when the source value is not assignable to the target type, put thetargetType
to last parameter of the method. Otherwise, put thetargetTpye
to the first parameter of the method.- Type Parameters:
T
-- Parameters:
targetType
-columnName
-- Returns:
-
getOrDefault
Deprecated.Returns the value from the current row and specified column if the specifiedcolumnIndex
is equal or bigger than zero, or the specifieddefaultValue
otherwise.
There is NO underline auto-conversion from column value to target type:T
. So the column values must be the type which is assignable to target type.- Type Parameters:
T
-- Parameters:
columnIndex
-defaultValue
-- Returns:
-
getOrDefault
Deprecated.Returns the value from the current row and specified column if the specifiedcolumnName
exists, or the specifieddefaultValue
otherwise.
There is NO underline auto-conversion from column value to target type:T
. So the column values must be the type which is assignable to target type.- Type Parameters:
T
-- Parameters:
columnName
-defaultValue
-- Returns:
-
getBoolean
boolean getBoolean(int columnIndex) Return default value (false) if the property is null.
There is NO underline auto-conversion from column value to target type:Boolean
. So the column values must be the type which is assignable to target type.- Parameters:
columnIndex
-- Returns:
-
getBoolean
Return default value (false) if the property is null.
There is NO underline auto-conversion from column value to target type:Boolean
. So the column values must be the type which is assignable to target type.- Parameters:
columnName
-- Returns:
-
getChar
char getChar(int columnIndex) Return default value (0) if the property is null.
There is NO underline auto-conversion from column value to target type:Character
. So the column values must be the type which is assignable to target type.- Parameters:
columnIndex
-- Returns:
-
getChar
Return default value (0) if the property is null.
There is NO underline auto-conversion from column value to target type:Character
. So the column values must be the type which is assignable to target type.- Parameters:
columnName
-- Returns:
-
getByte
byte getByte(int columnIndex) Return default value (0) if the property is null. Return Number.byteValue() otherwise.
There is NO underline auto-conversion from column value to target type:Byte
. So the column values must be the type which is assignable to target type, orNumber
.- Parameters:
columnIndex
-- Returns:
-
getByte
Return default value (0) if the property is null. Return Number.byteValue() otherwise.
There is NO underline auto-conversion from column value to target type:Byte
. So the column values must be the type which is assignable to target type, orNumber
.- Parameters:
columnName
-- Returns:
-
getShort
short getShort(int columnIndex) Return default value (0) if the property is null. Return Number.shortValue() otherwise.
There is NO underline auto-conversion from column value to target type:Short
. So the column values must be the type which is assignable to target type, orNumber
.- Parameters:
columnIndex
-- Returns:
-
getShort
Return default value (0) if the property is null. Return Number.shortValue() otherwise.
There is NO underline auto-conversion from column value to target type:Short
. So the column values must be the type which is assignable to target type, orNumber
.- Parameters:
columnName
-- Returns:
-
getInt
int getInt(int columnIndex) Return default value (0) if the property is null. Return Number.intValue() otherwise.
There is NO underline auto-conversion from column value to target type:Integer
. So the column values must be the type which is assignable to target type, orNumber
.- Parameters:
columnIndex
-- Returns:
-
getInt
Return default value (0) if the property is null. Return Number.intValue() otherwise.
There is NO underline auto-conversion from column value to target type:Integer
. So the column values must be the type which is assignable to target type, orNumber
.- Parameters:
columnName
-- Returns:
-
getLong
long getLong(int columnIndex) Return default value (0) if the property is null. Return Number.longValue() otherwise.
There is NO underline auto-conversion from column value to target type:Long
. So the column values must be the type which is assignable to target type, orNumber
.- Parameters:
columnIndex
-- Returns:
-
getLong
Return default value (0) if the property is null. Return Number.longValue() otherwise.
There is NO underline auto-conversion from column value to target type:Long
. So the column values must be the type which is assignable to target type, orNumber
.- Parameters:
columnName
-- Returns:
-
getFloat
float getFloat(int columnIndex) Return default value (0f) if the property is null. Return Number.floatValue() otherwise.
There is NO underline auto-conversion from column value to target type:Float
. So the column values must be the type which is assignable to target type, orNumber
.- Parameters:
columnIndex
-- Returns:
-
getFloat
Return default value (0f) if the property is null. Return Number.floatValue() otherwise.
There is NO underline auto-conversion from column value to target type:Float
. So the column values must be the type which is assignable to target type, orNumber
.- Parameters:
columnName
-- Returns:
-
getDouble
double getDouble(int columnIndex) Return default value (0d) if the property is null. Return Number.doubleValue() otherwise.
There is NO underline auto-conversion from column value to target type:Double
. So the column values must be the type which is assignable to target type, orNumber
.- Parameters:
columnIndex
-- Returns:
-
getDouble
Return default value (0d) if the property is null. Return Number.doubleValue() otherwise.
There is NO underline auto-conversion from column value to target type:Double
. So the column values must be the type which is assignable to target type, orNumber
.- Parameters:
columnName
-- Returns:
-
isNull
boolean isNull(int columnIndex) Checks if is null.- Parameters:
columnIndex
-- Returns:
- true, if is null
-
isNull
Checks if is null.- Parameters:
columnName
-- Returns:
- true, if is null
-
set
- Parameters:
columnIndex
-value
-
-
set
- Parameters:
columnName
-value
-
-
getColumn
Must NOT modify the returned list.- Type Parameters:
T
-- Parameters:
columnIndex
-- Returns:
-
getColumn
Must NOT modify the returned list.- Type Parameters:
T
-- Parameters:
columnName
-- Returns:
-
copyOfColumn
Copy of column.- Type Parameters:
T
-- Parameters:
columnName
-- Returns:
-
addColumn
- Parameters:
columnName
-column
-
-
addColumn
- Parameters:
columnIndex
- position to add.columnName
-column
-
-
addColumn
<T,E extends Exception> void addColumn(String newColumnName, String fromColumnName, Throwables.Function<T, ?, throws EE> func) Generate the new column values from the specified column by the specifiedFunction
.- Type Parameters:
T
-E
-- Parameters:
newColumnName
-fromColumnName
-func
-- Throws:
E
- the e
-
addColumn
<T,E extends Exception> void addColumn(int columnIndex, String newColumnName, String fromColumnName, Throwables.Function<T, ?, throws EE> func) Generate the new column values from the specified column by the specifiedFunction
.- Type Parameters:
T
-E
-- Parameters:
columnIndex
-newColumnName
-fromColumnName
-func
-- Throws:
E
- the e
-
addColumn
<E extends Exception> void addColumn(String newColumnName, Collection<String> fromColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws EE> func) Generate the new column values from the specified columns by the specifiedFunction
.- Type Parameters:
E
-- Parameters:
newColumnName
-fromColumnNames
-func
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Throws:
E
- the e
-
addColumn
<E extends Exception> void addColumn(int columnIndex, String newColumnName, Collection<String> fromColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws EE> func) Generate the new column values from the specified columns by the specifiedFunction
.- Type Parameters:
E
-- Parameters:
columnIndex
-newColumnName
-fromColumnNames
-func
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Throws:
E
- the e
-
addColumn
<E extends Exception> void addColumn(String newColumnName, Tuple.Tuple2<String, String> fromColumnNames, Throwables.BiFunction<?, throws E?, ?, E> func) Generate the new column values from the specified columns by the specifiedFunction
.- Type Parameters:
E
-- Parameters:
newColumnName
-fromColumnNames
-func
-- Throws:
E
- the e
-
addColumn
<E extends Exception> void addColumn(int columnIndex, String newColumnName, Tuple.Tuple2<String, String> fromColumnNames, Throwables.BiFunction<?, throws E?, ?, E> func) Generate the new column values from the specified columns by the specifiedFunction
.- Type Parameters:
E
-- Parameters:
columnIndex
-newColumnName
-fromColumnNames
-func
-- Throws:
E
- the e
-
addColumn
<E extends Exception> void addColumn(String newColumnName, Tuple.Tuple3<String, String, throws EString> fromColumnNames, Throwables.TriFunction<?, ?, ?, ?, E> func) Generate the new column values from the specified columns by the specifiedFunction
.- Type Parameters:
E
-- Parameters:
newColumnName
-fromColumnNames
-func
-- Throws:
E
- the e
-
addColumn
<E extends Exception> void addColumn(int columnIndex, String newColumnName, Tuple.Tuple3<String, String, throws EString> fromColumnNames, Throwables.TriFunction<?, ?, ?, ?, E> func) Generate the new column values from the specified columns by the specifiedFunction
.- Type Parameters:
E
-- Parameters:
columnIndex
-newColumnName
-fromColumnNames
-func
-- Throws:
E
- the e
-
removeColumn
Remove the column with the specified columnName from this DataSet.- Type Parameters:
T
-- Parameters:
columnName
-- Returns:
-
removeColumns
Remove the column(s) with the specified columnNames from this DataSet.- Parameters:
columnNames
-
-
removeColumns
Remove the column(s) whose name matches the specifiedfilter
.- Type Parameters:
E
-- Parameters:
filter
- column name filter- Throws:
E
- the e
-
updateColumn
<E extends Exception> void updateColumn(String columnName, Throwables.Function<?, ?, throws EE> func) Update the values of the specified column by the specified Try.Function.- Type Parameters:
T
-E
-- Parameters:
columnName
-func
-- Throws:
E
- the e
-
updateColumns
<E extends Exception> void updateColumns(Collection<String> columnNames, Throwables.Function<?, ?, throws EE> func) Update the values of the specified columns one by one with the specified Try.Function.- Type Parameters:
T
-E
-- Parameters:
columnNames
-func
-- Throws:
E
- the e
-
convertColumn
Convert the specified column to target type.- Parameters:
columnName
-targetType
-
-
convertColumns
Convert the specified columns to target types.- Parameters:
columnTargetTypes
-
-
combineColumns
- Parameters:
columnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/Entity
-
combineColumns
<E extends Exception> void combineColumns(Collection<String> columnNames, String newColumnName, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws EE> combineFunc) - Type Parameters:
E
-- Parameters:
columnNames
-newColumnName
-combineFunc
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Throws:
E
- the e
-
combineColumns
<E extends Exception> void combineColumns(Tuple.Tuple2<String, String> columnNames, String newColumnName, Throwables.BiFunction<?, throws E?, ?, E> combineFunc) - Type Parameters:
E
-- Parameters:
columnNames
-newColumnName
-combineFunc
-- Throws:
E
- the e
-
combineColumns
<E extends Exception> void combineColumns(Tuple.Tuple3<String, String, throws EString> columnNames, String newColumnName, Throwables.TriFunction<?, ?, ?, ?, E> combineFunc) - Type Parameters:
E
-- Parameters:
columnNames
-newColumnName
-combineFunc
-- Throws:
E
- the e
-
combineColumns
<E extends Exception> void combineColumns(Throwables.Predicate<String, E> columnNameFilter, String newColumnName, Class<?> newColumnClass) throws E- Type Parameters:
E
-- Parameters:
columnNameFilter
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/Entity- Throws:
E
- the e
-
combineColumns
<E extends Exception,E2 extends Exception> void combineColumns(Throwables.Predicate<String, E> columnNameFilter, String newColumnName, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, throws E, E2?, E2> combineFunc) - Type Parameters:
E
-E2
-- Parameters:
columnNameFilter
-newColumnName
-combineFunc
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Throws:
E
- the eE2
- the e2
-
divideColumn
<T,E extends Exception> void divideColumn(String columnName, Collection<String> newColumnNames, Throwables.Function<T, ? extends List<?>, throws EE> divideFunc) - Type Parameters:
T
-E
-- Parameters:
columnName
-newColumnNames
-divideFunc
-- Throws:
E
- the e
-
divideColumn
<T,E extends Exception> void divideColumn(String columnName, Collection<String> newColumnNames, Throwables.BiConsumer<T, Object[], throws EE> output) - Type Parameters:
T
-E
-- Parameters:
columnName
-newColumnNames
-output
-- Throws:
E
- the e
-
divideColumn
<T,E extends Exception> void divideColumn(String columnName, Tuple.Tuple2<String, String> newColumnNames, Throwables.BiConsumer<T, throws EPair<Object, Object>, E> output) - Type Parameters:
T
-E
-- Parameters:
columnName
-newColumnNames
-output
-- Throws:
E
- the e
-
divideColumn
<T,E extends Exception> void divideColumn(String columnName, Tuple.Tuple3<String, String, throws EString> newColumnNames, Throwables.BiConsumer<T, Triple<Object, Object, Object>, E> output) - Type Parameters:
T
-E
-- Parameters:
columnName
-newColumnNames
-output
-- Throws:
E
- the e
-
addRow
Adds the row.- Parameters:
row
- can be Object[]/List/Map/Entity with getter/setter methods
-
addRow
Adds the row.- Parameters:
rowIndex
-row
- can be Object[]/List/Map/Entity with getter/setter methods
-
removeRow
void removeRow(int rowIndex) Removes the row.- Parameters:
rowIndex
-
-
removeRows
void removeRows(int... indices) Removes the rows.- Parameters:
indices
-
-
removeRowRange
void removeRowRange(int inclusiveFromRowIndex, int exclusiveToRowIndex) Removes the row range.- Parameters:
inclusiveFromRowIndex
-exclusiveToRowIndex
-
-
updateRow
Update the values in the specified row with the specified Try.Function.- Type Parameters:
E
-- Parameters:
rowIndex
-func
-- Throws:
E
- the e
-
updateRows
Update the values in the specified rows one by one with the specified Try.Function.- Type Parameters:
E
-- Parameters:
indices
-func
-- Throws:
E
- the e
-
updateAll
Update all the values in this DataSet with the specified Try.Function.- Type Parameters:
E
-- Parameters:
func
-- Throws:
E
- the e
-
replaceIf
Replace all the values in this DataSet with the specified new value if it matches the specified condition.- Type Parameters:
E
-- Parameters:
func
-newValue
-- Throws:
E
- the e
-
currentRowNum
int currentRowNum()Returns the current row number.- Returns:
-
absolute
Move the cursor to the specified row.- Parameters:
rowNum
-- Returns:
- this object itself.
-
getRow
Gets the row.- Parameters:
rowNum
-- Returns:
-
getRow
Gets the row.- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntityrowNum
-- Returns:
-
getRow
Gets the row.- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntitycolumnNames
-rowNum
-- Returns:
-
getRow
Gets the row.- Type Parameters:
T
-- Parameters:
rowNum
-rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
-
getRow
Gets the row.- Type Parameters:
T
-- Parameters:
columnNames
-rowNum
-rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
-
firstRow
u.Optional<Object[]> firstRow()- Returns:
Optional<Object[]>
-
firstRow
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/Entity- Returns:
Optional<E>
-
firstRow
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntitycolumnNames
-- Returns:
Optional<E>
-
firstRow
- Type Parameters:
T
-- Parameters:
rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
Optional<T>
-
firstRow
- Type Parameters:
T
-- Parameters:
columnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
Optional<T>
-
lastRow
u.Optional<Object[]> lastRow()- Returns:
Optional<Object[]>
-
lastRow
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/Entity- Returns:
Optional<E>
-
lastRow
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/Entity which can be object array/list/set/map/entity.columnNames
-- Returns:
Optional<E>
-
lastRow
- Type Parameters:
T
-- Parameters:
rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
Optional<T>
-
lastRow
- Type Parameters:
T
-- Parameters:
columnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
Optional<T>
-
forEach
<E extends Exception> void forEach(Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) throws EPerforms the given action for each row of theDataSet
until all rows have been processed or the action throws an exception.- Type Parameters:
E
-- Parameters:
action
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Throws:
E
- the e
-
forEach
<E extends Exception> void forEach(Collection<String> columnNames, Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) throws EPerforms the given action for each row of theDataSet
until all rows have been processed or the action throws an exception.- Type Parameters:
E
-- Parameters:
columnNames
-action
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Throws:
E
- the e
-
forEach
<E extends Exception> void forEach(int fromRowIndex, int toRowIndex, Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) throws EPerforms the given action for each row of theDataSet
until all rows have been processed or the action throws an exception.- Type Parameters:
E
-- Parameters:
fromRowIndex
-toRowIndex
-action
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Throws:
E
- the e
-
forEach
<E extends Exception> void forEach(Collection<String> columnNames, int fromRowIndex, int toRowIndex, Throwables.Consumer<? super NoCachingNoUpdating.DisposableObjArray, E> action) throws EPerforms the given action for each row of theDataSet
until all rows have been processed or the action throws an exception.- Type Parameters:
E
-- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-action
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Throws:
E
- the e
-
forEach
<E extends Exception> void forEach(Tuple.Tuple2<String, String> columnNames, Throwables.BiConsumer<?, throws E?, E> action) - Type Parameters:
E
-- Parameters:
columnNames
-action
-- Throws:
E
- the e
-
forEach
<E extends Exception> void forEach(Tuple.Tuple2<String, String> columnNames, int fromRowIndex, int toRowIndex, Throwables.BiConsumer<?, throws E?, E> action) - Type Parameters:
E
-- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-action
-- Throws:
E
- the e
-
forEach
<E extends Exception> void forEach(Tuple.Tuple3<String, String, throws EString> columnNames, Throwables.TriConsumer<?, ?, ?, E> action) - Type Parameters:
E
-- Parameters:
columnNames
-action
-- Throws:
E
- the e
-
forEach
<E extends Exception> void forEach(Tuple.Tuple3<String, String, throws EString> columnNames, int fromRowIndex, int toRowIndex, Throwables.TriConsumer<?, ?, ?, E> action) - Type Parameters:
E
-- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-action
-- Throws:
E
- the e
-
toList
-
toList
- Parameters:
fromRowIndex
-toRowIndex
-- Returns:
-
toList
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/Entity- Returns:
-
toList
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntityfromRowIndex
-toRowIndex
-- Returns:
-
toList
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntitycolumnNames
-- Returns:
-
toList
<T> List<T> toList(Class<? extends T> rowClass, Collection<String> columnNames, int fromRowIndex, int toRowIndex) - Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntitycolumnNames
-fromRowIndex
-toRowIndex
-- Returns:
-
toList
<T,E extends Exception, List<T> toListE2 extends Exception> (Class<? extends T> rowClass, Throwables.Predicate<? super String, E> columnFilter, Throwables.Function<? super String, throws E, E2String, E2> columnConverter) -
toList
<T,E extends Exception, List<T> toListE2 extends Exception> (Class<? extends T> rowClass, Throwables.Predicate<? super String, E> columnFilter, Throwables.Function<? super String, throws E, E2String, E2> columnConverter, int fromRowIndex, int toRowIndex) -
toList
- Type Parameters:
T
-- Parameters:
rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
-
toList
- Type Parameters:
T
-- Parameters:
fromRowIndex
-toRowIndex
-rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
-
toList
- Type Parameters:
T
-- Parameters:
columnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
-
toList
<T> List<T> toList(Collection<String> columnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends T> rowSupplier) - Type Parameters:
T
-- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
-
toMap
- Type Parameters:
K
- the key typeV
- the value type- Parameters:
keyColumnName
-valueColumnName
-- Returns:
-
toMap
<K,V> Map<K,V> toMap(String keyColumnName, String valueColumnName, int fromRowIndex, int toRowIndex) - Type Parameters:
K
- the key typeV
- the value type- Parameters:
keyColumnName
-valueColumnName
-fromRowIndex
-toRowIndex
-- Returns:
-
toMap
<K,V, M toMapM extends Map<K, V>> (String keyColumnName, String valueColumnName, int fromRowIndex, int toRowIndex, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeV
- the value typeM
-- Parameters:
keyColumnName
-valueColumnName
-fromRowIndex
-toRowIndex
-supplier
-- Returns:
-
toMap
<K,V> Map<K,V> toMap(Class<? extends V> rowClass, String keyColumnName, Collection<String> valueColumnNames) - Type Parameters:
K
- the key typeV
- the value type- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntitykeyColumnName
-valueColumnNames
-- Returns:
-
toMap
<K,V> Map<K,V> toMap(Class<? extends V> rowClass, String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex) - Type Parameters:
K
- the key typeV
- the value type- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntitykeyColumnName
-valueColumnNames
-fromRowIndex
-toRowIndex
-- Returns:
-
toMap
<K,V, M toMapM extends Map<K, V>> (Class<? extends V> rowClass, String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeV
- the value typeM
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntitykeyColumnName
-valueColumnNames
-fromRowIndex
-toRowIndex
-supplier
-- Returns:
-
toMap
<K,V> Map<K,V> toMap(String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends V> rowSupplier) - Type Parameters:
K
- the key typeV
- the value type- Parameters:
keyColumnName
-valueColumnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
-
toMap
<K,V> Map<K,V> toMap(String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends V> rowSupplier) - Type Parameters:
K
- the key typeV
- the value type- Parameters:
keyColumnName
-valueColumnNames
-fromRowIndex
-toRowIndex
-rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
-
toMap
<K,V, M toMapM extends Map<K, V>> (String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends V> rowSupplier, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeV
- the value typeM
-- Parameters:
keyColumnName
-valueColumnNames
-fromRowIndex
-toRowIndex
-rowSupplier
- it can be Object[]/List/Set/Map/Entitysupplier
-- Returns:
-
toMultimap
- Type Parameters:
K
- the key typeE
-- Parameters:
keyColumnName
-valueColumnName
-- Returns:
-
toMultimap
<K,E> ListMultimap<K,E> toMultimap(String keyColumnName, String valueColumnName, int fromRowIndex, int toRowIndex) - Type Parameters:
K
- the key typeE
-- Parameters:
keyColumnName
-valueColumnName
-fromRowIndex
-toRowIndex
-- Returns:
-
toMultimap
<K,E, M toMultimapV extends Collection<E>, M extends Multimap<K, E, V>> (String keyColumnName, String valueColumnName, int fromRowIndex, int toRowIndex, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeE
-V
- the value typeM
-- Parameters:
keyColumnName
-valueColumnName
-fromRowIndex
-toRowIndex
-supplier
-- Returns:
-
toMultimap
<K,E> ListMultimap<K,E> toMultimap(Class<? extends E> rowClass, String keyColumnName, Collection<String> valueColumnNames) - Type Parameters:
K
- the key typeE
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntitykeyColumnName
-valueColumnNames
-- Returns:
-
toMultimap
<K,E> ListMultimap<K,E> toMultimap(Class<? extends E> rowClass, String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex) - Type Parameters:
K
- the key typeE
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntitykeyColumnName
-valueColumnNames
-fromRowIndex
-toRowIndex
-- Returns:
-
toMultimap
<K,E, M toMultimapV extends Collection<E>, M extends Multimap<K, E, V>> (Class<? extends E> rowClass, String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeE
-V
- the value typeM
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntitykeyColumnName
-valueColumnNames
-fromRowIndex
-toRowIndex
-supplier
-- Returns:
-
toMultimap
<K,E> ListMultimap<K,E> toMultimap(String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends E> rowSupplier) - Type Parameters:
K
- the key typeE
-- Parameters:
keyColumnName
-valueColumnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
-
toMultimap
<K,E> ListMultimap<K,E> toMultimap(String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends E> rowSupplier) - Type Parameters:
K
- the key typeE
-- Parameters:
keyColumnName
-valueColumnNames
-fromRowIndex
-toRowIndex
-rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
-
toMultimap
<K,E, M toMultimapV extends Collection<E>, M extends Multimap<K, E, V>> (String keyColumnName, Collection<String> valueColumnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends E> rowSupplier, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeE
-V
- the value typeM
-- Parameters:
keyColumnName
-valueColumnNames
-fromRowIndex
-toRowIndex
-rowSupplier
- it can be Object[]/List/Set/Map/Entitysupplier
-- Returns:
-
toMergedEntities
- Type Parameters:
T
-- Parameters:
entityClass
-- Returns:
-
toMergedEntities
- Type Parameters:
T
-- Parameters:
entityClass
-selectPropNames
-- Returns:
-
toMergedEntities
- Type Parameters:
T
-- Parameters:
entityClass
-idPropName
-- Returns:
-
toMergedEntities
<T> List<T> toMergedEntities(Class<T> entityClass, String idPropName, Collection<String> selectPropNames) - Type Parameters:
T
-- Parameters:
entityClass
-idPropName
-selectPropNames
-- Returns:
-
toMergedEntities
<T> List<T> toMergedEntities(Class<T> entityClass, Collection<String> idPropNames, Collection<String> selectPropNames) - Type Parameters:
T
-- Parameters:
entityClass
-idPropNames
-selectPropNames
-- Returns:
-
toJSON
String toJSON() -
toJSON
- Parameters:
fromRowIndex
-toRowIndex
-- Returns:
-
toJSON
- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-- Returns:
-
toJSON
- Parameters:
output
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toJSON
- Parameters:
output
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toJSON
void toJSON(File output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) throws UncheckedIOException - Parameters:
output
-columnNames
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toJSON
- Parameters:
output
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toJSON
- Parameters:
output
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toJSON
void toJSON(OutputStream output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) throws UncheckedIOException - Parameters:
output
-columnNames
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toJSON
- Parameters:
output
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toJSON
- Parameters:
output
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toJSON
void toJSON(Writer output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) throws UncheckedIOException - Parameters:
output
-columnNames
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
String toXML() -
toXML
- Parameters:
rowElementName
-- Returns:
-
toXML
- Parameters:
fromRowIndex
-toRowIndex
-- Returns:
-
toXML
- Parameters:
rowElementName
-fromRowIndex
-toRowIndex
-- Returns:
-
toXML
- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-- Returns:
-
toXML
String toXML(String rowElementName, Collection<String> columnNames, int fromRowIndex, int toRowIndex) - Parameters:
rowElementName
-columnNames
-fromRowIndex
-toRowIndex
-- Returns:
-
toXML
- Parameters:
output
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
- Parameters:
output
-rowElementName
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
- Parameters:
output
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(File output, String rowElementName, int fromRowIndex, int toRowIndex) throws UncheckedIOException - Parameters:
output
-rowElementName
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(File output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) throws UncheckedIOException - Parameters:
output
-columnNames
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(File output, String rowElementName, Collection<String> columnNames, int fromRowIndex, int toRowIndex) throws UncheckedIOException - Parameters:
output
-rowElementName
-columnNames
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
- Parameters:
output
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
- Parameters:
output
-rowElementName
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
- Parameters:
output
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(OutputStream output, String rowElementName, int fromRowIndex, int toRowIndex) throws UncheckedIOException - Parameters:
output
-rowElementName
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(OutputStream output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) throws UncheckedIOException - Parameters:
output
-columnNames
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(OutputStream output, String rowElementName, Collection<String> columnNames, int fromRowIndex, int toRowIndex) throws UncheckedIOException - Parameters:
output
-rowElementName
-columnNames
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
- Parameters:
output
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
- Parameters:
output
-rowElementName
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
- Parameters:
output
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(Writer output, String rowElementName, int fromRowIndex, int toRowIndex) throws UncheckedIOException - Parameters:
output
-rowElementName
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(Writer output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) throws UncheckedIOException - Parameters:
output
-columnNames
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(Writer output, String rowElementName, Collection<String> columnNames, int fromRowIndex, int toRowIndex) throws UncheckedIOException - Parameters:
output
-rowElementName
-columnNames
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toCSV
String toCSV()Each line in the output file/Writer is an array of JSON String without root bracket.- Returns:
-
toCSV
Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-- Returns:
-
toCSV
Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
writeTitle
-quoteValue
-- Returns:
-
toCSV
String toCSV(Collection<String> columnNames, int fromRowIndex, int toRowIndex, boolean writeTitle, boolean quoteValue) Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-writeTitle
-quoteValue
-- Returns:
-
toCSV
Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toCSV
void toCSV(File output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) throws UncheckedIOException Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-columnNames
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toCSV
Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-writeTitle
-quoteValue
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toCSV
void toCSV(File output, Collection<String> columnNames, int fromRowIndex, int toRowIndex, boolean writeTitle, boolean quoteValue) throws UncheckedIOException Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-columnNames
-fromRowIndex
-toRowIndex
-writeTitle
-quoteValue
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toCSV
Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toCSV
void toCSV(OutputStream output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) throws UncheckedIOException Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-columnNames
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toCSV
Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-writeTitle
-quoteValue
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toCSV
void toCSV(OutputStream output, Collection<String> columnNames, int fromRowIndex, int toRowIndex, boolean writeTitle, boolean quoteValue) throws UncheckedIOException Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-columnNames
-fromRowIndex
-toRowIndex
-writeTitle
-quoteValue
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toCSV
Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toCSV
void toCSV(Writer output, Collection<String> columnNames, int fromRowIndex, int toRowIndex) throws UncheckedIOException Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-columnNames
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toCSV
Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-writeTitle
-quoteValue
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toCSV
void toCSV(Writer output, Collection<String> columnNames, int fromRowIndex, int toRowIndex, boolean writeTitle, boolean quoteValue) throws UncheckedIOException Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-columnNames
-fromRowIndex
-toRowIndex
-writeTitle
-quoteValue
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
groupBy
<T> DataSet groupBy(String columnName, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) - Type Parameters:
T
-- Parameters:
columnName
-aggregateResultColumnName
-aggregateOnColumnName
-collector
-- Returns:
-
groupBy
<T,E extends Exception> DataSet groupBy(String columnName, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, throws EE> func) - Type Parameters:
T
-E
-- Parameters:
columnName
-aggregateResultColumnName
-aggregateOnColumnName
-func
-- Returns:
- Throws:
E
- the e
-
groupBy
DataSet groupBy(String columnName, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) - Parameters:
columnName
-aggregateResultColumnName
-aggregateOnColumnNames
-rowClass
-- Returns:
-
groupBy
DataSet groupBy(String columnName, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) - Parameters:
columnName
-aggregateResultColumnName
-aggregateOnColumnNames
-collector
-- Returns:
-
groupBy
<U,E extends Exception> DataSet groupBy(String columnName, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, throws EE> rowMapper, Collector<? super U, ?, ?> collector) - Type Parameters:
U
-E
-- Parameters:
columnName
-aggregateResultColumnName
-aggregateOnColumnNames
-rowMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)collector
-- Returns:
- Throws:
E
- the e
-
groupBy
<K,T, DataSet groupByE extends Exception> (String columnName, Throwables.Function<K, ?, throws EE> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) - Type Parameters:
K
- the key typeT
-E
-- Parameters:
columnName
-keyMapper
-aggregateResultColumnName
-aggregateOnColumnName
-collector
-- Returns:
- Throws:
E
- the e
-
groupBy
<K,T, DataSet groupByE extends Exception, E2 extends Exception> (String columnName, Throwables.Function<K, ?, throws E, E2E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E2> func) - Type Parameters:
K
- the key typeT
-E
-E2
-- Parameters:
columnName
-keyMapper
-aggregateResultColumnName
-aggregateOnColumnName
-func
-- Returns:
- Throws:
E
- the eE2
- the e2
-
groupBy
<K,E extends Exception> DataSet groupBy(String columnName, Throwables.Function<K, ?, throws EE> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) - Type Parameters:
K
- the key typeE
-- Parameters:
columnName
-keyMapper
-aggregateResultColumnName
-aggregateOnColumnNames
-rowClass
-- Returns:
- Throws:
E
- the e
-
groupBy
<K,E extends Exception> DataSet groupBy(String columnName, Throwables.Function<K, ?, throws EE> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) - Type Parameters:
K
- the key typeE
-- Parameters:
columnName
-keyMapper
-aggregateResultColumnName
-aggregateOnColumnNames
-collector
-- Returns:
- Throws:
E
- the e
-
groupBy
<K,U, DataSet groupByE extends Exception, E2 extends Exception> (String columnName, Throwables.Function<K, ?, throws E, E2E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E2> rowMapper, Collector<? super U, ?, ?> collector) - Type Parameters:
K
- the key typeU
-E
-E2
-- Parameters:
columnName
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-rowMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)collector
-- Returns:
- Throws:
E
- the eE2
- the e2
-
groupBy
- Parameters:
columnNames
-- Returns:
-
groupBy
<T> DataSet groupBy(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) - Type Parameters:
T
-- Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnName
-collector
-- Returns:
-
groupBy
<T,E extends Exception> DataSet groupBy(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, throws EE> func) - Type Parameters:
T
-E
-- Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnName
-func
-- Returns:
- Throws:
E
- the e
-
groupBy
DataSet groupBy(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) - Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnNames
-rowClass
-- Returns:
-
groupBy
DataSet groupBy(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) - Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnNames
-collector
-- Returns:
-
groupBy
<U,E extends Exception> DataSet groupBy(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, throws EE> rowMapper, Collector<? super U, ?, ?> collector) - Type Parameters:
U
-E
-- Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnNames
-rowMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)collector
-- Returns:
- Throws:
E
- the e
-
groupBy
<E extends Exception> DataSet groupBy(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws EE> keyMapper) - Type Parameters:
E
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Returns:
- Throws:
E
- the e
-
groupBy
<T,E extends Exception> DataSet groupBy(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws EE> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) - Type Parameters:
T
-E
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnName
-collector
-- Returns:
- Throws:
E
- the e
-
groupBy
<T,E extends Exception, DataSet groupByE2 extends Exception> (Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws E, E2E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E2> func) - Type Parameters:
T
-E
-E2
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnName
-func
-- Returns:
- Throws:
E
- the eE2
- the e2
-
groupBy
<E extends Exception> DataSet groupBy(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws EE> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) - Type Parameters:
E
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-rowClass
-- Returns:
- Throws:
E
- the e
-
groupBy
<E extends Exception> DataSet groupBy(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws EE> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) - Type Parameters:
E
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-collector
-- Returns:
- Throws:
E
- the e
-
groupBy
<U,E extends Exception, DataSet groupByE2 extends Exception> (Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws E, E2E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E2> rowMapper, Collector<? super U, ?, ?> collector) - Type Parameters:
U
-E
-E2
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-rowMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)collector
-- Returns:
- Throws:
E
- the eE2
- the e2
-
rollup
- Parameters:
columnNames
-- Returns:
- See Also:
-
rollup
@Beta <T> Stream<DataSet> rollup(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) - Type Parameters:
T
-- Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnName
-collector
-- Returns:
- See Also:
-
rollup
@Beta <T,E extends Exception> Stream<DataSet> rollup(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E> func) - Type Parameters:
T
-E
-- Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnName
-func
-- Returns:
- See Also:
-
rollup
@Beta Stream<DataSet> rollup(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) - Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnNames
-rowClass
-- Returns:
- See Also:
-
rollup
@Beta Stream<DataSet> rollup(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) - Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnNames
-collector
-- Returns:
- See Also:
-
rollup
@Beta <U,E extends Exception> Stream<DataSet> rollup(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E> rowMapper, Collector<? super U, ?, ?> collector) - Type Parameters:
U
-E
-- Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnNames
-rowMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)collector
-- Returns:
- See Also:
-
rollup
@Beta <E extends Exception> Stream<DataSet> rollup(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper) - Type Parameters:
E
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Returns:
- See Also:
-
rollup
@Beta <T,E extends Exception> Stream<DataSet> rollup(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) - Type Parameters:
T
-E
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnName
-collector
-- Returns:
- See Also:
-
rollup
@Beta <T,E extends Exception, Stream<DataSet> rollupE2 extends Exception> (Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E2> func) - Type Parameters:
T
-E
-E2
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnName
-func
-- Returns:
- See Also:
-
rollup
@Beta <E extends Exception> Stream<DataSet> rollup(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) - Type Parameters:
E
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-rowClass
-- Returns:
- See Also:
-
rollup
@Beta <E extends Exception> Stream<DataSet> rollup(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) - Type Parameters:
E
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-collector
-- Returns:
- See Also:
-
rollup
@Beta <U,E extends Exception, Stream<DataSet> rollupE2 extends Exception> (Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E2> rowMapper, Collector<? super U, ?, ?> collector) - Type Parameters:
U
-E
-E2
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-rowMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)collector
-- Returns:
- See Also:
-
cube
- Parameters:
columnNames
-- Returns:
- See Also:
-
cube
@Beta <T> Stream<DataSet> cube(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) - Type Parameters:
T
-- Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnName
-collector
-- Returns:
- See Also:
-
cube
@Beta <T,E extends Exception> Stream<DataSet> cube(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E> func) - Type Parameters:
T
-E
-- Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnName
-func
-- Returns:
- See Also:
-
cube
@Beta Stream<DataSet> cube(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) - Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnNames
-rowClass
-- Returns:
- See Also:
-
cube
@Beta Stream<DataSet> cube(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) - Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnNames
-collector
-- Returns:
- See Also:
-
cube
@Beta <U,E extends Exception> Stream<DataSet> cube(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E> rowMapper, Collector<? super U, ?, ?> collector) - Type Parameters:
U
-E
-- Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnNames
-rowMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)collector
-- Returns:
- See Also:
-
cube
@Beta <E extends Exception> Stream<DataSet> cube(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper) - Type Parameters:
E
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Returns:
- See Also:
-
cube
@Beta <T,E extends Exception> Stream<DataSet> cube(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<T, ?, ?> collector) - Type Parameters:
T
-E
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnName
-collector
-- Returns:
- See Also:
-
cube
@Beta <T,E extends Exception, Stream<DataSet> cubeE2 extends Exception> (Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Throwables.Function<Stream<T>, ?, E2> func) - Type Parameters:
T
-E
-E2
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnName
-func
-- Returns:
- See Also:
-
cube
@Beta <E extends Exception> Stream<DataSet> cube(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) - Type Parameters:
E
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-rowClass
-- Returns:
- See Also:
-
cube
@Beta <E extends Exception> Stream<DataSet> cube(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) - Type Parameters:
E
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-collector
-- Returns:
- See Also:
-
cube
@Beta <U,E extends Exception, Stream<DataSet> cubeE2 extends Exception> (Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, U, E2> rowMapper, Collector<? super U, ?, ?> collector) - Type Parameters:
U
-E
-E2
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-rowMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)collector
-- Returns:
- See Also:
-
sortBy
- Parameters:
columnName
-
-
sortBy
- Type Parameters:
T
-- Parameters:
columnName
-cmp
-
-
sortBy
- Parameters:
columnNames
-
-
sortBy
- Parameters:
columnNames
-cmp
-
-
sortBy
void sortBy(Collection<String> columnNames, Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends Comparable> keyMapper) - Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)
-
parallelSortBy
Parallel sort by.- Parameters:
columnName
-
-
parallelSortBy
Parallel sort by.- Type Parameters:
T
-- Parameters:
columnName
-cmp
-
-
parallelSortBy
Parallel sort by.- Parameters:
columnNames
-
-
parallelSortBy
Parallel sort by.- Parameters:
columnNames
-cmp
-
-
parallelSortBy
void parallelSortBy(Collection<String> columnNames, Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends Comparable> keyMapper) Parallel sort by.- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)
-
topBy
- Parameters:
columnName
-n
-- Returns:
-
topBy
- Type Parameters:
T
-- Parameters:
columnName
-n
-cmp
-- Returns:
-
topBy
- Parameters:
columnNames
-n
-- Returns:
-
topBy
- Parameters:
columnNames
-n
-cmp
-- Returns:
-
topBy
DataSet topBy(Collection<String> columnNames, int n, Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends Comparable> keyMapper) - Parameters:
columnNames
-n
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Returns:
-
distinct
DataSet distinct()Returns a newDataSet
with the rows de-duplicated by the values in all columns.- Returns:
- a new DataSet
-
distinctBy
Returns a newDataSet
with the rows de-duplicated by the value in the specified column.- Parameters:
columnName
-- Returns:
- a new DataSet
-
distinctBy
<K,E extends Exception> DataSet distinctBy(String columnName, Throwables.Function<K, ?, throws EE> keyMapper) Returns a newDataSet
with the rows de-duplicated by the value in the specified column from the specifiedfromRowIndex
totoRowIndex
.- Type Parameters:
K
- the key typeE
-- Parameters:
columnName
-keyMapper
- don't change value of the input parameter.- Returns:
- Throws:
E
- the e
-
distinctBy
Returns a newDataSet
with the rows de-duplicated by the values in the specified columns.- Parameters:
columnNames
-- Returns:
- a new DataSet
-
distinctBy
<E extends Exception> DataSet distinctBy(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws EE> keyMapper) Returns a newDataSet
with the rows de-duplicated by the values in the specified columns from the specifiedfromRowIndex
totoRowIndex
.- Type Parameters:
E
-- Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) throws E- Type Parameters:
E
-- Parameters:
filter
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) throws E- Type Parameters:
E
-- Parameters:
filter
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)max
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) throws E- Type Parameters:
E
-- Parameters:
fromRowIndex
-toRowIndex
-filter
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) throws E- Type Parameters:
E
-- Parameters:
fromRowIndex
-toRowIndex
-filter
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)max
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(Tuple.Tuple2<String, String> columnNames, Throwables.BiPredicate<?, throws E?, E> filter) - Type Parameters:
E
-- Parameters:
columnNames
-filter
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(Tuple.Tuple2<String, String> columnNames, Throwables.BiPredicate<?, throws E?, E> filter, int max) - Type Parameters:
E
-- Parameters:
columnNames
-filter
-max
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(Tuple.Tuple2<String, String> columnNames, int fromRowIndex, int toRowIndex, Throwables.BiPredicate<?, throws E?, E> filter) - Type Parameters:
E
-- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-filter
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(Tuple.Tuple2<String, String> columnNames, int fromRowIndex, int toRowIndex, Throwables.BiPredicate<?, throws E?, E> filter, int max) - Type Parameters:
E
-- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-filter
-max
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(Tuple.Tuple3<String, String, throws EString> columnNames, Throwables.TriPredicate<?, ?, ?, E> filter) - Type Parameters:
E
-- Parameters:
columnNames
-filter
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(Tuple.Tuple3<String, String, throws EString> columnNames, Throwables.TriPredicate<?, ?, ?, E> filter, int max) - Type Parameters:
E
-- Parameters:
columnNames
-filter
-max
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(Tuple.Tuple3<String, String, throws EString> columnNames, int fromRowIndex, int toRowIndex, Throwables.TriPredicate<?, ?, ?, E> filter) - Type Parameters:
E
-- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-filter
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(Tuple.Tuple3<String, String, throws EString> columnNames, int fromRowIndex, int toRowIndex, Throwables.TriPredicate<?, ?, ?, E> filter, int max) - Type Parameters:
E
-- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-filter
-max
-- Returns:
- Throws:
E
- the e
-
filter
<T,E extends Exception> DataSet filter(String columnName, Throwables.Predicate<T, E> filter) throws E- Type Parameters:
T
-E
-- Parameters:
columnName
-filter
-- Returns:
- Throws:
E
- the e
-
filter
<T,E extends Exception> DataSet filter(String columnName, Throwables.Predicate<T, E> filter, int max) throws E- Type Parameters:
T
-E
-- Parameters:
columnName
-filter
-max
-- Returns:
- Throws:
E
- the e
-
filter
<T,E extends Exception> DataSet filter(String columnName, int fromRowIndex, int toRowIndex, Throwables.Predicate<T, E> filter) throws E- Type Parameters:
T
-E
-- Parameters:
columnName
-fromRowIndex
-toRowIndex
-filter
-- Returns:
- Throws:
E
- the e
-
filter
<T,E extends Exception> DataSet filter(String columnName, int fromRowIndex, int toRowIndex, Throwables.Predicate<T, E> filter, int max) throws E- Type Parameters:
T
-E
-- Parameters:
columnName
-fromRowIndex
-toRowIndex
-filter
-max
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(Collection<String> columnNames, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) throws E- Type Parameters:
E
-- Parameters:
columnNames
-filter
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(Collection<String> columnNames, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) throws E- Type Parameters:
E
-- Parameters:
columnNames
-filter
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)max
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(Collection<String> columnNames, int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) throws E- Type Parameters:
E
-- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-filter
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(Collection<String> columnNames, int fromRowIndex, int toRowIndex, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) throws E- Type Parameters:
E
-- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-filter
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)max
-- Returns:
- Throws:
E
- the e
-
map
<E extends Exception> DataSet map(String fromColumnName, Throwables.Function<?, ?, throws EE> func, String newColumnName, String copyingColumnName) - Type Parameters:
E
-- Parameters:
fromColumnName
-func
-newColumnName
-copyingColumnName
-- Returns:
- Throws:
E
- the e
-
map
<E extends Exception> DataSet map(String fromColumnName, Throwables.Function<?, ?, throws EE> func, String newColumnName, Collection<String> copyingColumnNames) - Type Parameters:
E
-- Parameters:
fromColumnName
-func
-newColumnName
-copyingColumnNames
-- Returns:
- Throws:
E
- the e
-
map
<E extends Exception> DataSet map(Tuple.Tuple2<String, String> fromColumnNames, Throwables.BiFunction<?, throws E?, ?, E> func, String newColumnName, Collection<String> copyingColumnNames) - Type Parameters:
E
-- Parameters:
fromColumnNames
-func
-newColumnName
-copyingColumnNames
-- Returns:
- Throws:
E
- the e
-
map
<E extends Exception> DataSet map(Tuple.Tuple3<String, String, throws EString> fromColumnNames, Throwables.TriFunction<?, ?, ?, ?, E> func, String newColumnName, Collection<String> copyingColumnNames) - Type Parameters:
E
-- Parameters:
fromColumnNames
-func
-newColumnName
-copyingColumnNames
-- Returns:
- Throws:
E
- the e
-
map
<E extends Exception> DataSet map(Collection<String> fromColumnNames, Throwables.Function<NoCachingNoUpdating.DisposableObjArray, ?, throws EE> func, String newColumnName, Collection<String> copyingColumnNames) - Type Parameters:
E
-- Parameters:
fromColumnNames
-func
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)newColumnName
-copyingColumnNames
-- Returns:
- Throws:
E
- the e
-
flatMap
<E extends Exception> DataSet flatMap(String fromColumnName, Throwables.Function<?, ? extends Collection<?>, throws EE> func, String newColumnName, String copyingColumnName) - Type Parameters:
E
-- Parameters:
fromColumnName
-func
-newColumnName
-copyingColumnName
-- Returns:
- Throws:
E
- the e
-
flatMap
<E extends Exception> DataSet flatMap(String fromColumnName, Throwables.Function<?, ? extends Collection<?>, throws EE> func, String newColumnName, Collection<String> copyingColumnNames) - Type Parameters:
E
-- Parameters:
fromColumnName
-func
-newColumnName
-copyingColumnNames
-- Returns:
- Throws:
E
- the e
-
flatMap
<E extends Exception> DataSet flatMap(Tuple.Tuple2<String, String> fromColumnNames, Throwables.BiFunction<?, throws E?, ? extends Collection<?>, E> func, String newColumnName, Collection<String> copyingColumnNames) - Type Parameters:
E
-- Parameters:
fromColumnNames
-func
-newColumnName
-copyingColumnNames
-- Returns:
- Throws:
E
- the e
-
flatMap
<E extends Exception> DataSet flatMap(Tuple.Tuple3<String, String, throws EString> fromColumnNames, Throwables.TriFunction<?, ?, ?, ? extends Collection<?>, E> func, String newColumnName, Collection<String> copyingColumnNames) - Type Parameters:
E
-- Parameters:
fromColumnNames
-func
-newColumnName
-copyingColumnNames
-- Returns:
- Throws:
E
- the e
-
flatMap
<E extends Exception> DataSet flatMap(Collection<String> fromColumnNames, Throwables.Function<NoCachingNoUpdating.DisposableObjArray, ? extends Collection<?>, throws EE> func, String newColumnName, Collection<String> copyingColumnNames) - Type Parameters:
E
-- Parameters:
fromColumnNames
-func
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)newColumnName
-copyingColumnNames
-- Returns:
- Throws:
E
- the e
-
innerJoin
Returns a newDataSet
that is limited to the rows where there is a match in boththis DataSet
andright DataSet
.- Parameters:
right
-columnName
-refColumnName
-- Returns:
- a new DataSet
-
innerJoin
Returns a newDataSet
that is limited to the rows where there is a match in boththis DataSet
andright DataSet
.- Parameters:
right
-onColumnNames
-- Returns:
- a new DataSet
-
innerJoin
DataSet innerJoin(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass) Returns a newDataSet
that is limited to the rows where there is a match in boththis DataSet
andright DataSet
.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/Entity- Returns:
- a new DataSet
-
innerJoin
DataSet innerJoin(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass, IntFunction<? extends Collection> collSupplier) Returns a newDataSet
that is limited to the rows where there is a match in boththis DataSet
andright DataSet
.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/EntitycollSupplier
- it's for one-to-many join- Returns:
- a new DataSet
-
leftJoin
Returns a newDataSet
that has all the rows from thisDataSet
and the rows from the specifiedright DataSet
if they have a match with the rows from the thisDataSet
.- Parameters:
right
-columnName
-refColumnName
-- Returns:
- a new DataSet
-
leftJoin
Returns a newDataSet
that has all the rows from thisDataSet
and the rows from the specifiedright DataSet
if they have a match with the rows from the thisDataSet
.- Parameters:
right
-onColumnNames
-- Returns:
- a new DataSet
-
leftJoin
DataSet leftJoin(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass) Returns a newDataSet
that has all the rows from thisDataSet
and the rows from the specifiedright DataSet
if they have a match with the rows from the thisDataSet
.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/Entity- Returns:
- a new DataSet
-
leftJoin
DataSet leftJoin(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass, IntFunction<? extends Collection> collSupplier) Returns a newDataSet
that has all the rows from thisDataSet
and the rows from the specifiedright DataSet
if they have a match with the rows from the thisDataSet
.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/EntitycollSupplier
- it's for one-to-many join- Returns:
- a new DataSet
-
rightJoin
Returns a newDataSet
that has all the rows from the specified rightDataSet
and the rows fromthis DataSet
if they have a match with the rows from the rightDataSet
.- Parameters:
right
-columnName
-refColumnName
-- Returns:
- a new DataSet
-
rightJoin
Returns a newDataSet
that has all the rows from the specified rightDataSet
and the rows fromthis DataSet
if they have a match with the rows from the rightDataSet
.- Parameters:
right
-onColumnNames
-- Returns:
- a new DataSet
-
rightJoin
DataSet rightJoin(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass) Returns a newDataSet
that has all the rows from the specified rightDataSet
and the rows fromthis DataSet
if they have a match with the rows from the rightDataSet
.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/Entity- Returns:
- a new DataSet
-
rightJoin
DataSet rightJoin(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass, IntFunction<? extends Collection> collSupplier) Returns a newDataSet
that has all the rows from the specified rightDataSet
and the rows fromthis DataSet
if they have a match with the rows from the rightDataSet
.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/EntitycollSupplier
- it's for one-to-many join- Returns:
- a new DataSet
-
fullJoin
Returns a newDataSet
that has all the rows from thisDataSet
and the specifiedright DataSet
, regardless of whether there are any matches.- Parameters:
right
-columnName
-refColumnName
-- Returns:
- a new DataSet
-
fullJoin
Returns a newDataSet
that has all the rows from thisDataSet
and the specifiedright DataSet
, regardless of whether there are any matches.- Parameters:
right
-onColumnNames
-- Returns:
- a new DataSet
-
fullJoin
DataSet fullJoin(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass) Returns a newDataSet
that has all the rows from thisDataSet
and the specifiedright DataSet
, regardless of whether there are any matches.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/Entity- Returns:
- a new DataSet
-
fullJoin
DataSet fullJoin(DataSet right, Map<String, String> onColumnNames, String newColumnName, Class<?> newColumnClass, IntFunction<? extends Collection> collSupplier) Returns a newDataSet
that has all the rows from thisDataSet
and the specifiedright DataSet
, regardless of whether there are any matches.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/EntitycollSupplier
- it's for one-to-many join- Returns:
- a new DataSet
-
union
Returns a newDataSet
. Duplicated row in the specifiedDataSet
will be eliminated.- Parameters:
dataSet
-- Returns:
- a new DataSet
-
unionAll
Returns a newDataSet
. Duplicated row in the specifiedDataSet
will not be eliminated.- Parameters:
dataSet
-- Returns:
- a new DataSet
-
intersect
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns. This operation removes duplicate rows from the final result set.- Parameters:
other
-- Returns:
-
intersectAll
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns. This operation doesn't remove duplicate rows from the final result set.- Parameters:
other
-- Returns:
- See Also:
-
intersection
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns by occurrences. This operation only cares the occurrences of rows in bothDataSet
. it doesn't remove duplicate.- Parameters:
dataSet
-- Returns:
- a new DataSet
- See Also:
-
except
Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns.- Parameters:
other
-- Returns:
- See Also:
-
difference
Returns a newDataSet
with different rows in common columns from the specifiedDataSet
, occurrences matter.- Parameters:
dataSet
-- Returns:
- a new DataSet
- See Also:
-
symmetricDifference
- Parameters:
dataSet
-- Returns:
- See Also:
-
merge
Returns a newDataSet
by appending the specifiedfrom
DataSet
into thisDataSet
.- Parameters:
from
-- Returns:
-
merge
Returns a newDataSet
by appending the specifiedfrom
DataSet
into thisDataSet
.- Parameters:
from
-columnNames
-- Returns:
-
merge
Returns a newDataSet
by appending the specifiedfrom
DataSet
fromfromRowIndex
totoRowIndex
into thisDataSet
.- Parameters:
from
-fromRowIndex
-toRowIndex
-- Returns:
-
merge
Returns a newDataSet
by appending the specifiedcolumnNames
infrom
DataSet
fromfromRowIndex
totoRowIndex
into thisDataSet
.- Parameters:
from
-columnNames
-fromRowIndex
-toRowIndex
-- Returns:
-
merge
- Parameters:
a
-b
-- Returns:
-
merge
- Parameters:
dss
-- Returns:
-
cartesianProduct
- Parameters:
b
-- Returns:
-
split
Returns consecutive sub lists of this DataSet, each of the same chunkSize (the list may be smaller), or an empty List if this DataSet is empty.- Parameters:
chunkSize
- the desired size of each sub DataSet (the last may be smaller).- Returns:
-
split
Returns consecutive sub lists of this DataSet, each of the same chunkSize (the list may be smaller), or an empty List if this DataSet is empty.- Parameters:
columnNames
-chunkSize
- the desired size of each sub DataSet (the last may be smaller).- Returns:
-
splitToList
Returns consecutive sub lists of this DataSet, each of the same chunkSize (the list may be smaller), or an empty List if this DataSet is empty.- Parameters:
chunkSize
-- Returns:
-
splitToList
Returns consecutive sub lists of this DataSet, each of the same chunkSize (the list may be smaller), or an empty List if this DataSet is empty.- Parameters:
columnNames
-chunkSize
-- Returns:
-
slice
Returns a frozenDataSet
.- Parameters:
columnNames
-- Returns:
- a copy of this DataSet
-
slice
Returns a frozenDataSet
.- Parameters:
fromRowIndex
-toRowIndex
-- Returns:
- a copy of this DataSet
-
slice
Returns a frozenDataSet
.- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-- Returns:
- a copy of this DataSet
-
copy
DataSet copy()Returns the copy of thisDataSet
. The frozen status of the copy will always be false, even the originalDataSet
is frozen.- Returns:
- a copy of this DataSet
-
copy
Returns the copy of thisDataSet
with specified column name list. The frozen status of the copy will always be false, even the originalDataSet
is frozen.- Parameters:
columnNames
-- Returns:
- a copy of this DataSet
-
copy
Returns the copy of thisDataSet
from the specifiedfromRowIndex
totoRowIndex
. The frozen status of the copy will always be false, even the originalDataSet
is frozen.- Parameters:
fromRowIndex
-toRowIndex
-- Returns:
- a copy of this DataSet
-
copy
Returns the copy of thisDataSet
with specified column name list from the specifiedfromRowIndex
totoRowIndex
. The frozen status of the copy will always be false, even the originalDataSet
is frozen.- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-- Returns:
- a copy of this DataSet
-
clone
DataSet clone()Deeply copy each element in thisDataSet
by Serialization/Deserialization.- Returns:
-
clone
Deeply copy each element in thisDataSet
by Serialization/Deserialization.- Parameters:
freeze
-- Returns:
-
iterator
- Type Parameters:
A
-B
-- Parameters:
columnNameA
-columnNameB
-- Returns:
-
iterator
<A,B> BiIterator<A,B> iterator(String columnNameA, String columnNameB, int fromRowIndex, int toRowIndex) - Type Parameters:
A
-B
-- Parameters:
columnNameA
-columnNameB
-fromRowIndex
-toRowIndex
-- Returns:
-
iterator
- Type Parameters:
A
-B
-C
-- Parameters:
columnNameA
-columnNameB
-columnNameC
-- Returns:
-
iterator
<A,B, TriIterator<A,C> B, iteratorC> (String columnNameA, String columnNameB, String columnNameC, int fromRowIndex, int toRowIndex) - Type Parameters:
A
-B
-C
-- Parameters:
columnNameA
-columnNameB
-columnNameC
-fromRowIndex
-toRowIndex
-- Returns:
-
paginate
- Parameters:
pageSize
-- Returns:
-
paginate
- Parameters:
columnNames
-pageSize
-- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
columnName
-- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
columnName
-fromRowIndex
-toRowIndex
-- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/Entity- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntityfromRowIndex
-toRowIndex
-- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntitycolumnNames
-- Returns:
-
stream
<T> Stream<T> stream(Class<? extends T> rowClass, Collection<String> columnNames, int fromRowIndex, int toRowIndex) - Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/EntitycolumnNames
-fromRowIndex
-toRowIndex
-- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
fromRowIndex
-toRowIndex
-rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
columnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
-
stream
<T> Stream<T> stream(Collection<String> columnNames, int fromRowIndex, int toRowIndex, IntFunction<? extends T> rowSupplier) - Type Parameters:
T
-- Parameters:
columnNames
-fromRowIndex
-toRowIndex
-rowSupplier
- it can be Object[]/List/Set/Map/Entity- Returns:
-
apply
- Type Parameters:
R
-E
-- Parameters:
func
-- Returns:
- Throws:
E
- the e
-
accept
- Type Parameters:
E
-- Parameters:
action
-- Throws:
E
- the e
-
freeze
void freeze()Method freeze. -
frozen
boolean frozen()- Returns:
- true, if successful
-
clear
void clear()Method clear. -
isEmpty
boolean isEmpty()Checks if is empty.- Returns:
- true, if is empty
-
trimToSize
void trimToSize()Trim to size. -
size
int size()Returns the size of thisDataSet
.- Returns:
-
properties
-
columnNames
-
columns
Stream<ImmutableList<Object>> columns() -
columnMap
Map<String,ImmutableList<Object>> columnMap()- Returns:
- key are column name, value is column - an immutable list, backed by the column in this
DataSet
.
-
println
- Throws:
UncheckedIOException
- the unchecked IO exception
-
println
void println(Collection<String> columnNames, int fromRowIndex, int toRowIndex) throws UncheckedIOException - Parameters:
columnNames
-fromRowIndex
-toRowIndex
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
println
- Type Parameters:
W
-- Parameters:
outputWriter
-- Returns:
- Throws:
UncheckedIOException
- the unchecked IO exception
-
println
<W extends Writer> W println(W outputWriter, Collection<String> columnNames, int fromRowIndex, int toRowIndex) throws UncheckedIOException - Type Parameters:
W
-- Parameters:
outputWriter
-columnNames
-fromRowIndex
-toRowIndex
-- Returns:
- Throws:
UncheckedIOException
- the unchecked IO exception
-