类 SDFrameImpl<T>
- java.lang.Object
-
- io.github.burukeyou.dataframe.iframe.AbstractCommonFrame<T>
-
- io.github.burukeyou.dataframe.iframe.AbstractDataFrameImpl<T>
-
- io.github.burukeyou.dataframe.iframe.SDFrameImpl<T>
-
public class SDFrameImpl<T> extends AbstractDataFrameImpl<T> implements SDFrame<T>
- 作者:
- caizhihao
-
-
字段概要
字段 修饰符和类型 字段 说明 protected java.util.stream.Stream<T>
data
-
从类继承的字段 io.github.burukeyou.dataframe.iframe.AbstractCommonFrame
fieldList, MSG
-
-
构造器概要
构造器 构造器 说明 SDFrameImpl(List<T> list)
SDFrameImpl(java.util.stream.Stream<T> data)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 SDFrame<FI2<T,Integer>>
addRankingSameCol(Comparator<T> comparator)
Add ranking columns by comparator Ranking logic, the same value means the Ranking is the same.SDFrame<T>
addRankingSameCol(Comparator<T> comparator, SetFunction<T,Integer> set)
Add ranking column to a certain column by Comparator<R extends Comparable<R>>
SDFrame<FI2<T,Integer>>addRankingSameColAsc(java.util.function.Function<T,R> function)
Add ranking columns by field<R extends Comparable<R>>
SDFrame<T>addRankingSameColAsc(java.util.function.Function<T,R> function, SetFunction<T,Integer> set)
Add ranking column to a certain column by field<R extends Comparable<R>>
SDFrame<T>addRankingSameColDesc(java.util.function.Function<T,R> function, SetFunction<T,Integer> set)
Add ranking column to a certain column by fieldSDFrame<FI2<T,Integer>>
addSortNoCol()
ddd ordinal columnSDFrame<T>
addSortNoCol(SetFunction<T,Integer> set)
Add a numbered column to a specific columnSDFrame<FI2<T,Integer>>
addSortNoCol(Comparator<T> comparator)
Sort by comparator first, then add ordinal columns<R extends Comparable<R>>
SDFrame<FI2<T,Integer>>addSortNoCol(java.util.function.Function<T,R> function)
Sort by Field value first, then add ordinal columnsSDFrame<T>
append(T t)
add element to Framelong
count()
get row countlong
countDistinct(Comparator<T> comparator)
Calculate the quantity after deduplication<R extends Comparable<R>>
longcountDistinct(java.util.function.Function<T,R> function)
Calculate the quantity after deduplicationSDFrame<T>
cutFirst(int n)
=========================== 截取相关 =====================================SDFrame<T>
cutLast(int n)
Cut the last n elementSDFrame<T>
cutRankingSameAsc(Comparator<T> comparator, int n)
Cut the top n by ranking value, by comparator to ranking asc The same value is considered to have the same ranking<R extends Comparable<R>>
SDFrame<T>cutRankingSameAsc(java.util.function.Function<T,R> function, int n)
Cut the top n by ranking value, by field to ranking asc The same value is considered to have the same rankingSDFrame<T>
cutRankingSameDesc(Comparator<T> comparator, int n)
Cut the top n by ranking value, by comparator to ranking desc The same value is considered to have the same ranking<R extends Comparable<R>>
SDFrame<T>cutRankingSameDesc(java.util.function.Function<T,R> function, int n)
Cut the top n by ranking value, by field to ranking desc The same value is considered to have the same rankingSDFrame<T>
distinct()
distinct by T value<R extends Comparable<R>>
SDFrame<T>distinct(Comparator<T> comparator)
distinct by comparator<R extends Comparable<R>>
SDFrame<T>distinct(java.util.function.Function<T,R> function)
distinct by field value<R> SDFrame<R>
from(java.util.stream.Stream<R> data)
<K> SDFrame<FI2<K,List<T>>>
group(java.util.function.Function<T,K> key)
Group list<K,R extends Number>
SDFrame<FI2<K,BigDecimal>>groupByAvg(java.util.function.Function<T,K> key, NumberFunction<T,R> value)
Group average<K,J,R extends Number>
SDFrame<FI3<K,J,BigDecimal>>groupByAvg(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, NumberFunction<T,R> value)
Group average<K,J,H,R extends Number>
SDFrame<FI4<K,J,H,BigDecimal>>groupByAvg(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,H> key3, NumberFunction<T,R> value)
Group average<K> SDFrame<FI2<K,Long>>
groupByCount(java.util.function.Function<T,K> key)
Group count<K,J>
SDFrame<FI3<K,J,Long>>groupByCount(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2)
Group count<K,J,H>
SDFrame<FI4<K,J,H,Long>>groupByCount(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,H> key3)
Group count<K,J,V extends Comparable<V>>
SDFrame<FI3<K,J,T>>groupByMax(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,V> value)
Group max<K,V extends Comparable<V>>
SDFrame<FI2<K,T>>groupByMax(java.util.function.Function<T,K> key, java.util.function.Function<T,V> value)
Group max<K,J,V extends Comparable<V>>
SDFrame<FI3<K,J,MaxMin<T>>>groupByMaxMin(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,V> value)
Group max and min element<K,V extends Comparable<V>>
SDFrame<FI2<K,MaxMin<T>>>groupByMaxMin(java.util.function.Function<T,K> key, java.util.function.Function<T,V> value)
Group max and min element<K,J,V extends Comparable<V>>
SDFrame<FI3<K,J,MaxMin<V>>>groupByMaxMinValue(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,V> value)
Group max and min value<K,V extends Comparable<V>>
SDFrame<FI2<K,MaxMin<V>>>groupByMaxMinValue(java.util.function.Function<T,K> key, java.util.function.Function<T,V> value)
Group max and min value<K,J,V extends Comparable<V>>
SDFrame<FI3<K,J,V>>groupByMaxValue(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,V> value)
Group max value<K,V extends Comparable<V>>
SDFrame<FI2<K,V>>groupByMaxValue(java.util.function.Function<T,K> key, java.util.function.Function<T,V> value)
Group max value<K,J,V extends Comparable<V>>
SDFrame<FI3<K,J,T>>groupByMin(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,V> value)
Group min<K,V extends Comparable<V>>
SDFrame<FI2<K,T>>groupByMin(java.util.function.Function<T,K> key, java.util.function.Function<T,V> value)
Group min<K,J,V extends Comparable<V>>
SDFrame<FI3<K,J,V>>groupByMinValue(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,V> value)
Group min value<K,V extends Comparable<V>>
SDFrame<FI2<K,V>>groupByMinValue(java.util.function.Function<T,K> key, java.util.function.Function<T,V> value)
Group min value<K,R extends Number>
SDFrame<FI2<K,BigDecimal>>groupBySum(java.util.function.Function<T,K> key, NumberFunction<T,R> value)
=========================== 分组相关 =====================================<K,J,R extends Number>
SDFrame<FI3<K,J,BigDecimal>>groupBySum(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, NumberFunction<T,R> value)
Group summation<K,J,H,R extends Number>
SDFrame<FI4<K,J,H,BigDecimal>>groupBySum(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,H> key3, NumberFunction<T,R> value)
Group summation<K,R extends Number>
SDFrame<FI3<K,BigDecimal,Long>>groupBySumCount(java.util.function.Function<T,K> key, NumberFunction<T,R> value)
Group sum and count together<K,J,R extends Number>
SDFrame<FI4<K,J,BigDecimal,Long>>groupBySumCount(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, NumberFunction<T,R> value)
Group sum and count together<R,K>
SDFrame<R>join(IFrame<K> other, JoinOn<T,K> on)
inner join Frame such asIFrame.join(IFrame, JoinOn, Join)
, but the default Join isDefaultJoin
, it will automatically map to a new Frame based on the same name<R,K>
SDFrame<R>join(IFrame<K> other, JoinOn<T,K> on, Join<T,K,R> join)
inner join Frame<R,K>
SDFrame<R>leftJoin(IFrame<K> other, JoinOn<T,K> on)
left join Frame such asIFrame.leftJoin(IFrame, JoinOn, Join)
, but the default Join isDefaultJoin
,<R,K>
SDFrame<R>leftJoin(IFrame<K> other, JoinOn<T,K> on, Join<T,K,R> join)
left join Frame if connection conditions false, The callback value K for Join will be null, always keep T<R> SDFrame<R>
map(java.util.function.Function<T,R> map)
convert to the new Frame<R extends Number>
SDFrame<T>mapPercent(java.util.function.Function<T,R> get, SetFunction<T,BigDecimal> set)
Percentage convert such asIFrame.mapPercent(Function, SetFunction, int)
, but default scale is 2<R extends Number>
SDFrame<T>mapPercent(java.util.function.Function<T,R> get, SetFunction<T,BigDecimal> set, int scale)
Percentage convert you can convert the value of a certain field to a percentage, Then assign a value to a certain column through SetFunctionSDFrame<List<T>>
partition(int n)
partition cut the matrix into multiple small matrices, with each matrix size n<R> SDFrameImpl<R>
read(List<R> list)
<C> SDFrame<T>
replenish(java.util.function.Function<T,C> collectDim, List<C> allDim, java.util.function.Function<C,T> getEmptyObject)
Summarize all collectDim values, calculate the difference between them, and then add the missing difference to the Frame through getEmptyObject<G,C>
SDFrame<T>replenish(java.util.function.Function<T,G> groupDim, java.util.function.Function<T,C> collectDim, ReplenishFunction<G,C,T> getEmptyObject)
such asIFrame.replenish(Function, Function, List, ReplenishFunction)
, but can not Specify allDim, will auto generate allDim, The default allDim is the value of all collectDim fields in the set<G,C>
SDFrame<T>replenish(java.util.function.Function<T,G> groupDim, java.util.function.Function<T,C> collectDim, List<C> allDim, ReplenishFunction<G,C,T> getEmptyObject)
Calculate the difference in groups and then add the difference to that group according to the groupDim dimension, and then summarize all collectDim fields within each group After summarizing, calculate the difference sets with allAbscissa, which are the entries that need to be supplemented.protected <R> SDFrameImpl<R>
returnDF(List<R> dataList)
protected SDFrame<T>
returnThis(List<T> dataList)
protected SDFrame<T>
returnThis(java.util.stream.Stream<T> stream)
<R,K>
SDFrame<R>rightJoin(IFrame<K> other, JoinOn<T,K> on)
right join Frame such asIFrame.rightJoin(IFrame, JoinOn, Join)
, but the default Join isDefaultJoin
,<R,K>
SDFrame<R>rightJoin(IFrame<K> other, JoinOn<T,K> on, Join<T,K,R> join)
right join Frame if connection conditions false, The callback value T for Join will be null, always keep KSDFrame<T>
sortAsc(Comparator<T> comparator)
Ascending order<R extends Comparable<R>>
SDFrame<T>sortAsc(java.util.function.Function<T,R> function)
Ascending orderSDFrame<T>
sortDesc(Comparator<T> comparator)
=========================== 排序相关 =====================================<R extends Comparable<R>>
SDFrame<T>sortDesc(java.util.function.Function<T,R> function)
Descending order by fieldjava.util.stream.Stream<T>
stream()
get streamList<T>
toLists()
Convert to listSDFrame<T>
union(IFrame<T> other)
add other Frame to thisSDFrame<T>
where(java.util.function.Predicate<? super T> predicate)
=========================== 筛选相关 =====================================<R extends Comparable<R>>
SDFrame<T>whereBetween(java.util.function.Function<T,R> function, R start, R end)
Screening within the interval,front closed and back closed.<R extends Comparable<R>>
SDFrame<T>whereBetweenL(java.util.function.Function<T,R> function, R start, R end)
Screening within the interval , front close and back open [start,end)<R extends Comparable<R>>
SDFrame<T>whereBetweenN(java.util.function.Function<T,R> function, R start, R end)
Screening within the interval , front open and back open (start,end)<R extends Comparable<R>>
SDFrame<T>whereBetweenR(java.util.function.Function<T,R> function, R start, R end)
Screening within the interval , front open and back close (start,end]<R> SDFrame<T>
whereEq(java.util.function.Function<T,R> function, R value)
Filter equals<R extends Comparable<R>>
SDFrame<T>whereGe(java.util.function.Function<T,R> function, R value)
Filter Greater than or equal to<R extends Comparable<R>>
SDFrame<T>whereGt(java.util.function.Function<T,R> function, R value)
Filter Greater than value<R> SDFrame<T>
whereIn(java.util.function.Function<T,R> function, List<R> list)
The query value is within the specified range<R extends Comparable<R>>
SDFrame<T>whereLe(java.util.function.Function<T,R> function, R value)
Filter less than or equal to<R> SDFrame<T>
whereLike(java.util.function.Function<T,R> function, R value)
Fuzzy query contains specified values<R> SDFrame<T>
whereLikeLeft(java.util.function.Function<T,R> function, R value)
prefix fuzzy query contains specified values<R> SDFrame<T>
whereLikeRight(java.util.function.Function<T,R> function, R value)
suffix fuzzy query contains specified values<R extends Comparable<R>>
SDFrame<T>whereLt(java.util.function.Function<T,R> function, R value)
Filter LESS than value<R extends Comparable<R>>
SDFrame<T>whereNotBetween(java.util.function.Function<T,R> function, R start, R end)
Out of range screening, (front closed and back closed) [start,end]<R extends Comparable<R>>
SDFrame<T>whereNotBetweenN(java.util.function.Function<T,R> function, R start, R end)
Out of range screening, (front open and back open) (start,end)<R> SDFrame<T>
whereNotEq(java.util.function.Function<T,R> function, R value)
Filter not equals<R> SDFrame<T>
whereNotIn(java.util.function.Function<T,R> function, List<R> list)
The query value is outside the specified range<R> SDFrame<T>
whereNotLike(java.util.function.Function<T,R> function, R value)
Fuzzy query not contains specified values<R> SDFrame<T>
whereNotNull(java.util.function.Function<T,R> function)
Filter field values that are not null,If it is string compatible, null and '' situationsSDFrame<T>
whereNotTrue(java.util.function.Predicate<T> predicate)
filter not true by predicate<R> SDFrame<T>
whereNull(java.util.function.Function<T,R> function)
Filter field values that are null, If it is string compatible, null and '' situationsSDFrame<T>
whereTrue(java.util.function.Predicate<T> predicate)
filter true by predicate-
从类继承的方法 io.github.burukeyou.dataframe.iframe.AbstractDataFrameImpl
avg, buildFieldList, col, columns, convertToDataFrameItem2, convertToDataFrameItem3, convertToDataFrameItem4, getListMaxFunction, getListMinFunction, groupKey, groupKey, groupKey, groupKey, groupToMap, head, head, iterator, joinList, leftJoinList, max, maxMin, maxMinValue, maxValue, mergeCollection, min, minValue, replenish, replenish, replenish, rightJoinList, show, show, streamFilterNull, sum, tail, tail, whereBetweenLStream, whereBetweenNStream, whereBetweenRStream, whereBetweenStream, whereEqStream, whereGeStream, whereGtStream, whereInStream, whereLeStream, whereLikeLeftStream, whereLikeRightStream, whereLikeStream, whereLtStream, whereNotBetweenNStream, whereNotBetweenStream, whereNotEqStream, whereNotInStream, whereNotLikeStream, whereNotNullStream, whereNullStream
-
从类继承的方法 io.github.burukeyou.dataframe.iframe.AbstractCommonFrame
bigDecimalToClassValue, buildPrintDataArr, getSuperClassActualTypeArguments, getSuperInterfaceActualTypeArguments, rankingSameAsc, rankingSameAsc
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
字段详细资料
-
data
protected java.util.stream.Stream<T> data
-
-
方法详细资料
-
read
public <R> SDFrameImpl<R> read(List<R> list)
-
from
public <R> SDFrame<R> from(java.util.stream.Stream<R> data)
-
map
public <R> SDFrame<R> map(java.util.function.Function<T,R> map)
从接口复制的说明:SDFrame
convert to the new Frame
-
mapPercent
public <R extends Number> SDFrame<T> mapPercent(java.util.function.Function<T,R> get, SetFunction<T,BigDecimal> set)
从接口复制的说明:SDFrame
Percentage convert such asIFrame.mapPercent(Function, SetFunction, int)
, but default scale is 2- 指定者:
mapPercent
在接口中IFrame<T>
- 指定者:
mapPercent
在接口中SDFrame<T>
- 参数:
get
- need percentage convert fieldset
- field for storing percentage values
-
mapPercent
public <R extends Number> SDFrame<T> mapPercent(java.util.function.Function<T,R> get, SetFunction<T,BigDecimal> set, int scale)
从接口复制的说明:SDFrame
Percentage convert you can convert the value of a certain field to a percentage, Then assign a value to a certain column through SetFunction- 指定者:
mapPercent
在接口中IFrame<T>
- 指定者:
mapPercent
在接口中SDFrame<T>
- 类型参数:
R
- the percentage field type- 参数:
get
- need percentage convert fieldset
- field for storing percentage valuesscale
- percentage retain decimal places
-
partition
public SDFrame<List<T>> partition(int n)
从接口复制的说明:SDFrame
partition cut the matrix into multiple small matrices, with each matrix size n
-
join
public <R,K> SDFrame<R> join(IFrame<K> other, JoinOn<T,K> on, Join<T,K,R> join)
从接口复制的说明:SDFrame
inner join Frame
-
join
public <R,K> SDFrame<R> join(IFrame<K> other, JoinOn<T,K> on)
从接口复制的说明:SDFrame
inner join Frame such asIFrame.join(IFrame, JoinOn, Join)
, but the default Join isDefaultJoin
, it will automatically map to a new Frame based on the same name
-
leftJoin
public <R,K> SDFrame<R> leftJoin(IFrame<K> other, JoinOn<T,K> on, Join<T,K,R> join)
从接口复制的说明:SDFrame
left join Frame if connection conditions false, The callback value K for Join will be null, always keep T
-
leftJoin
public <R,K> SDFrame<R> leftJoin(IFrame<K> other, JoinOn<T,K> on)
从接口复制的说明:SDFrame
left join Frame such asIFrame.leftJoin(IFrame, JoinOn, Join)
, but the default Join isDefaultJoin
,
-
rightJoin
public <R,K> SDFrame<R> rightJoin(IFrame<K> other, JoinOn<T,K> on, Join<T,K,R> join)
从接口复制的说明:SDFrame
right join Frame if connection conditions false, The callback value T for Join will be null, always keep K
-
rightJoin
public <R,K> SDFrame<R> rightJoin(IFrame<K> other, JoinOn<T,K> on)
从接口复制的说明:SDFrame
right join Frame such asIFrame.rightJoin(IFrame, JoinOn, Join)
, but the default Join isDefaultJoin
,
-
addSortNoCol
public SDFrame<FI2<T,Integer>> addSortNoCol()
从接口复制的说明:SDFrame
ddd ordinal column- 指定者:
addSortNoCol
在接口中IFrame<T>
- 指定者:
addSortNoCol
在接口中SDFrame<T>
- 返回:
- FI2(T,Number)
-
addSortNoCol
public SDFrame<FI2<T,Integer>> addSortNoCol(Comparator<T> comparator)
从接口复制的说明:SDFrame
Sort by comparator first, then add ordinal columns- 指定者:
addSortNoCol
在接口中IFrame<T>
- 指定者:
addSortNoCol
在接口中SDFrame<T>
- 参数:
comparator
- the sort comparator
-
addSortNoCol
public <R extends Comparable<R>> SDFrame<FI2<T,Integer>> addSortNoCol(java.util.function.Function<T,R> function)
从接口复制的说明:SDFrame
Sort by Field value first, then add ordinal columns- 指定者:
addSortNoCol
在接口中IFrame<T>
- 指定者:
addSortNoCol
在接口中SDFrame<T>
- 参数:
function
- the sort field
-
addSortNoCol
public SDFrame<T> addSortNoCol(SetFunction<T,Integer> set)
从接口复制的说明:SDFrame
Add a numbered column to a specific column- 指定者:
addSortNoCol
在接口中IFrame<T>
- 指定者:
addSortNoCol
在接口中SDFrame<T>
- 参数:
set
- specific column
-
addRankingSameCol
public SDFrame<FI2<T,Integer>> addRankingSameCol(Comparator<T> comparator)
从接口复制的说明:SDFrame
Add ranking columns by comparator Ranking logic, the same value means the Ranking is the same. This is different fromSDFrame.addSortNoCol()
- 指定者:
addRankingSameCol
在接口中IFrame<T>
- 指定者:
addRankingSameCol
在接口中SDFrame<T>
- 参数:
comparator
- the ranking comparator
-
addRankingSameColAsc
public <R extends Comparable<R>> SDFrame<FI2<T,Integer>> addRankingSameColAsc(java.util.function.Function<T,R> function)
从接口复制的说明:SDFrame
Add ranking columns by field- 指定者:
addRankingSameColAsc
在接口中IFrame<T>
- 指定者:
addRankingSameColAsc
在接口中SDFrame<T>
- 参数:
function
- the sort field
-
addRankingSameCol
public SDFrame<T> addRankingSameCol(Comparator<T> comparator, SetFunction<T,Integer> set)
从接口复制的说明:SDFrame
Add ranking column to a certain column by Comparator- 指定者:
addRankingSameCol
在接口中IFrame<T>
- 指定者:
addRankingSameCol
在接口中SDFrame<T>
- 参数:
comparator
- the ranking comparatorset
- certain column
-
addRankingSameColAsc
public <R extends Comparable<R>> SDFrame<T> addRankingSameColAsc(java.util.function.Function<T,R> function, SetFunction<T,Integer> set)
从接口复制的说明:SDFrame
Add ranking column to a certain column by field- 指定者:
addRankingSameColAsc
在接口中IFrame<T>
- 指定者:
addRankingSameColAsc
在接口中SDFrame<T>
-
addRankingSameColDesc
public <R extends Comparable<R>> SDFrame<T> addRankingSameColDesc(java.util.function.Function<T,R> function, SetFunction<T,Integer> set)
从接口复制的说明:SDFrame
Add ranking column to a certain column by field- 指定者:
addRankingSameColDesc
在接口中IFrame<T>
- 指定者:
addRankingSameColDesc
在接口中SDFrame<T>
-
count
public long count()
从接口复制的说明:IFrame
get row count
-
group
public <K> SDFrame<FI2<K,List<T>>> group(java.util.function.Function<T,K> key)
从接口复制的说明:SDFrame
Group list
-
sortDesc
public SDFrame<T> sortDesc(Comparator<T> comparator)
=========================== 排序相关 =====================================
-
sortDesc
public <R extends Comparable<R>> SDFrame<T> sortDesc(java.util.function.Function<T,R> function)
从接口复制的说明:SDFrame
Descending order by field
-
sortAsc
public SDFrame<T> sortAsc(Comparator<T> comparator)
从接口复制的说明:SDFrame
Ascending order
-
sortAsc
public <R extends Comparable<R>> SDFrame<T> sortAsc(java.util.function.Function<T,R> function)
从接口复制的说明:SDFrame
Ascending order
-
cutRankingSameAsc
public SDFrame<T> cutRankingSameAsc(Comparator<T> comparator, int n)
从接口复制的说明:SDFrame
Cut the top n by ranking value, by comparator to ranking asc The same value is considered to have the same ranking- 指定者:
cutRankingSameAsc
在接口中IFrame<T>
- 指定者:
cutRankingSameAsc
在接口中SDFrame<T>
- 参数:
comparator
- the ranking comparatorn
- the top n
-
cutRankingSameAsc
public <R extends Comparable<R>> SDFrame<T> cutRankingSameAsc(java.util.function.Function<T,R> function, int n)
从接口复制的说明:SDFrame
Cut the top n by ranking value, by field to ranking asc The same value is considered to have the same ranking- 指定者:
cutRankingSameAsc
在接口中IFrame<T>
- 指定者:
cutRankingSameAsc
在接口中SDFrame<T>
- 参数:
function
- the ranking fieldn
- the top n
-
cutRankingSameDesc
public SDFrame<T> cutRankingSameDesc(Comparator<T> comparator, int n)
从接口复制的说明:SDFrame
Cut the top n by ranking value, by comparator to ranking desc The same value is considered to have the same ranking- 指定者:
cutRankingSameDesc
在接口中IFrame<T>
- 指定者:
cutRankingSameDesc
在接口中SDFrame<T>
- 参数:
comparator
- the ranking comparatorn
- the top n
-
cutRankingSameDesc
public <R extends Comparable<R>> SDFrame<T> cutRankingSameDesc(java.util.function.Function<T,R> function, int n)
从接口复制的说明:SDFrame
Cut the top n by ranking value, by field to ranking desc The same value is considered to have the same ranking- 指定者:
cutRankingSameDesc
在接口中IFrame<T>
- 指定者:
cutRankingSameDesc
在接口中SDFrame<T>
- 参数:
function
- the ranking fieldn
- the top n
-
cutFirst
public SDFrame<T> cutFirst(int n)
=========================== 截取相关 =====================================
-
distinct
public <R extends Comparable<R>> SDFrame<T> distinct(java.util.function.Function<T,R> function)
从接口复制的说明:SDFrame
distinct by field value
-
distinct
public <R extends Comparable<R>> SDFrame<T> distinct(Comparator<T> comparator)
从接口复制的说明:SDFrame
distinct by comparator
-
countDistinct
public long countDistinct(Comparator<T> comparator)
从接口复制的说明:SDFrame
Calculate the quantity after deduplication- 指定者:
countDistinct
在接口中IFrame<T>
- 指定者:
countDistinct
在接口中SDFrame<T>
-
countDistinct
public <R extends Comparable<R>> long countDistinct(java.util.function.Function<T,R> function)
从接口复制的说明:SDFrame
Calculate the quantity after deduplication- 指定者:
countDistinct
在接口中IFrame<T>
- 指定者:
countDistinct
在接口中SDFrame<T>
-
where
public SDFrame<T> where(java.util.function.Predicate<? super T> predicate)
=========================== 筛选相关 =====================================
-
whereNull
public <R> SDFrame<T> whereNull(java.util.function.Function<T,R> function)
从接口复制的说明:SDFrame
Filter field values that are null, If it is string compatible, null and '' situations
-
whereNotNull
public <R> SDFrame<T> whereNotNull(java.util.function.Function<T,R> function)
从接口复制的说明:SDFrame
Filter field values that are not null,If it is string compatible, null and '' situations- 指定者:
whereNotNull
在接口中IFrame<T>
- 指定者:
whereNotNull
在接口中SDFrame<T>
- 类型参数:
R
- the filter field type- 参数:
function
- the filter field
-
whereBetween
public <R extends Comparable<R>> SDFrame<T> whereBetween(java.util.function.Function<T,R> function, R start, R end)
从接口复制的说明:SDFrame
Screening within the interval,front closed and back closed. [start,end] [start,end]- 指定者:
whereBetween
在接口中IFrame<T>
- 指定者:
whereBetween
在接口中SDFrame<T>
- 参数:
function
- the filter fieldstart
- start valueend
- end value
-
whereBetweenN
public <R extends Comparable<R>> SDFrame<T> whereBetweenN(java.util.function.Function<T,R> function, R start, R end)
从接口复制的说明:SDFrame
Screening within the interval , front open and back open (start,end)- 指定者:
whereBetweenN
在接口中IFrame<T>
- 指定者:
whereBetweenN
在接口中SDFrame<T>
- 参数:
function
- the filter fieldstart
- start valueend
- end value
-
whereBetweenR
public <R extends Comparable<R>> SDFrame<T> whereBetweenR(java.util.function.Function<T,R> function, R start, R end)
从接口复制的说明:SDFrame
Screening within the interval , front open and back close (start,end]- 指定者:
whereBetweenR
在接口中IFrame<T>
- 指定者:
whereBetweenR
在接口中SDFrame<T>
- 参数:
function
- the filter fieldstart
- start valueend
- end value
-
whereBetweenL
public <R extends Comparable<R>> SDFrame<T> whereBetweenL(java.util.function.Function<T,R> function, R start, R end)
从接口复制的说明:SDFrame
Screening within the interval , front close and back open [start,end)- 指定者:
whereBetweenL
在接口中IFrame<T>
- 指定者:
whereBetweenL
在接口中SDFrame<T>
- 参数:
function
- the filter fieldstart
- start valueend
- end value
-
whereNotBetween
public <R extends Comparable<R>> SDFrame<T> whereNotBetween(java.util.function.Function<T,R> function, R start, R end)
从接口复制的说明:SDFrame
Out of range screening, (front closed and back closed) [start,end]- 指定者:
whereNotBetween
在接口中IFrame<T>
- 指定者:
whereNotBetween
在接口中SDFrame<T>
- 参数:
function
- the filter fieldstart
- start valueend
- end value
-
whereNotBetweenN
public <R extends Comparable<R>> SDFrame<T> whereNotBetweenN(java.util.function.Function<T,R> function, R start, R end)
从接口复制的说明:SDFrame
Out of range screening, (front open and back open) (start,end)- 指定者:
whereNotBetweenN
在接口中IFrame<T>
- 指定者:
whereNotBetweenN
在接口中SDFrame<T>
- 参数:
function
- the filter fieldstart
- start valueend
- end value
-
whereIn
public <R> SDFrame<T> whereIn(java.util.function.Function<T,R> function, List<R> list)
从接口复制的说明:SDFrame
The query value is within the specified range
-
whereNotIn
public <R> SDFrame<T> whereNotIn(java.util.function.Function<T,R> function, List<R> list)
从接口复制的说明:SDFrame
The query value is outside the specified range- 指定者:
whereNotIn
在接口中IFrame<T>
- 指定者:
whereNotIn
在接口中SDFrame<T>
- 参数:
function
- the filter fieldlist
- specified range
-
whereTrue
public SDFrame<T> whereTrue(java.util.function.Predicate<T> predicate)
从接口复制的说明:SDFrame
filter true by predicate
-
whereNotTrue
public SDFrame<T> whereNotTrue(java.util.function.Predicate<T> predicate)
从接口复制的说明:SDFrame
filter not true by predicate- 指定者:
whereNotTrue
在接口中IFrame<T>
- 指定者:
whereNotTrue
在接口中SDFrame<T>
-
whereEq
public <R> SDFrame<T> whereEq(java.util.function.Function<T,R> function, R value)
从接口复制的说明:SDFrame
Filter equals
-
whereNotEq
public <R> SDFrame<T> whereNotEq(java.util.function.Function<T,R> function, R value)
从接口复制的说明:SDFrame
Filter not equals- 指定者:
whereNotEq
在接口中IFrame<T>
- 指定者:
whereNotEq
在接口中SDFrame<T>
- 参数:
function
- the fieldvalue
- not need value
-
whereGt
public <R extends Comparable<R>> SDFrame<T> whereGt(java.util.function.Function<T,R> function, R value)
从接口复制的说明:SDFrame
Filter Greater than value
-
whereGe
public <R extends Comparable<R>> SDFrame<T> whereGe(java.util.function.Function<T,R> function, R value)
从接口复制的说明:SDFrame
Filter Greater than or equal to
-
whereLt
public <R extends Comparable<R>> SDFrame<T> whereLt(java.util.function.Function<T,R> function, R value)
从接口复制的说明:SDFrame
Filter LESS than value
-
whereLe
public <R extends Comparable<R>> SDFrame<T> whereLe(java.util.function.Function<T,R> function, R value)
从接口复制的说明:SDFrame
Filter less than or equal to
-
whereLike
public <R> SDFrame<T> whereLike(java.util.function.Function<T,R> function, R value)
从接口复制的说明:SDFrame
Fuzzy query contains specified values
-
whereNotLike
public <R> SDFrame<T> whereNotLike(java.util.function.Function<T,R> function, R value)
从接口复制的说明:SDFrame
Fuzzy query not contains specified values- 指定者:
whereNotLike
在接口中IFrame<T>
- 指定者:
whereNotLike
在接口中SDFrame<T>
- 参数:
function
- the fieldvalue
- query value
-
whereLikeLeft
public <R> SDFrame<T> whereLikeLeft(java.util.function.Function<T,R> function, R value)
从接口复制的说明:SDFrame
prefix fuzzy query contains specified values- 指定者:
whereLikeLeft
在接口中IFrame<T>
- 指定者:
whereLikeLeft
在接口中SDFrame<T>
- 参数:
function
- the fieldvalue
- query value
-
whereLikeRight
public <R> SDFrame<T> whereLikeRight(java.util.function.Function<T,R> function, R value)
从接口复制的说明:SDFrame
suffix fuzzy query contains specified values- 指定者:
whereLikeRight
在接口中IFrame<T>
- 指定者:
whereLikeRight
在接口中SDFrame<T>
- 参数:
function
- the fieldvalue
- query value
-
groupBySum
public <K,R extends Number> SDFrame<FI2<K,BigDecimal>> groupBySum(java.util.function.Function<T,K> key, NumberFunction<T,R> value)
=========================== 分组相关 =====================================- 指定者:
groupBySum
在接口中IFrame<T>
- 指定者:
groupBySum
在接口中SDFrame<T>
- 参数:
key
- group fieldvalue
- Aggregated field
-
groupBySum
public <K,J,R extends Number> SDFrame<FI3<K,J,BigDecimal>> groupBySum(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, NumberFunction<T,R> value)
从接口复制的说明:SDFrame
Group summation- 指定者:
groupBySum
在接口中IFrame<T>
- 指定者:
groupBySum
在接口中SDFrame<T>
- 参数:
key
- group fieldkey2
- secondary level group fieldvalue
- Aggregated field
-
groupBySum
public <K,J,H,R extends Number> SDFrame<FI4<K,J,H,BigDecimal>> groupBySum(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,H> key3, NumberFunction<T,R> value)
从接口复制的说明:SDFrame
Group summation- 指定者:
groupBySum
在接口中IFrame<T>
- 指定者:
groupBySum
在接口中SDFrame<T>
- 参数:
key
- group fieldkey2
- secondary level group fieldkey3
- third level group fieldvalue
- Aggregated field
-
groupByCount
public <K> SDFrame<FI2<K,Long>> groupByCount(java.util.function.Function<T,K> key)
从接口复制的说明:SDFrame
Group count- 指定者:
groupByCount
在接口中IFrame<T>
- 指定者:
groupByCount
在接口中SDFrame<T>
- 参数:
key
- group field
-
groupByCount
public <K,J> SDFrame<FI3<K,J,Long>> groupByCount(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2)
从接口复制的说明:SDFrame
Group count- 指定者:
groupByCount
在接口中IFrame<T>
- 指定者:
groupByCount
在接口中SDFrame<T>
- 参数:
key
- group fieldkey2
- secondary level group field
-
groupByCount
public <K,J,H> SDFrame<FI4<K,J,H,Long>> groupByCount(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,H> key3)
从接口复制的说明:SDFrame
Group count- 指定者:
groupByCount
在接口中IFrame<T>
- 指定者:
groupByCount
在接口中SDFrame<T>
- 参数:
key
- group fieldkey2
- secondary level group fieldkey3
- third level group field
-
groupBySumCount
public <K,R extends Number> SDFrame<FI3<K,BigDecimal,Long>> groupBySumCount(java.util.function.Function<T,K> key, NumberFunction<T,R> value)
从接口复制的说明:SDFrame
Group sum and count together- 指定者:
groupBySumCount
在接口中IFrame<T>
- 指定者:
groupBySumCount
在接口中SDFrame<T>
- 参数:
key
- group fieldvalue
- Aggregated field- 返回:
- FItem3(key, Sum, Count)
-
groupBySumCount
public <K,J,R extends Number> SDFrame<FI4<K,J,BigDecimal,Long>> groupBySumCount(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, NumberFunction<T,R> value)
从接口复制的说明:SDFrame
Group sum and count together- 指定者:
groupBySumCount
在接口中IFrame<T>
- 指定者:
groupBySumCount
在接口中SDFrame<T>
- 参数:
key
- group fieldkey2
- secondary level group fieldvalue
- Aggregated field- 返回:
- FItem4(key, ke2,Sum, Count)
-
groupByAvg
public <K,R extends Number> SDFrame<FI2<K,BigDecimal>> groupByAvg(java.util.function.Function<T,K> key, NumberFunction<T,R> value)
从接口复制的说明:SDFrame
Group average- 指定者:
groupByAvg
在接口中IFrame<T>
- 指定者:
groupByAvg
在接口中SDFrame<T>
- 参数:
key
- group fieldvalue
- Aggregated field
-
groupByAvg
public <K,J,R extends Number> SDFrame<FI3<K,J,BigDecimal>> groupByAvg(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, NumberFunction<T,R> value)
从接口复制的说明:SDFrame
Group average- 指定者:
groupByAvg
在接口中IFrame<T>
- 指定者:
groupByAvg
在接口中SDFrame<T>
- 参数:
key
- group fieldkey2
- secondary level group fieldvalue
- Aggregated field
-
groupByAvg
public <K,J,H,R extends Number> SDFrame<FI4<K,J,H,BigDecimal>> groupByAvg(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,H> key3, NumberFunction<T,R> value)
从接口复制的说明:SDFrame
Group average- 指定者:
groupByAvg
在接口中IFrame<T>
- 指定者:
groupByAvg
在接口中SDFrame<T>
- 参数:
key
- group fieldkey2
- secondary level group fieldkey3
- third level group fieldvalue
- Aggregated field
-
groupByMax
public <K,V extends Comparable<V>> SDFrame<FI2<K,T>> groupByMax(java.util.function.Function<T,K> key, java.util.function.Function<T,V> value)
从接口复制的说明:SDFrame
Group max- 指定者:
groupByMax
在接口中IFrame<T>
- 指定者:
groupByMax
在接口中SDFrame<T>
- 参数:
key
- group fieldvalue
- Aggregated field
-
groupByMax
public <K,J,V extends Comparable<V>> SDFrame<FI3<K,J,T>> groupByMax(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,V> value)
从接口复制的说明:SDFrame
Group max- 指定者:
groupByMax
在接口中IFrame<T>
- 指定者:
groupByMax
在接口中SDFrame<T>
- 参数:
key
- group fieldkey2
- secondary level group fieldvalue
- Aggregated field
-
groupByMaxValue
public <K,V extends Comparable<V>> SDFrame<FI2<K,V>> groupByMaxValue(java.util.function.Function<T,K> key, java.util.function.Function<T,V> value)
从接口复制的说明:SDFrame
Group max value- 指定者:
groupByMaxValue
在接口中IFrame<T>
- 指定者:
groupByMaxValue
在接口中SDFrame<T>
- 参数:
key
- group fieldvalue
- Aggregated field
-
groupByMaxValue
public <K,J,V extends Comparable<V>> SDFrame<FI3<K,J,V>> groupByMaxValue(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,V> value)
从接口复制的说明:SDFrame
Group max value- 指定者:
groupByMaxValue
在接口中IFrame<T>
- 指定者:
groupByMaxValue
在接口中SDFrame<T>
- 参数:
key
- group fieldkey2
- secondary level group fieldvalue
- Aggregated field
-
groupByMin
public <K,V extends Comparable<V>> SDFrame<FI2<K,T>> groupByMin(java.util.function.Function<T,K> key, java.util.function.Function<T,V> value)
从接口复制的说明:SDFrame
Group min- 指定者:
groupByMin
在接口中IFrame<T>
- 指定者:
groupByMin
在接口中SDFrame<T>
- 参数:
key
- group fieldvalue
- Aggregated field
-
groupByMin
public <K,J,V extends Comparable<V>> SDFrame<FI3<K,J,T>> groupByMin(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,V> value)
从接口复制的说明:SDFrame
Group min- 指定者:
groupByMin
在接口中IFrame<T>
- 指定者:
groupByMin
在接口中SDFrame<T>
- 参数:
key
- group fieldkey2
- secondary level group fieldvalue
- Aggregated field
-
groupByMinValue
public <K,V extends Comparable<V>> SDFrame<FI2<K,V>> groupByMinValue(java.util.function.Function<T,K> key, java.util.function.Function<T,V> value)
从接口复制的说明:SDFrame
Group min value- 指定者:
groupByMinValue
在接口中IFrame<T>
- 指定者:
groupByMinValue
在接口中SDFrame<T>
- 参数:
key
- group fieldvalue
- Aggregated field
-
groupByMinValue
public <K,J,V extends Comparable<V>> SDFrame<FI3<K,J,V>> groupByMinValue(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,V> value)
从接口复制的说明:SDFrame
Group min value- 指定者:
groupByMinValue
在接口中IFrame<T>
- 指定者:
groupByMinValue
在接口中SDFrame<T>
- 参数:
key
- group fieldkey2
- secondary level group fieldvalue
- Aggregated field
-
groupByMaxMinValue
public <K,V extends Comparable<V>> SDFrame<FI2<K,MaxMin<V>>> groupByMaxMinValue(java.util.function.Function<T,K> key, java.util.function.Function<T,V> value)
从接口复制的说明:SDFrame
Group max and min value- 指定者:
groupByMaxMinValue
在接口中IFrame<T>
- 指定者:
groupByMaxMinValue
在接口中SDFrame<T>
- 参数:
key
- group fieldvalue
- Aggregated field
-
groupByMaxMinValue
public <K,J,V extends Comparable<V>> SDFrame<FI3<K,J,MaxMin<V>>> groupByMaxMinValue(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,V> value)
从接口复制的说明:SDFrame
Group max and min value- 指定者:
groupByMaxMinValue
在接口中IFrame<T>
- 指定者:
groupByMaxMinValue
在接口中SDFrame<T>
- 参数:
key
- group fieldkey2
- secondary level group fieldvalue
- Aggregated field
-
groupByMaxMin
public <K,V extends Comparable<V>> SDFrame<FI2<K,MaxMin<T>>> groupByMaxMin(java.util.function.Function<T,K> key, java.util.function.Function<T,V> value)
从接口复制的说明:SDFrame
Group max and min element- 指定者:
groupByMaxMin
在接口中IFrame<T>
- 指定者:
groupByMaxMin
在接口中SDFrame<T>
- 参数:
key
- group fieldvalue
- Aggregated field
-
groupByMaxMin
public <K,J,V extends Comparable<V>> SDFrame<FI3<K,J,MaxMin<T>>> groupByMaxMin(java.util.function.Function<T,K> key, java.util.function.Function<T,J> key2, java.util.function.Function<T,V> value)
从接口复制的说明:SDFrame
Group max and min element- 指定者:
groupByMaxMin
在接口中IFrame<T>
- 指定者:
groupByMaxMin
在接口中SDFrame<T>
- 参数:
key
- group fieldkey2
- secondary level group fieldvalue
- Aggregated field
-
replenish
public <G,C> SDFrame<T> replenish(java.util.function.Function<T,G> groupDim, java.util.function.Function<T,C> collectDim, List<C> allDim, ReplenishFunction<G,C,T> getEmptyObject)
从接口复制的说明:SDFrame
Calculate the difference in groups and then add the difference to that group according to the groupDim dimension, and then summarize all collectDim fields within each group After summarizing, calculate the difference sets with allAbscissa, which are the entries that need to be supplemented. Then, generate empty objects according to the ReplenishFunction logic and add them to the group- 指定者:
replenish
在接口中IFrame<T>
- 指定者:
replenish
在接口中SDFrame<T>
- 类型参数:
G
- The type of groupingC
- type of collection within the group The set supplemented by @ return- 参数:
groupDim
- Dimension fields for groupingcollectDim
- Data fields collected within the groupallDim
- All dimensions that need to be displayed within the groupgetEmptyObject
- Logic for generating empty objects
-
replenish
public <C> SDFrame<T> replenish(java.util.function.Function<T,C> collectDim, List<C> allDim, java.util.function.Function<C,T> getEmptyObject)
从接口复制的说明:SDFrame
Summarize all collectDim values, calculate the difference between them, and then add the missing difference to the Frame through getEmptyObject
-
replenish
public <G,C> SDFrame<T> replenish(java.util.function.Function<T,G> groupDim, java.util.function.Function<T,C> collectDim, ReplenishFunction<G,C,T> getEmptyObject)
从接口复制的说明:SDFrame
such asIFrame.replenish(Function, Function, List, ReplenishFunction)
, but can not Specify allDim, will auto generate allDim, The default allDim is the value of all collectDim fields in the set
-
returnDF
protected <R> SDFrameImpl<R> returnDF(List<R> dataList)
-
-