Package com.landawn.abacus.util
Interface DataSet
- All Known Implementing Classes:
RowDataSet
public interface DataSet
- Since:
- 0.8
- Author:
- Haiyang Li
- See Also:
-
Builder.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 rowIndex) Move the cursor to the specified row.<E extends Exception>
voidaccept
(Throwables.Consumer<? super DataSet, E> action) <E extends Exception>
voidacceptIfNotEmpty
(Throwables.Consumer<? super DataSet, E> action) <E extends Exception>
voidaddColumn
(int newColumnPosition, 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 newColumnPosition, String newColumnName, Tuple.Tuple3<String, String, String> fromColumnNames, Throwables.TriFunction<?, ?, ?, ?, E> func) Generate the new column values from the specified columns by the specifiedFunction
.<E extends Exception>
voidaddColumn
(int newColumnPosition, String newColumnName, String fromColumnName, Throwables.Function<?, ?, E> func) Generate the new column values from the specified column by the specifiedFunction
.<E extends Exception>
voidaddColumn
(int newColumnPosition, 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
.<E extends Exception>
voidaddColumn
(String newColumnName, String fromColumnName, Throwables.Function<?, ?, 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.void
Append the specifiedother
into thisDataSet
.<R,
E extends Exception>
Rapply
(Throwables.Function<? super DataSet, ? extends R, E> func) <R,
E extends Exception>
u.Optional<R>applyIfNotEmpty
(Throwables.Function<? super DataSet, ? extends R, E> func) cartesianProduct
(DataSet other) 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.int
Return the count of columns in this DataSet.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
(int fromRowIndex, int toRowIndex, Collection<String> columnNames) Returns the copy of thisDataSet
with specified column name list from the specifiedfromRowIndex
totoRowIndex
.copy
(Collection<String> columnNames) Returns the copy of thisDataSet
with specified column name list.<T> List<T>
copyOfColumn
(String columnName) Copy of column.cube
(Collection<String> columnNames) cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper) cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, ? extends Exception> rowMapper, Collector<? super T, ?, ?> collector) cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) cube
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) cube
(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) cube
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, ? extends Exception> rowMapper, Collector<? super T, ?, ?> 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 other) Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns.difference
(DataSet other, boolean requiresSameColumns) Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns.difference
(DataSet other, Collection<String> keyColumnNames) Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns.difference
(DataSet other, Collection<String> keyColumnNames, boolean requiresSameColumns) Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns.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<?, ?, 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
.<E extends Exception>
voiddivideColumn
(String columnName, Tuple.Tuple2<String, String> newColumnNames, Throwables.BiConsumer<?, Pair<Object, Object>, E> output) <E extends Exception>
voiddivideColumn
(String columnName, Tuple.Tuple3<String, String, String> newColumnNames, Throwables.BiConsumer<?, Triple<Object, Object, Object>, E> output) <E extends Exception>
voiddivideColumn
(String columnName, Collection<String> newColumnNames, Throwables.BiConsumer<?, Object[], E> output) <E extends Exception>
voiddivideColumn
(String columnName, Collection<String> newColumnNames, Throwables.Function<?, ? extends List<?>, E> divideFunc) static DataSet
empty()
Returns an empty immutableDataSet
.Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns.Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns.except
(DataSet other, Collection<String> keyColumnNames) Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns.except
(DataSet other, Collection<String> keyColumnNames, boolean requiresSameColumns) Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns.Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns.Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns.exceptAll
(DataSet other, Collection<String> keyColumnNames) Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns.exceptAll
(DataSet other, Collection<String> keyColumnNames, boolean requiresSameColumns) 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
(int fromRowIndex, int toRowIndex, Tuple.Tuple2<String, String> columnNames, Throwables.BiPredicate<?, ?, E> filter) filter
(int fromRowIndex, int toRowIndex, Tuple.Tuple2<String, String> columnNames, Throwables.BiPredicate<?, ?, E> filter, int max) filter
(int fromRowIndex, int toRowIndex, Tuple.Tuple3<String, String, String> columnNames, Throwables.TriPredicate<?, ?, ?, E> filter) filter
(int fromRowIndex, int toRowIndex, Tuple.Tuple3<String, String, String> columnNames, Throwables.TriPredicate<?, ?, ?, E> filter, int max) filter
(int fromRowIndex, int toRowIndex, String columnName, Throwables.Predicate<?, E> filter) filter
(int fromRowIndex, int toRowIndex, String columnName, Throwables.Predicate<?, E> filter, int max) filter
(int fromRowIndex, int toRowIndex, Collection<String> columnNames, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) filter
(int fromRowIndex, int toRowIndex, Collection<String> columnNames, 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, Throwables.BiPredicate<?, ?, E> filter) filter
(Tuple.Tuple2<String, String> columnNames, Throwables.BiPredicate<?, ?, 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, Throwables.Predicate<?, E> filter) filter
(String columnName, Throwables.Predicate<?, 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, String newColumnName, Collection<String> copyingColumnNames, Throwables.BiFunction<?, ?, ? extends Collection<?>, E> mapper) flatMap
(Tuple.Tuple3<String, String, String> fromColumnNames, String newColumnName, Collection<String> copyingColumnNames, Throwables.TriFunction<?, ?, ?, ? extends Collection<?>, E> mapper) flatMap
(String fromColumnName, String newColumnName, String copyingColumnName, Throwables.Function<?, ? extends Collection<?>, E> mapper) flatMap
(String fromColumnName, String newColumnName, Collection<String> copyingColumnNames, Throwables.Function<?, ? extends Collection<?>, E> mapper) flatMap
(Collection<String> fromColumnNames, String newColumnName, Collection<String> copyingColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends Collection<?>, E> mapper) <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
(int fromRowIndex, int toRowIndex, Tuple.Tuple2<String, String> columnNames, Throwables.BiConsumer<?, ?, E> action) <E extends Exception>
voidforEach
(int fromRowIndex, int toRowIndex, Tuple.Tuple3<String, String, String> columnNames, Throwables.TriConsumer<?, ?, ?, E> action) <E extends Exception>
voidforEach
(int fromRowIndex, int toRowIndex, 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.<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, Throwables.BiConsumer<?, ?, E> action) <E extends Exception>
voidforEach
(Tuple.Tuple3<String, String, String> columnNames, Throwables.TriConsumer<?, ?, ?, E> action) <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.Returns a newDataSet
that has all the rows from thisDataSet
and the specified rightDataSet
, regardless of whether there are any matches.Returns a newDataSet
that has all the rows from thisDataSet
and the specified rightDataSet
, 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 specified rightDataSet
, 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 specified rightDataSet
, 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
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.Object[]
getRow
(int rowIndex) Gets the row.<T> T
getRow
(int rowIndex, Collection<String> columnNames, IntFunction<? extends T> rowSupplier) Gets the row.<T> T
getRow
(int rowIndex, IntFunction<? extends T> rowSupplier) Gets the row.<T> T
Gets the row.<T> T
getRow
(Class<? extends T> rowClass, int rowIndex, Collection<String> columnNames) 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 keyColumnName, Throwables.Function<?, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) groupBy
(String keyColumnName, Throwables.Function<?, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, E2> rowMapper, Collector<? super T, ?, ?> collector) groupBy
(String keyColumnName, Throwables.Function<?, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) groupBy
(String keyColumnName, Throwables.Function<?, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) groupBy
(String keyColumnName, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) groupBy
(String keyColumnName, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, E> rowMapper, Collector<? super T, ?, ?> collector) groupBy
(String keyColumnName, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) groupBy
(String keyColumnName, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) groupBy
(Collection<String> columnNames) groupBy
(Collection<String> keyColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper) groupBy
(Collection<String> keyColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) groupBy
(Collection<String> keyColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, E2> rowMapper, Collector<? super T, ?, ?> collector) groupBy
(Collection<String> keyColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) groupBy
(Collection<String> keyColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) groupBy
(Collection<String> keyColumnNames, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) groupBy
(Collection<String> keyColumnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, E> rowMapper, Collector<? super T, ?, ?> collector) groupBy
(Collection<String> keyColumnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) groupBy
(Collection<String> keyColumnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) Returns a newDataSet
that is limited to the rows where there is a match in both thisDataSet
and rightDataSet
.Returns a newDataSet
that is limited to the rows where there is a match in both thisDataSet
and rightDataSet
.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 both thisDataSet
and rightDataSet
.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 both thisDataSet
and rightDataSet
.Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.intersect
(DataSet other, Collection<String> keyColumnNames) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.intersect
(DataSet other, Collection<String> keyColumnNames, boolean requiresSameColumns) 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..intersectAll
(DataSet other, boolean requiresSameColumns) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.intersectAll
(DataSet other, Collection<String> keyColumnNames) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns..intersectAll
(DataSet other, Collection<String> keyColumnNames, boolean requiresSameColumns) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.intersection
(DataSet other) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.intersection
(DataSet other, boolean requiresSameColumns) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.intersection
(DataSet other, Collection<String> keyColumnNames) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.intersection
(DataSet other, Collection<String> keyColumnNames, boolean requiresSameColumns) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.boolean
isEmpty()
Checks if is empty.boolean
isFrozen()
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, C> TriIterator<A, B, C> iterator
(int fromRowIndex, int toRowIndex, String columnNameA, String columnNameB, String columnNameC) <A,
B> BiIterator<A, B> <A,
B, C> TriIterator<A, B, C> 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 specified rightDataSet
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 specified rightDataSet
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 specified rightDataSet
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 specified rightDataSet
if they have a match with the rows from the thisDataSet
.map
(Tuple.Tuple2<String, String> fromColumnNames, String newColumnName, Collection<String> copyingColumnNames, Throwables.BiFunction<?, ?, ?, E> mapper) map
(Tuple.Tuple3<String, String, String> fromColumnNames, String newColumnName, Collection<String> copyingColumnNames, Throwables.TriFunction<?, ?, ?, ?, E> mapper) map
(String fromColumnName, String newColumnName, String copyingColumnName, Throwables.Function<?, ?, E> mapper) map
(String fromColumnName, String newColumnName, Collection<String> copyingColumnNames, Throwables.Function<?, ?, E> mapper) map
(Collection<String> fromColumnNames, String newColumnName, Collection<String> copyingColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, E> mapper) Returns a newDataSet
by appending the specifiedother
into thisDataSet
.Returns a newDataSet
by appending the specifiedother
into thisDataSet
.Returns a newDataSet
by appending the specifiedother
fromfromRowIndex
totoRowIndex
into thisDataSet
.merge
(DataSet other, int fromRowIndex, int toRowIndex, Collection<String> columnNames) Returns a newDataSet
by appending the specifiedcolumnNames
inother
fromfromRowIndex
totoRowIndex
into thisDataSet
.merge
(DataSet other, Collection<String> columnNames) Returns a newDataSet
by appending the specifiedother
into thisDataSet
.merge
(Collection<? extends DataSet> others) merge
(Collection<? extends DataSet> others, boolean requiresSameColumns) 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.pivot
(String groupByColumnName, String pivotColumnName, String aggColumnName, Collector<?, ?, ? extends T> collector) pivot
(String groupByColumnName, String pivotColumnName, Collection<String> aggColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends U, E> rowMapper, Collector<? super U, ?, ? extends T> collector) <R,
C, T> Sheet<R, C, T> pivot
(String groupByColumnName, String pivotColumnName, Collection<String> aggColumnNames, Collector<? super Object[], ?, ? extends T> collector) void
Prepend the specifiedother
into thisDataSet
.void
println()
void
println
(int fromRowIndex, int toRowIndex) void
println
(int fromRowIndex, int toRowIndex, Collection<String> columnNames) <W extends Writer>
Wprintln
(W outputWriter) <W extends Writer>
Wprintln
(W outputWriter, int fromRowIndex, int toRowIndex, Collection<String> columnNames) <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 from thisDataSet
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 from thisDataSet
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 from thisDataSet
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 from thisDataSet
if they have a match with the rows from the rightDataSet
.rollup
(Collection<String> columnNames) rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper) rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, ? extends Exception> rowMapper, Collector<? super T, ?, ?> collector) rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) rollup
(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) rollup
(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) rollup
(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, ? extends Exception> rowMapper, Collector<? super T, ?, ?> 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
Usingset(int, Object)
for better performance.int
size()
Returns the size of thisDataSet
.slice
(int fromRowIndex, int toRowIndex) Returns a frozen slice view on thisDataSet
.slice
(int fromRowIndex, int toRowIndex, Collection<String> columnNames) Returns a frozen slice view on thisDataSet
.slice
(Collection<String> columnNames) Returns a frozen slice view on thisDataSet
.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, IntObjFunction<? super NoCachingNoUpdating.DisposableObjArray, ? extends T> rowMapper) <T> Stream<T>
stream
(int fromRowIndex, int toRowIndex, Tuple.Tuple2<String, String> columnNames, BiFunction<?, ?, ? extends T> rowMapper) <T> Stream<T>
stream
(int fromRowIndex, int toRowIndex, Tuple.Tuple3<String, String, String> columnNames, TriFunction<?, ?, ?, ? extends T> rowMapper) <T> Stream<T>
<T> Stream<T>
stream
(int fromRowIndex, int toRowIndex, Collection<String> columnNames, IntObjFunction<? super NoCachingNoUpdating.DisposableObjArray, ? extends T> rowMapper) <T> Stream<T>
stream
(int fromRowIndex, int toRowIndex, Collection<String> columnNames, IntFunction<? extends T> rowSupplier) <T> Stream<T>
stream
(int fromRowIndex, int toRowIndex, IntFunction<? extends T> rowSupplier) <T> Stream<T>
stream
(IntObjFunction<? super NoCachingNoUpdating.DisposableObjArray, ? extends T> rowMapper) <T> Stream<T>
stream
(Tuple.Tuple2<String, String> columnNames, BiFunction<?, ?, ? extends T> rowMapper) <T> Stream<T>
stream
(Tuple.Tuple3<String, String, String> columnNames, TriFunction<?, ?, ?, ? extends T> rowMapper) <T> Stream<T>
<T> Stream<T>
<T> Stream<T>
stream
(Class<? extends T> rowClass, int fromRowIndex, int toRowIndex, Collection<String> columnNames) <T> Stream<T>
stream
(Class<? extends T> beanClass, int fromRowIndex, int toRowIndex, Collection<String> columnNames, Map<String, String> prefixAndFieldNameMap) <T> Stream<T>
stream
(Class<? extends T> beanClass, int fromRowIndex, int toRowIndex, Map<String, String> prefixAndFieldNameMap) <T> Stream<T>
stream
(Class<? extends T> rowClass, Collection<String> columnNames) <T> Stream<T>
stream
(Class<? extends T> beanClass, Collection<String> columnNames, Map<String, String> prefixAndFieldNameMap) <T> Stream<T>
<T> Stream<T>
<T> Stream<T>
stream
(Collection<String> columnNames, IntObjFunction<? super NoCachingNoUpdating.DisposableObjArray, ? extends T> rowMapper) <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 other) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns or vice versa.symmetricDifference
(DataSet other, boolean requiresSameColumns) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns or vice versa.symmetricDifference
(DataSet other, Collection<String> keyColumnNames) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns or vice versa.symmetricDifference
(DataSet other, Collection<String> keyColumnNames, boolean requiresSameColumns) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns or vice versa.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.toCSV
(int fromRowIndex, int toRowIndex, Collection<String> columnNames) Each line in the output file/Writer is an array of JSON String without root bracket.toCSV
(int fromRowIndex, int toRowIndex, Collection<String> columnNames, 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, int fromRowIndex, int toRowIndex, Collection<String> columnNames) Each line in the output file/Writer is an array of JSON String without root bracket.void
toCSV
(File output, int fromRowIndex, int toRowIndex, Collection<String> columnNames, 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, int fromRowIndex, int toRowIndex, Collection<String> columnNames) Each line in the output file/Writer is an array of JSON String without root bracket.void
toCSV
(OutputStream output, int fromRowIndex, int toRowIndex, Collection<String> columnNames, 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, int fromRowIndex, int toRowIndex, Collection<String> columnNames) Each line in the output file/Writer is an array of JSON String without root bracket.void
toCSV
(Writer output, int fromRowIndex, int toRowIndex, Collection<String> columnNames, boolean writeTitle, boolean quoteValue) Each line in the output file/Writer is an array of JSON String without root bracket.<T> List<T>
toEntities
(Class<? extends T> beanClass, int fromRowIndex, int toRowIndex, Collection<String> columnNames, Map<String, String> prefixAndFieldNameMap) <T> List<T>
toEntities
(Class<? extends T> beanClass, int fromRowIndex, int toRowIndex, Map<String, String> prefixAndFieldNameMap) <T> List<T>
toEntities
(Class<? extends T> beanClass, Collection<String> columnNames, Map<String, String> prefixAndFieldNameMap) <T> List<T>
toEntities
(Class<? extends T> beanClass, Map<String, String> prefixAndFieldNameMap) toJSON()
toJSON
(int fromRowIndex, int toRowIndex) toJSON
(int fromRowIndex, int toRowIndex, Collection<String> columnNames) void
void
void
toJSON
(File output, int fromRowIndex, int toRowIndex, Collection<String> columnNames) void
toJSON
(OutputStream output) void
toJSON
(OutputStream output, int fromRowIndex, int toRowIndex) void
toJSON
(OutputStream output, int fromRowIndex, int toRowIndex, Collection<String> columnNames) void
void
void
toJSON
(Writer output, int fromRowIndex, int toRowIndex, Collection<String> columnNames) toList()
toList
(int fromRowIndex, int toRowIndex) toList
(int fromRowIndex, int toRowIndex, Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, String, E2> columnNameConverter, IntFunction<? extends T> rowSupplier) <T> List<T>
toList
(int fromRowIndex, int toRowIndex, Collection<String> columnNames, IntFunction<? extends T> rowSupplier) <T> List<T>
toList
(int fromRowIndex, int toRowIndex, IntFunction<? extends T> rowSupplier) toList
(Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, String, E2> columnNameConverter, IntFunction<? extends T> rowSupplier) <T> List<T>
<T> List<T>
toList
(Class<? extends T> rowClass, int fromRowIndex, int toRowIndex, Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, String, E2> columnNameConverter) <T> List<T>
toList
(Class<? extends T> rowClass, int fromRowIndex, int toRowIndex, Collection<String> columnNames) toList
(Class<? extends T> rowClass, Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, String, E2> columnNameConverter) <T> List<T>
toList
(Class<? extends T> rowClass, Collection<String> columnNames) <T> List<T>
toList
(Collection<String> columnNames, IntFunction<? extends T> rowSupplier) <T> List<T>
toList
(IntFunction<? extends T> rowSupplier) <K,
V> Map<K, V> <K,
V, M extends Map<K, V>>
MtoMap
(int fromRowIndex, int toRowIndex, String keyColumnName, String valueColumnName, IntFunction<? extends M> supplier) <K,
V> Map<K, V> toMap
(int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends V> rowSupplier) <K,
V, M extends Map<K, V>>
MtoMap
(int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends V> rowSupplier, IntFunction<? extends M> supplier) <K,
V> Map<K, V> toMap
(Class<? extends V> rowClass, int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames) <K,
V, M extends Map<K, V>>
MtoMap
(Class<? extends V> rowClass, int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends M> supplier) <K,
V> Map<K, V> toMap
(Class<? extends V> rowClass, String keyColumnName, Collection<String> valueColumnNames) <K,
V, M extends Map<K, V>>
MtoMap
(Class<? extends V> rowClass, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends M> supplier) <K,
V> Map<K, V> <K,
V, M extends Map<K, V>>
MtoMap
(String keyColumnName, String valueColumnName, IntFunction<? extends M> supplier) <K,
V> Map<K, V> toMap
(String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends V> rowSupplier) <K,
V, M extends Map<K, V>>
MtoMap
(String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends V> rowSupplier, IntFunction<? extends M> supplier) <T> List<T>
toMergedEntities
(Class<? extends T> beanClass) <T> List<T>
toMergedEntities
(Class<? extends T> beanClass, String idPropName) <T> List<T>
toMergedEntities
(Class<? extends T> beanClass, String idPropName, Collection<String> selectPropNames) <T> List<T>
toMergedEntities
(Class<? extends T> beanClass, Collection<String> selectPropNames) <T> List<T>
toMergedEntities
(Class<? extends T> beanClass, Collection<String> idPropNames, Collection<String> selectPropNames) <T> List<T>
toMergedEntities
(Class<? extends T> beanClass, Collection<String> idPropNames, Collection<String> selectPropNames, Map<String, String> prefixAndFieldNameMap) <K,
E> ListMultimap<K, E> toMultimap
(int fromRowIndex, int toRowIndex, String keyColumnName, String valueColumnName) <K,
E, V extends Collection<E>, M extends Multimap<K, E, V>>
MtoMultimap
(int fromRowIndex, int toRowIndex, String keyColumnName, String valueColumnName, IntFunction<? extends M> supplier) <K,
E> ListMultimap<K, E> toMultimap
(int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends E> rowSupplier) <K,
E, V extends Collection<E>, M extends Multimap<K, E, V>>
MtoMultimap
(int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends E> rowSupplier, IntFunction<? extends M> supplier) <K,
E> ListMultimap<K, E> toMultimap
(Class<? extends E> rowClass, int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames) <K,
E, V extends Collection<E>, M extends Multimap<K, E, V>>
MtoMultimap
(Class<? extends E> rowClass, int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends M> supplier) <K,
E> ListMultimap<K, E> toMultimap
(Class<? extends E> rowClass, String keyColumnName, Collection<String> valueColumnNames) <K,
E, V extends Collection<E>, M extends Multimap<K, E, V>>
MtoMultimap
(Class<? extends E> rowClass, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends M> supplier) <K,
E> ListMultimap<K, E> toMultimap
(String keyColumnName, String valueColumnName) <K,
E, V extends Collection<E>, M extends Multimap<K, E, V>>
MtoMultimap
(String keyColumnName, String valueColumnName, IntFunction<? extends M> supplier) <K,
E> ListMultimap<K, E> toMultimap
(String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends E> rowSupplier) <K,
E, V extends Collection<E>, M extends Multimap<K, E, V>>
MtoMultimap
(String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends E> rowSupplier, IntFunction<? extends M> supplier) <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) toXML
(int fromRowIndex, int toRowIndex, Collection<String> columnNames) toXML
(int fromRowIndex, int toRowIndex, Collection<String> columnNames, String rowElementName) void
void
void
void
toXML
(File output, int fromRowIndex, int toRowIndex, Collection<String> columnNames) void
toXML
(File output, int fromRowIndex, int toRowIndex, Collection<String> columnNames, String rowElementName) void
void
toXML
(OutputStream output) void
toXML
(OutputStream output, int fromRowIndex, int toRowIndex) void
toXML
(OutputStream output, int fromRowIndex, int toRowIndex, String rowElementName) void
toXML
(OutputStream output, int fromRowIndex, int toRowIndex, Collection<String> columnNames) void
toXML
(OutputStream output, int fromRowIndex, int toRowIndex, Collection<String> columnNames, String rowElementName) void
toXML
(OutputStream output, String rowElementName) void
void
void
void
toXML
(Writer output, int fromRowIndex, int toRowIndex, Collection<String> columnNames) void
toXML
(Writer output, int fromRowIndex, int toRowIndex, Collection<String> columnNames, String rowElementName) void
void
Trim to size.Returns a newDataSet
.Returns a newDataSet
.union
(DataSet other, Collection<String> keyColumnNames) Returns a newDataSet
.union
(DataSet other, Collection<String> keyColumnNames, boolean requiresSameColumns) Returns a newDataSet
.Returns a newDataSet
.Returns a newDataSet
.unionAll
(DataSet other, Collection<String> keyColumnNames) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.unionAll
(DataSet other, Collection<String> keyColumnNames, boolean requiresSameColumns) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.<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
-
empty
Returns an empty immutableDataSet
.- Returns:
-
columnNameList
ImmutableList<String> columnNameList()Return the column name list in this DataSet.- Returns:
-
columnCount
int columnCount()Return the count of columns 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:
-
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.
Usingget(int)
for better performance.- Type Parameters:
T
-- Parameters:
columnName
-- Returns:
- See Also:
-
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.
UsinggetBoolean(int)
for better performance.- 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.
UsinggetChar(int)
for better performance.- 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
.
UsinggetByte(int)
for better performance.- 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
.
UsinggetShort(int)
for better performance.- 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
.
UsinggetInt(int)
for better performance.- 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
.
UsinggetLong(int)
for better performance.- 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
.
UsinggetFloat(int)
for better performance.- 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
.
UsinggetDouble(int)
for better performance.- Parameters:
columnName
-- Returns:
-
isNull
boolean isNull(int columnIndex) Checks if is null.- Parameters:
columnIndex
-- Returns:
- true, if is null
-
isNull
Checks if is null.
UsingisNull(int)
for better performance.- Parameters:
columnName
-- Returns:
- true, if is null
-
set
- Parameters:
columnIndex
-value
-
-
set
Usingset(int, Object)
for better performance.- 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:
newColumnName
-column
-
-
addColumn
- Parameters:
newColumnPosition
- position to add.newColumnName
-column
-
-
addColumn
<E extends Exception> void addColumn(String newColumnName, String fromColumnName, Throwables.Function<?, ?, throws EE> func) Generate the new column values from the specified column by the specifiedFunction
.- Type Parameters:
E
-- Parameters:
newColumnName
-fromColumnName
-func
-- Throws:
E
- the e
-
addColumn
<E extends Exception> void addColumn(int newColumnPosition, String newColumnName, String fromColumnName, Throwables.Function<?, ?, throws EE> func) Generate the new column values from the specified column by the specifiedFunction
.- Type Parameters:
E
-- Parameters:
newColumnPosition
-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 newColumnPosition, 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:
newColumnPosition
-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 newColumnPosition, 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:
newColumnPosition
-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 newColumnPosition, 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:
newColumnPosition
-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:
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:
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/Bean
-
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/Bean- 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
<E extends Exception> void divideColumn(String columnName, Collection<String> newColumnNames, Throwables.Function<?, ? extends List<?>, throws EE> divideFunc) - Type Parameters:
E
-- Parameters:
columnName
-newColumnNames
-divideFunc
-- Throws:
E
- the e
-
divideColumn
<E extends Exception> void divideColumn(String columnName, Collection<String> newColumnNames, Throwables.BiConsumer<?, Object[], throws EE> output) - Type Parameters:
E
-- Parameters:
columnName
-newColumnNames
-output
-- Throws:
E
- the e
-
divideColumn
<E extends Exception> void divideColumn(String columnName, Tuple.Tuple2<String, String> newColumnNames, Throwables.BiConsumer<?, throws EPair<Object, Object>, E> output) - Type Parameters:
E
-- Parameters:
columnName
-newColumnNames
-output
-- Throws:
E
- the e
-
divideColumn
<E extends Exception> void divideColumn(String columnName, Tuple.Tuple3<String, String, throws EString> newColumnNames, Throwables.BiConsumer<?, Triple<Object, Object, Object>, E> output) - Type Parameters:
E
-- Parameters:
columnName
-newColumnNames
-output
-- Throws:
E
- the e
-
addRow
Adds the row.- Parameters:
row
- can be Object[]/List/Map/Bean with getter/setter methods
-
addRow
Adds the row.- Parameters:
newRowPosition
-row
- can be Object[]/List/Map/Bean 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
-
prepend
Prepend the specifiedother
into thisDataSet
.
The columns of twoDataSet
must be same.- Parameters:
other
-- See Also:
-
append
Append the specifiedother
into thisDataSet
.
The columns of twoDataSet
must be same.- Parameters:
other
-- See Also:
-
currentRowNum
int currentRowNum()Returns the current row number.- Returns:
-
absolute
Move the cursor to the specified row.- Parameters:
rowIndex
-- Returns:
- this object itself.
-
getRow
Gets the row.- Parameters:
rowIndex
-- Returns:
-
getRow
Gets the row.- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeanrowIndex
-- Returns:
-
getRow
Gets the row.- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeanrowIndex
-columnNames
-- Returns:
-
getRow
Gets the row.- Type Parameters:
T
-- Parameters:
rowIndex
-rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
-
getRow
Gets the row.- Type Parameters:
T
-- Parameters:
rowIndex
-columnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
-
firstRow
u.Optional<Object[]> firstRow()- Returns:
Optional<Object[]>
-
firstRow
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/Bean- Returns:
Optional<E>
-
firstRow
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeancolumnNames
-- Returns:
Optional<E>
-
firstRow
- Type Parameters:
T
-- Parameters:
rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
Optional<T>
-
firstRow
- Type Parameters:
T
-- Parameters:
columnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
Optional<T>
-
lastRow
u.Optional<Object[]> lastRow()- Returns:
Optional<Object[]>
-
lastRow
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/Bean- Returns:
Optional<E>
-
lastRow
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/Bean which can be object array/list/set/map/bean.columnNames
-- Returns:
Optional<E>
-
lastRow
- Type Parameters:
T
-- Parameters:
rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
Optional<T>
-
lastRow
- Type Parameters:
T
-- Parameters:
columnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Bean- 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(int fromRowIndex, int toRowIndex, 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:
fromRowIndex
-toRowIndex
-columnNames
-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(int fromRowIndex, int toRowIndex, Tuple.Tuple2<String, String> columnNames, Throwables.BiConsumer<?, throws E?, E> action) - Type Parameters:
E
-- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-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(int fromRowIndex, int toRowIndex, Tuple.Tuple3<String, String, throws EString> columnNames, Throwables.TriConsumer<?, ?, ?, E> action) - Type Parameters:
E
-- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-action
-- Throws:
E
- the e
-
toList
- Returns:
-
toList
- Parameters:
fromRowIndex
-toRowIndex
-- Returns:
-
toList
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/Bean- Returns:
-
toList
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeanfromRowIndex
-toRowIndex
-- Returns:
-
toList
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeancolumnNames
-- Returns:
-
toList
<T> List<T> toList(Class<? extends T> rowClass, int fromRowIndex, int toRowIndex, Collection<String> columnNames) - Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeanfromRowIndex
-toRowIndex
-columnNames
-- Returns:
-
toList
- Type Parameters:
T
-- Parameters:
rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
-
toList
- Type Parameters:
T
-- Parameters:
fromRowIndex
-toRowIndex
-rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
-
toList
- Type Parameters:
T
-- Parameters:
columnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
-
toList
<T> List<T> toList(int fromRowIndex, int toRowIndex, Collection<String> columnNames, IntFunction<? extends T> rowSupplier) - Type Parameters:
T
-- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
-
toList
<T,E extends Exception, List<T> toListE2 extends Exception> (Class<? extends T> rowClass, Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, throws E, E2String, E2> columnNameConverter) - Type Parameters:
T
-E
-E2
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeancolumnNameFilter
-columnNameConverter
-- Returns:
- Throws:
E
E2
-
toList
<T,E extends Exception, List<T> toListE2 extends Exception> (Class<? extends T> rowClass, int fromRowIndex, int toRowIndex, Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, throws E, E2String, E2> columnNameConverter) - Type Parameters:
T
-E
-E2
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeanfromRowIndex
-toRowIndex
-columnNameFilter
-columnNameConverter
-- Returns:
- Throws:
E
E2
-
toList
<T,E extends Exception, List<T> toListE2 extends Exception> (Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, throws E, E2String, E2> columnNameConverter, IntFunction<? extends T> rowSupplier) - Type Parameters:
T
-E
-E2
-- Parameters:
columnNameFilter
-columnNameConverter
-rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
- Throws:
E
E2
-
toList
<T,E extends Exception, List<T> toListE2 extends Exception> (int fromRowIndex, int toRowIndex, Throwables.Predicate<? super String, E> columnNameFilter, Throwables.Function<? super String, throws E, E2String, E2> columnNameConverter, IntFunction<? extends T> rowSupplier) - Type Parameters:
T
-E
-E2
-- Parameters:
fromRowIndex
-toRowIndex
-columnNameFilter
-columnNameConverter
-rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
- Throws:
E
E2
-
toEntities
- Type Parameters:
T
-- Parameters:
beanClass
-prefixAndFieldNameMap
-- Returns:
-
toEntities
<T> List<T> toEntities(Class<? extends T> beanClass, int fromRowIndex, int toRowIndex, Map<String, String> prefixAndFieldNameMap) - Type Parameters:
T
-- Parameters:
beanClass
-fromRowIndex
-toRowIndex
-prefixAndFieldNameMap
-- Returns:
-
toEntities
<T> List<T> toEntities(Class<? extends T> beanClass, Collection<String> columnNames, Map<String, String> prefixAndFieldNameMap) - Type Parameters:
T
-- Parameters:
beanClass
-columnNames
-prefixAndFieldNameMap
-- Returns:
-
toEntities
<T> List<T> toEntities(Class<? extends T> beanClass, int fromRowIndex, int toRowIndex, Collection<String> columnNames, Map<String, String> prefixAndFieldNameMap) - Type Parameters:
T
-- Parameters:
beanClass
-fromRowIndex
-toRowIndex
-columnNames
-prefixAndFieldNameMap
-- Returns:
-
toMergedEntities
- Type Parameters:
T
-- Parameters:
beanClass
-- Returns:
-
toMergedEntities
- Type Parameters:
T
-- Parameters:
beanClass
-selectPropNames
-- Returns:
-
toMergedEntities
- Type Parameters:
T
-- Parameters:
beanClass
-idPropName
-- Returns:
-
toMergedEntities
<T> List<T> toMergedEntities(Class<? extends T> beanClass, String idPropName, Collection<String> selectPropNames) - Type Parameters:
T
-- Parameters:
beanClass
-idPropName
-selectPropNames
-- Returns:
-
toMergedEntities
<T> List<T> toMergedEntities(Class<? extends T> beanClass, Collection<String> idPropNames, Collection<String> selectPropNames) - Type Parameters:
T
-- Parameters:
beanClass
-idPropNames
-selectPropNames
-- Returns:
-
toMergedEntities
<T> List<T> toMergedEntities(Class<? extends T> beanClass, Collection<String> idPropNames, Collection<String> selectPropNames, Map<String, String> prefixAndFieldNameMap) - Type Parameters:
T
-- Parameters:
beanClass
-idPropNames
-selectPropNames
-prefixAndFieldNameMap
-- Returns:
-
toMap
- Type Parameters:
K
- the key typeV
- the value type- Parameters:
keyColumnName
-valueColumnName
-- Returns:
-
toMap
<K,V, M toMapM extends Map<K, V>> (String keyColumnName, String valueColumnName, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeV
- the value typeM
-- Parameters:
keyColumnName
-valueColumnName
-supplier
-- Returns:
-
toMap
<K,V> Map<K,V> toMap(int fromRowIndex, int toRowIndex, String keyColumnName, String valueColumnName) - Type Parameters:
K
- the key typeV
- the value type- Parameters:
fromRowIndex
-toRowIndex
-keyColumnName
-valueColumnName
-- Returns:
-
toMap
<K,V, M toMapM extends Map<K, V>> (int fromRowIndex, int toRowIndex, String keyColumnName, String valueColumnName, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeV
- the value typeM
-- Parameters:
fromRowIndex
-toRowIndex
-keyColumnName
-valueColumnName
-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/BeankeyColumnName
-valueColumnNames
-- Returns:
-
toMap
<K,V, M toMapM extends Map<K, V>> (Class<? extends V> rowClass, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeV
- the value typeM
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeankeyColumnName
-valueColumnNames
-supplier
-- Returns:
-
toMap
<K,V> Map<K,V> toMap(Class<? extends V> rowClass, int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames) - Type Parameters:
K
- the key typeV
- the value type- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeanfromRowIndex
-toRowIndex
-keyColumnName
-valueColumnNames
-- Returns:
-
toMap
<K,V, M toMapM extends Map<K, V>> (Class<? extends V> rowClass, int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeV
- the value typeM
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeanfromRowIndex
-toRowIndex
-keyColumnName
-valueColumnNames
-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/Bean- Returns:
-
toMap
<K,V, M toMapM extends Map<K, V>> (String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends V> rowSupplier, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeV
- the value typeM
-- Parameters:
keyColumnName
-valueColumnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Beansupplier
-- Returns:
-
toMap
<K,V> Map<K,V> toMap(int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends V> rowSupplier) - Type Parameters:
K
- the key typeV
- the value type- Parameters:
fromRowIndex
-toRowIndex
-keyColumnName
-valueColumnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
-
toMap
<K,V, M toMapM extends Map<K, V>> (int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends V> rowSupplier, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeV
- the value typeM
-- Parameters:
fromRowIndex
-toRowIndex
-keyColumnName
-valueColumnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Beansupplier
-- Returns:
-
toMultimap
- Type Parameters:
K
- the key typeE
-- Parameters:
keyColumnName
-valueColumnName
-- Returns:
-
toMultimap
<K,E, M toMultimapV extends Collection<E>, M extends Multimap<K, E, V>> (String keyColumnName, String valueColumnName, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeE
-V
- the value typeM
-- Parameters:
keyColumnName
-valueColumnName
-supplier
-- Returns:
-
toMultimap
<K,E> ListMultimap<K,E> toMultimap(int fromRowIndex, int toRowIndex, String keyColumnName, String valueColumnName) - Type Parameters:
K
- the key typeE
-- Parameters:
fromRowIndex
-toRowIndex
-keyColumnName
-valueColumnName
-- Returns:
-
toMultimap
<K,E, M toMultimapV extends Collection<E>, M extends Multimap<K, E, V>> (int fromRowIndex, int toRowIndex, String keyColumnName, String valueColumnName, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeE
-V
- the value typeM
-- Parameters:
fromRowIndex
-toRowIndex
-keyColumnName
-valueColumnName
-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/BeankeyColumnName
-valueColumnNames
-- Returns:
-
toMultimap
<K,E, M toMultimapV extends Collection<E>, M extends Multimap<K, E, V>> (Class<? extends E> rowClass, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeE
-V
- the value typeM
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeankeyColumnName
-valueColumnNames
-supplier
-- Returns:
-
toMultimap
<K,E> ListMultimap<K,E> toMultimap(Class<? extends E> rowClass, int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames) - Type Parameters:
K
- the key typeE
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeanfromRowIndex
-toRowIndex
-keyColumnName
-valueColumnNames
-- Returns:
-
toMultimap
<K,E, M toMultimapV extends Collection<E>, M extends Multimap<K, E, V>> (Class<? extends E> rowClass, int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeE
-V
- the value typeM
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeanfromRowIndex
-toRowIndex
-keyColumnName
-valueColumnNames
-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/Bean- Returns:
-
toMultimap
<K,E, M toMultimapV extends Collection<E>, M extends Multimap<K, E, V>> (String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends E> rowSupplier, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeE
-V
- the value typeM
-- Parameters:
keyColumnName
-valueColumnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Beansupplier
-- Returns:
-
toMultimap
<K,E> ListMultimap<K,E> toMultimap(int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends E> rowSupplier) - Type Parameters:
K
- the key typeE
-- Parameters:
fromRowIndex
-toRowIndex
-keyColumnName
-valueColumnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
-
toMultimap
<K,E, M toMultimapV extends Collection<E>, M extends Multimap<K, E, V>> (int fromRowIndex, int toRowIndex, String keyColumnName, Collection<String> valueColumnNames, IntFunction<? extends E> rowSupplier, IntFunction<? extends M> supplier) - Type Parameters:
K
- the key typeE
-V
- the value typeM
-- Parameters:
fromRowIndex
-toRowIndex
-keyColumnName
-valueColumnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Beansupplier
-- Returns:
-
toJSON
String toJSON()- Returns:
-
toJSON
- Parameters:
fromRowIndex
-toRowIndex
-- Returns:
-
toJSON
- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-- 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, int fromRowIndex, int toRowIndex, Collection<String> columnNames) throws UncheckedIOException - Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-- 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, int fromRowIndex, int toRowIndex, Collection<String> columnNames) throws UncheckedIOException - Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-- 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, int fromRowIndex, int toRowIndex, Collection<String> columnNames) throws UncheckedIOException - Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
String toXML()- Returns:
-
toXML
- Parameters:
rowElementName
-- Returns:
-
toXML
- Parameters:
fromRowIndex
-toRowIndex
-- Returns:
-
toXML
- Parameters:
fromRowIndex
-toRowIndex
-rowElementName
-- Returns:
-
toXML
- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-- Returns:
-
toXML
String toXML(int fromRowIndex, int toRowIndex, Collection<String> columnNames, String rowElementName) - Parameters:
fromRowIndex
-toRowIndex
-columnNames
-rowElementName
-- 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, int fromRowIndex, int toRowIndex, String rowElementName) throws UncheckedIOException - Parameters:
output
-fromRowIndex
-toRowIndex
-rowElementName
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(File output, int fromRowIndex, int toRowIndex, Collection<String> columnNames) throws UncheckedIOException - Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(File output, int fromRowIndex, int toRowIndex, Collection<String> columnNames, String rowElementName) throws UncheckedIOException - Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-rowElementName
-- 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, int fromRowIndex, int toRowIndex, String rowElementName) throws UncheckedIOException - Parameters:
output
-fromRowIndex
-toRowIndex
-rowElementName
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(OutputStream output, int fromRowIndex, int toRowIndex, Collection<String> columnNames) throws UncheckedIOException - Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(OutputStream output, int fromRowIndex, int toRowIndex, Collection<String> columnNames, String rowElementName) throws UncheckedIOException - Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-rowElementName
-- 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, int fromRowIndex, int toRowIndex, String rowElementName) throws UncheckedIOException - Parameters:
output
-fromRowIndex
-toRowIndex
-rowElementName
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(Writer output, int fromRowIndex, int toRowIndex, Collection<String> columnNames) throws UncheckedIOException - Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
toXML
void toXML(Writer output, int fromRowIndex, int toRowIndex, Collection<String> columnNames, String rowElementName) throws UncheckedIOException - Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-rowElementName
-- 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:
fromRowIndex
-toRowIndex
-columnNames
-- 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(int fromRowIndex, int toRowIndex, Collection<String> columnNames, boolean writeTitle, boolean quoteValue) Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-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, int fromRowIndex, int toRowIndex, Collection<String> columnNames) throws UncheckedIOException Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-- 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, int fromRowIndex, int toRowIndex, Collection<String> columnNames, boolean writeTitle, boolean quoteValue) throws UncheckedIOException Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-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, int fromRowIndex, int toRowIndex, Collection<String> columnNames) throws UncheckedIOException Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-- 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, int fromRowIndex, int toRowIndex, Collection<String> columnNames, boolean writeTitle, boolean quoteValue) throws UncheckedIOException Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-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, int fromRowIndex, int toRowIndex, Collection<String> columnNames) throws UncheckedIOException Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-- 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, int fromRowIndex, int toRowIndex, Collection<String> columnNames, boolean writeTitle, boolean quoteValue) throws UncheckedIOException Each line in the output file/Writer is an array of JSON String without root bracket.- Parameters:
output
-fromRowIndex
-toRowIndex
-columnNames
-writeTitle
-quoteValue
-- Throws:
UncheckedIOException
- the unchecked IO exception
-
groupBy
DataSet groupBy(String keyColumnName, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) - Parameters:
keyColumnName
-aggregateResultColumnName
-aggregateOnColumnName
-collector
-- Returns:
-
groupBy
DataSet groupBy(String keyColumnName, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) - Parameters:
keyColumnName
-aggregateResultColumnName
-aggregateOnColumnNames
-rowClass
-- Returns:
-
groupBy
DataSet groupBy(String keyColumnName, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) - Parameters:
keyColumnName
-aggregateResultColumnName
-aggregateOnColumnNames
-collector
-- Returns:
-
groupBy
<T,E extends Exception> DataSet groupBy(String keyColumnName, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, throws EE> rowMapper, Collector<? super T, ?, ?> collector) - Type Parameters:
T
-E
-- Parameters:
keyColumnName
-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(String keyColumnName, Throwables.Function<?, ?, throws EE> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) - Type Parameters:
E
-- Parameters:
keyColumnName
-keyMapper
-aggregateResultColumnName
-aggregateOnColumnName
-collector
-- Returns:
- Throws:
E
- the e
-
groupBy
<E extends Exception> DataSet groupBy(String keyColumnName, Throwables.Function<?, ?, throws EE> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) - Type Parameters:
E
-- Parameters:
keyColumnName
-keyMapper
-aggregateResultColumnName
-aggregateOnColumnNames
-rowClass
-- Returns:
- Throws:
E
- the e
-
groupBy
<E extends Exception> DataSet groupBy(String keyColumnName, Throwables.Function<?, ?, throws EE> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) - Type Parameters:
E
-- Parameters:
keyColumnName
-keyMapper
-aggregateResultColumnName
-aggregateOnColumnNames
-collector
-- Returns:
- Throws:
E
- the e
-
groupBy
<T,E extends Exception, DataSet groupByE2 extends Exception> (String keyColumnName, Throwables.Function<?, ?, throws E, E2E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, E2> rowMapper, Collector<? super T, ?, ?> collector) - Type Parameters:
T
-E
-E2
-- Parameters:
keyColumnName
-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
DataSet groupBy(Collection<String> keyColumnNames, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) - Parameters:
keyColumnNames
-aggregateResultColumnName
-aggregateOnColumnName
-collector
-- Returns:
-
groupBy
DataSet groupBy(Collection<String> keyColumnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) - Parameters:
keyColumnNames
-aggregateResultColumnName
-aggregateOnColumnNames
-rowClass
-- Returns:
-
groupBy
DataSet groupBy(Collection<String> keyColumnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) - Parameters:
keyColumnNames
-aggregateResultColumnName
-aggregateOnColumnNames
-collector
-- Returns:
-
groupBy
<T,E extends Exception> DataSet groupBy(Collection<String> keyColumnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, throws EE> rowMapper, Collector<? super T, ?, ?> collector) - Type Parameters:
T
-E
-- Parameters:
keyColumnNames
-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> keyColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws EE> keyMapper) - Type Parameters:
E
-- Parameters:
keyColumnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Returns:
- Throws:
E
- the e
-
groupBy
<E extends Exception> DataSet groupBy(Collection<String> keyColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws EE> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) - Type Parameters:
E
-- Parameters:
keyColumnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnName
-collector
-- Returns:
- Throws:
E
- the e
-
groupBy
<E extends Exception> DataSet groupBy(Collection<String> keyColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws EE> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) - Type Parameters:
E
-- Parameters:
keyColumnNames
-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> keyColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws EE> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) - Type Parameters:
E
-- Parameters:
keyColumnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-collector
-- Returns:
- Throws:
E
- the e
-
groupBy
<T,E extends Exception, DataSet groupByE2 extends Exception> (Collection<String> keyColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws E, E2E> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, E2> rowMapper, Collector<? super T, ?, ?> collector) - Type Parameters:
T
-E
-E2
-- Parameters:
keyColumnNames
-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 Stream<DataSet> rollup(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) - Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnName
-collector
-- 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 <T> Stream<DataSet> rollup(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, ? extends Exception> rowMapper, Collector<? super T, ?, ?> collector) - Type Parameters:
T
-- Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnNames
-rowMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)collector
-- Returns:
- See Also:
-
rollup
@Beta Stream<DataSet> rollup(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper) - Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Returns:
- See Also:
-
rollup
@Beta Stream<DataSet> rollup(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) - Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnName
-collector
-- Returns:
- See Also:
-
rollup
@Beta Stream<DataSet> rollup(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) - Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-rowClass
-- Returns:
- See Also:
-
rollup
@Beta Stream<DataSet> rollup(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) - Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-collector
-- Returns:
- See Also:
-
rollup
@Beta <T> Stream<DataSet> rollup(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, ? extends Exception> rowMapper, Collector<? super T, ?, ?> collector) - Type Parameters:
T
-- 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 Stream<DataSet> cube(Collection<String> columnNames, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) - Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnName
-collector
-- 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 <T> Stream<DataSet> cube(Collection<String> columnNames, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, ? extends Exception> rowMapper, Collector<? super T, ?, ?> collector) - Type Parameters:
T
-- Parameters:
columnNames
-aggregateResultColumnName
-aggregateOnColumnNames
-rowMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)collector
-- Returns:
- See Also:
-
cube
@Beta Stream<DataSet> cube(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper) - Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Returns:
- See Also:
-
cube
@Beta Stream<DataSet> cube(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, String aggregateOnColumnName, Collector<?, ?, ?> collector) - Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnName
-collector
-- Returns:
- See Also:
-
cube
@Beta Stream<DataSet> cube(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Class<?> rowClass) - Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-rowClass
-- Returns:
- See Also:
-
cube
@Beta Stream<DataSet> cube(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Collector<? super Object[], ?, ?> collector) - Parameters:
columnNames
-keyMapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)aggregateResultColumnName
-aggregateOnColumnNames
-collector
-- Returns:
- See Also:
-
cube
@Beta <T> Stream<DataSet> cube(Collection<String> columnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, ? extends Exception> keyMapper, String aggregateResultColumnName, Collection<String> aggregateOnColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends T, ? extends Exception> rowMapper, Collector<? super T, ?, ?> collector) - Type Parameters:
T
-- 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:
-
pivot
@Beta <R,C, Sheet<R,T, E extends Exception> C, pivotT> (String groupByColumnName, String pivotColumnName, String aggColumnName, Collector<?, ?, throws E? extends T> collector) - Type Parameters:
R
-C
-T
-E
-- Parameters:
groupByColumnName
-pivotColumnName
-aggColumnName
-collector
-- Returns:
- Throws:
E
- the e
-
pivot
@Beta <R,C, Sheet<R,T> C, pivotT> (String groupByColumnName, String pivotColumnName, Collection<String> aggColumnNames, Collector<? super Object[], ?, ? extends T> collector) - Type Parameters:
R
-C
-T
-- Parameters:
groupByColumnName
-pivotColumnName
-aggColumnNames
-collector
-- Returns:
-
pivot
@Beta <R,C, Sheet<R,U, T, E extends Exception> C, pivotT> (String groupByColumnName, String pivotColumnName, Collection<String> aggColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends U, throws EE> rowMapper, Collector<? super U, ?, ? extends T> collector) - Type Parameters:
R
-C
-U
-T
-E
-- Parameters:
groupByColumnName
-pivotColumnName
-aggColumnNames
-rowMapper
-collector
-- Returns:
- Throws:
E
- the e
-
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
<E extends Exception> DataSet distinctBy(String columnName, Throwables.Function<?, ?, throws EE> keyMapper) Returns a newDataSet
with the rows de-duplicated by the value in the specified column from the specifiedfromRowIndex
totoRowIndex
.- Type Parameters:
E
-- 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(int fromRowIndex, int toRowIndex, Tuple.Tuple2<String, String> columnNames, Throwables.BiPredicate<?, throws E?, E> filter) - Type Parameters:
E
-- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-filter
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(int fromRowIndex, int toRowIndex, Tuple.Tuple2<String, String> columnNames, Throwables.BiPredicate<?, throws E?, E> filter, int max) - Type Parameters:
E
-- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-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(int fromRowIndex, int toRowIndex, Tuple.Tuple3<String, String, throws EString> columnNames, Throwables.TriPredicate<?, ?, ?, E> filter) - Type Parameters:
E
-- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-filter
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(int fromRowIndex, int toRowIndex, Tuple.Tuple3<String, String, throws EString> columnNames, Throwables.TriPredicate<?, ?, ?, E> filter, int max) - Type Parameters:
E
-- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-filter
-max
-- Returns:
- Throws:
E
- the e
-
filter
- Type Parameters:
E
-- Parameters:
columnName
-filter
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(String columnName, Throwables.Predicate<?, E> filter, int max) throws E- Type Parameters:
E
-- Parameters:
columnName
-filter
-max
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(int fromRowIndex, int toRowIndex, String columnName, Throwables.Predicate<?, E> filter) throws E- Type Parameters:
E
-- Parameters:
fromRowIndex
-toRowIndex
-columnName
-filter
-- Returns:
- Throws:
E
- the e
-
filter
<E extends Exception> DataSet filter(int fromRowIndex, int toRowIndex, String columnName, Throwables.Predicate<?, E> filter, int max) throws E- Type Parameters:
E
-- Parameters:
fromRowIndex
-toRowIndex
-columnName
-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(int fromRowIndex, int toRowIndex, Collection<String> columnNames, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter) throws E- Type Parameters:
E
-- Parameters:
fromRowIndex
-toRowIndex
-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(int fromRowIndex, int toRowIndex, Collection<String> columnNames, Throwables.Predicate<? super NoCachingNoUpdating.DisposableObjArray, E> filter, int max) throws E- Type Parameters:
E
-- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-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, String newColumnName, String copyingColumnName, Throwables.Function<?, ?, throws EE> mapper) - Type Parameters:
E
-- Parameters:
fromColumnName
-newColumnName
-copyingColumnName
-mapper
-- Returns:
- Throws:
E
- the e
-
map
<E extends Exception> DataSet map(String fromColumnName, String newColumnName, Collection<String> copyingColumnNames, Throwables.Function<?, ?, throws EE> mapper) - Type Parameters:
E
-- Parameters:
fromColumnName
-newColumnName
-copyingColumnNames
-mapper
-- Returns:
- Throws:
E
- the e
-
map
<E extends Exception> DataSet map(Tuple.Tuple2<String, String> fromColumnNames, String newColumnName, Collection<String> copyingColumnNames, Throwables.BiFunction<?, throws E?, ?, E> mapper) - Type Parameters:
E
-- Parameters:
fromColumnNames
-newColumnName
-copyingColumnNames
-mapper
-- Returns:
- Throws:
E
- the e
-
map
<E extends Exception> DataSet map(Tuple.Tuple3<String, String, throws EString> fromColumnNames, String newColumnName, Collection<String> copyingColumnNames, Throwables.TriFunction<?, ?, ?, ?, E> mapper) - Type Parameters:
E
-- Parameters:
fromColumnNames
-newColumnName
-copyingColumnNames
-mapper
-- Returns:
- Throws:
E
- the e
-
map
<E extends Exception> DataSet map(Collection<String> fromColumnNames, String newColumnName, Collection<String> copyingColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ?, throws EE> mapper) - Type Parameters:
E
-- Parameters:
fromColumnNames
-newColumnName
-copyingColumnNames
-mapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Returns:
- Throws:
E
- the e
-
flatMap
<E extends Exception> DataSet flatMap(String fromColumnName, String newColumnName, String copyingColumnName, Throwables.Function<?, ? extends Collection<?>, throws EE> mapper) - Type Parameters:
E
-- Parameters:
fromColumnName
-newColumnName
-copyingColumnName
-mapper
-- Returns:
- Throws:
E
- the e
-
flatMap
<E extends Exception> DataSet flatMap(String fromColumnName, String newColumnName, Collection<String> copyingColumnNames, Throwables.Function<?, ? extends Collection<?>, throws EE> mapper) - Type Parameters:
E
-- Parameters:
fromColumnName
-newColumnName
-copyingColumnNames
-mapper
-- Returns:
- Throws:
E
- the e
-
flatMap
<E extends Exception> DataSet flatMap(Tuple.Tuple2<String, String> fromColumnNames, String newColumnName, Collection<String> copyingColumnNames, Throwables.BiFunction<?, throws E?, ? extends Collection<?>, E> mapper) - Type Parameters:
E
-- Parameters:
fromColumnNames
-newColumnName
-copyingColumnNames
-mapper
-- Returns:
- Throws:
E
- the e
-
flatMap
<E extends Exception> DataSet flatMap(Tuple.Tuple3<String, String, throws EString> fromColumnNames, String newColumnName, Collection<String> copyingColumnNames, Throwables.TriFunction<?, ?, ?, ? extends Collection<?>, E> mapper) - Type Parameters:
E
-- Parameters:
fromColumnNames
-newColumnName
-copyingColumnNames
-mapper
-- Returns:
- Throws:
E
- the e
-
flatMap
<E extends Exception> DataSet flatMap(Collection<String> fromColumnNames, String newColumnName, Collection<String> copyingColumnNames, Throwables.Function<? super NoCachingNoUpdating.DisposableObjArray, ? extends Collection<?>, throws EE> mapper) - Type Parameters:
E
-- Parameters:
fromColumnNames
-newColumnName
-copyingColumnNames
-mapper
- DON't cache or update the input parameterDisposableObjArray
or its values(Array)- Returns:
- Throws:
E
- the e
-
innerJoin
Returns a newDataSet
that is limited to the rows where there is a match in both thisDataSet
and rightDataSet
.- Parameters:
right
-columnName
-joinColumnNameOnRight
-- Returns:
- a new DataSet
-
innerJoin
Returns a newDataSet
that is limited to the rows where there is a match in both thisDataSet
and rightDataSet
.- 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 both thisDataSet
and rightDataSet
.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/Bean- 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 both thisDataSet
and rightDataSet
.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/BeancollSupplier
- 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 specified rightDataSet
if they have a match with the rows from the thisDataSet
.- Parameters:
right
-columnName
-joinColumnNameOnRight
-- Returns:
- a new DataSet
-
leftJoin
Returns a newDataSet
that has all the rows from thisDataSet
and the rows from the specified rightDataSet
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 specified rightDataSet
if they have a match with the rows from the thisDataSet
.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/Bean- 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 specified rightDataSet
if they have a match with the rows from the thisDataSet
.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/BeancollSupplier
- 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 from thisDataSet
if they have a match with the rows from the rightDataSet
.- Parameters:
right
-columnName
-joinColumnNameOnRight
-- Returns:
- a new DataSet
-
rightJoin
Returns a newDataSet
that has all the rows from the specified rightDataSet
and the rows from thisDataSet
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 from thisDataSet
if they have a match with the rows from the rightDataSet
.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/Bean- 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 from thisDataSet
if they have a match with the rows from the rightDataSet
.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/BeancollSupplier
- it's for one-to-many join- Returns:
- a new DataSet
-
fullJoin
Returns a newDataSet
that has all the rows from thisDataSet
and the specified rightDataSet
, regardless of whether there are any matches.- Parameters:
right
-columnName
-joinColumnNameOnRight
-- Returns:
- a new DataSet
-
fullJoin
Returns a newDataSet
that has all the rows from thisDataSet
and the specified rightDataSet
, 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 specified rightDataSet
, regardless of whether there are any matches.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/Bean- 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 specified rightDataSet
, regardless of whether there are any matches.- Parameters:
right
-onColumnNames
-newColumnName
-newColumnClass
- it can be Object[]/List/Set/Map/BeancollSupplier
- it's for one-to-many join- Returns:
- a new DataSet
-
union
Returns a newDataSet
. Duplicated rows in the returnedDataSet
will be eliminated.- Parameters:
other
-- Returns:
- a new DataSet
-
union
Returns a newDataSet
. Duplicated rows in the returnedDataSet
will be eliminated.- Parameters:
other
-requiresSameColumns
-- Returns:
- a new DataSet
-
union
Returns a newDataSet
. Duplicated rows in the returnedDataSet
will be eliminated.- Parameters:
other
-keyColumnNames
-- Returns:
- a new DataSet
-
union
Returns a newDataSet
. Duplicated rows in the returnedDataSet
will be eliminated.- Parameters:
other
-keyColumnNames
-requiresSameColumns
-- Returns:
- a new DataSet
-
unionAll
Returns a newDataSet
. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-- Returns:
- a new DataSet
- See Also:
-
unionAll
Returns a newDataSet
. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-requiresSameColumns
-- Returns:
- a new DataSet
- See Also:
-
unionAll
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will be eliminated.- Parameters:
other
-keyColumnNames
- this parameter won't be used. adding it here to be consistent withunion(DataSet, Collection)
- Returns:
- a new DataSet
-
unionAll
@Beta DataSet unionAll(DataSet other, Collection<String> keyColumnNames, boolean requiresSameColumns) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will be eliminated.- Parameters:
other
-keyColumnNames
- this parameter won't be used. adding it here to be consistent withunion(DataSet, Collection, boolean)
requiresSameColumns
-- Returns:
- a new DataSet
-
intersect
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will be eliminated.- Parameters:
other
-- Returns:
-
intersect
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will be eliminated.- Parameters:
other
-requiresSameColumns
-- Returns:
-
intersect
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will be eliminated.- Parameters:
other
-keyColumnNames
-- Returns:
-
intersect
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will be eliminated.- Parameters:
other
-keyColumnNames
-requiresSameColumns
-- Returns:
-
intersectAll
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-- Returns:
-
intersectAll
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-requiresSameColumns
-- Returns:
-
intersectAll
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns.. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-keyColumnNames
-- Returns:
-
intersectAll
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-keyColumnNames
-requiresSameColumns
-- Returns:
-
except
Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will be eliminated.- Parameters:
other
-- Returns:
-
except
Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will be eliminated.- Parameters:
other
-requiresSameColumns
-- Returns:
-
except
Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will be eliminated.- Parameters:
other
-keyColumnNames
-- Returns:
-
except
Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will be eliminated.- Parameters:
other
-keyColumnNames
-requiresSameColumns
-- Returns:
-
exceptAll
Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-- Returns:
-
exceptAll
Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-requiresSameColumns
-- Returns:
-
exceptAll
Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-keyColumnNames
-- Returns:
-
exceptAll
Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-keyColumnNames
-requiresSameColumns
-- Returns:
-
intersection
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns. Occurrences are considered. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-- Returns:
- a new DataSet
- See Also:
-
intersection
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns. Occurrences are considered. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-requiresSameColumns
-- Returns:
- a new DataSet
- See Also:
-
intersection
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns. Occurrences are considered. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-keyColumnNames
-- Returns:
- a new DataSet
- See Also:
-
intersection
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns. Occurrences are considered. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-keyColumnNames
-requiresSameColumns
-- Returns:
- a new DataSet
- See Also:
-
difference
Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns. Occurrences are considered. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-- Returns:
- a new DataSet
- See Also:
-
difference
Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns. Occurrences are considered. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-requiresSameColumns
-- Returns:
- a new DataSet
- See Also:
-
difference
Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns. Occurrences are considered. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-keyColumnNames
-- Returns:
- a new DataSet
- See Also:
-
difference
Returns a newDataSet
with all rows from this DataSet and which not appear in the specifiedother
in common columns. Occurrences are considered. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-keyColumnNames
-requiresSameColumns
-- Returns:
- a new DataSet
- See Also:
-
symmetricDifference
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns or vice versa. Occurrences are considered.- Parameters:
other
-- Returns:
- See Also:
-
symmetricDifference
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns or vice versa. Occurrences are considered. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-requiresSameColumns
-- Returns:
- See Also:
-
symmetricDifference
Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns or vice versa. Occurrences are considered.- Parameters:
other
-keyColumnNames
-- Returns:
- See Also:
-
symmetricDifference
DataSet symmetricDifference(DataSet other, Collection<String> keyColumnNames, boolean requiresSameColumns) Returns a newDataSet
with all rows from this DataSet and which also appear in the specifiedother
in common columns or vice versa. Occurrences are considered. Duplicated rows in the returnedDataSet
will not be eliminated.- Parameters:
other
-keyColumnNames
-requiresSameColumns
-- Returns:
- See Also:
-
merge
Returns a newDataSet
by appending the specifiedother
into thisDataSet
.- Parameters:
other
-- Returns:
-
merge
Returns a newDataSet
by appending the specifiedother
into thisDataSet
.- Parameters:
other
-requiresSameColumns
-- Returns:
-
merge
Returns a newDataSet
by appending the specifiedother
into thisDataSet
.- Parameters:
other
-columnNames
- selected column names fromother
DataSet
to merge.- Returns:
-
merge
Returns a newDataSet
by appending the specifiedother
fromfromRowIndex
totoRowIndex
into thisDataSet
.- Parameters:
other
-fromRowIndex
-toRowIndex
-- Returns:
-
merge
Returns a newDataSet
by appending the specifiedcolumnNames
inother
fromfromRowIndex
totoRowIndex
into thisDataSet
.- Parameters:
other
-fromRowIndex
-toRowIndex
-columnNames
- selected column names fromother
DataSet
to merge.- Returns:
-
merge
- Parameters:
others
-- Returns:
-
merge
- Parameters:
others
-requiresSameColumns
-- Returns:
-
cartesianProduct
- Parameters:
other
-- 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 frozen slice view on thisDataSet
.- Parameters:
columnNames
-- Returns:
- a copy of this DataSet
-
slice
Returns a frozen slice view on thisDataSet
.- Parameters:
fromRowIndex
-toRowIndex
-- Returns:
- a copy of this DataSet
-
slice
Returns a frozen slice view on thisDataSet
.- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-- 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:
fromRowIndex
-toRowIndex
-columnNames
-- 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(int fromRowIndex, int toRowIndex, String columnNameA, String columnNameB) - Type Parameters:
A
-B
-- Parameters:
fromRowIndex
-toRowIndex
-columnNameA
-columnNameB
-- Returns:
-
iterator
- Type Parameters:
A
-B
-C
-- Parameters:
columnNameA
-columnNameB
-columnNameC
-- Returns:
-
iterator
<A,B, TriIterator<A,C> B, iteratorC> (int fromRowIndex, int toRowIndex, String columnNameA, String columnNameB, String columnNameC) - Type Parameters:
A
-B
-C
-- Parameters:
fromRowIndex
-toRowIndex
-columnNameA
-columnNameB
-columnNameC
-- Returns:
-
paginate
- Parameters:
pageSize
-- Returns:
-
paginate
- Parameters:
columnNames
-pageSize
-- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
columnName
-- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
fromRowIndex
-toRowIndex
-columnName
-- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/Bean- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeanfromRowIndex
-toRowIndex
-- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeancolumnNames
-- Returns:
-
stream
<T> Stream<T> stream(Class<? extends T> rowClass, int fromRowIndex, int toRowIndex, Collection<String> columnNames) - Type Parameters:
T
-- Parameters:
rowClass
- it can be Object[]/List/Set/Map/BeanfromRowIndex
-toRowIndex
-columnNames
-- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
fromRowIndex
-toRowIndex
-rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
columnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
-
stream
<T> Stream<T> stream(int fromRowIndex, int toRowIndex, Collection<String> columnNames, IntFunction<? extends T> rowSupplier) - Type Parameters:
T
-- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-rowSupplier
- it can be Object[]/List/Set/Map/Bean- Returns:
-
stream
- Type Parameters:
T
-- Parameters:
beanClass
-prefixAndFieldNameMap
-- Returns:
-
stream
<T> Stream<T> stream(Class<? extends T> beanClass, int fromRowIndex, int toRowIndex, Map<String, String> prefixAndFieldNameMap) - Type Parameters:
T
-- Parameters:
beanClass
-fromRowIndex
-toRowIndex
-prefixAndFieldNameMap
-- Returns:
-
stream
<T> Stream<T> stream(Class<? extends T> beanClass, Collection<String> columnNames, Map<String, String> prefixAndFieldNameMap) - Type Parameters:
T
-- Parameters:
beanClass
-columnNames
-prefixAndFieldNameMap
-- Returns:
-
stream
<T> Stream<T> stream(Class<? extends T> beanClass, int fromRowIndex, int toRowIndex, Collection<String> columnNames, Map<String, String> prefixAndFieldNameMap) - Type Parameters:
T
-- Parameters:
beanClass
-fromRowIndex
-toRowIndex
-columnNames
-prefixAndFieldNameMap
-- Returns:
-
stream
<T> Stream<T> stream(IntObjFunction<? super NoCachingNoUpdating.DisposableObjArray, ? extends T> rowMapper) - Type Parameters:
T
-- Parameters:
rowMapper
-- Returns:
-
stream
<T> Stream<T> stream(int fromRowIndex, int toRowIndex, IntObjFunction<? super NoCachingNoUpdating.DisposableObjArray, ? extends T> rowMapper) - Type Parameters:
T
-- Parameters:
fromRowIndex
-toRowIndex
-rowMapper
-- Returns:
-
stream
<T> Stream<T> stream(Collection<String> columnNames, IntObjFunction<? super NoCachingNoUpdating.DisposableObjArray, ? extends T> rowMapper) - Type Parameters:
T
-- Parameters:
columnNames
-rowMapper
-- Returns:
-
stream
<T> Stream<T> stream(int fromRowIndex, int toRowIndex, Collection<String> columnNames, IntObjFunction<? super NoCachingNoUpdating.DisposableObjArray, ? extends T> rowMapper) - Type Parameters:
T
-- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-rowMapper
-- Returns:
-
stream
<T> Stream<T> stream(Tuple.Tuple2<String, String> columnNames, BiFunction<?, ?, ? extends T> rowMapper) - Type Parameters:
T
-- Parameters:
columnNames
-rowMapper
-- Returns:
-
stream
<T> Stream<T> stream(int fromRowIndex, int toRowIndex, Tuple.Tuple2<String, String> columnNames, BiFunction<?, ?, ? extends T> rowMapper) - Type Parameters:
T
-- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-rowMapper
-- Returns:
-
stream
<T> Stream<T> stream(Tuple.Tuple3<String, String, String> columnNames, TriFunction<?, ?, ?, ? extends T> rowMapper) - Type Parameters:
T
-- Parameters:
columnNames
-rowMapper
-- Returns:
-
stream
<T> Stream<T> stream(int fromRowIndex, int toRowIndex, Tuple.Tuple3<String, String, String> columnNames, TriFunction<?, ?, ?, ? extends T> rowMapper) - Type Parameters:
T
-- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-rowMapper
-- Returns:
-
apply
- Type Parameters:
R
-E
-- Parameters:
func
-- Returns:
- Throws:
E
- the e
-
applyIfNotEmpty
<R,E extends Exception> u.Optional<R> applyIfNotEmpty(Throwables.Function<? super DataSet, ? extends R, throws EE> func) - Type Parameters:
R
-E
-- Parameters:
func
-- Returns:
- Throws:
E
- the e
-
accept
- Type Parameters:
E
-- Parameters:
action
-- Throws:
E
- the e
-
acceptIfNotEmpty
- Type Parameters:
E
-- Parameters:
action
-- Throws:
E
- the e
-
freeze
void freeze()Method freeze. -
isFrozen
boolean isFrozen()- 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
- Returns:
-
columnNames
- Returns:
-
columns
Stream<ImmutableList<Object>> columns()- Returns:
-
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
void println() -
println
void println(int fromRowIndex, int toRowIndex) - Parameters:
fromRowIndex
-toRowIndex
-
-
println
- Parameters:
fromRowIndex
-toRowIndex
-columnNames
-
-
println
- Type Parameters:
W
-- Parameters:
outputWriter
-- Returns:
- Throws:
UncheckedIOException
- the unchecked IO exception
-
println
<W extends Writer> W println(W outputWriter, int fromRowIndex, int toRowIndex, Collection<String> columnNames) throws UncheckedIOException - Type Parameters:
W
-- Parameters:
outputWriter
-fromRowIndex
-toRowIndex
-columnNames
-- Returns:
- Throws:
UncheckedIOException
- the unchecked IO exception
-