T
- the item class typepublic interface PartitioningFeature<T>
Modifier and Type | Method and Description |
---|---|
default GenericPartitionBoundaries<T> |
getPartitionBoundariesFromNumParts(int numEquallySizedParts)
This method returns an instance of
GenericPartitionBoundaries which provides
sufficient information for the user to create the given number of equally sized partitions, where "equally sized"
refers to an approximately equal number of items per partition. |
GenericPartitionBoundaries<T> |
getPartitionBoundariesFromNumParts(int numEquallySizedParts,
QuantileSearchCriteria searchCrit)
This method returns an instance of
GenericPartitionBoundaries which provides
sufficient information for the user to create the given number of equally sized partitions, where "equally sized"
refers to an approximately equal number of items per partition. |
default GenericPartitionBoundaries<T> |
getPartitionBoundariesFromPartSize(long nominalPartSizeItems)
This method returns an instance of
GenericPartitionBoundaries which provides
sufficient information for the user to create the given number of equally sized partitions, where "equally sized"
refers to an approximately equal number of items per partition. |
GenericPartitionBoundaries<T> |
getPartitionBoundariesFromPartSize(long nominalPartSizeItems,
QuantileSearchCriteria searchCrit)
This method returns an instance of
GenericPartitionBoundaries which provides
sufficient information for the user to create the given number of equally sized partitions, where "equally sized"
refers to an approximately equal number of items per partition. |
default GenericPartitionBoundaries<T> getPartitionBoundariesFromNumParts(int numEquallySizedParts)
GenericPartitionBoundaries
which provides
sufficient information for the user to create the given number of equally sized partitions, where "equally sized"
refers to an approximately equal number of items per partition.
This method is equivalent to
getPartitionBoundariesFromNumParts(numEquallySizedParts, INCLUSIVE)
.
The sketch must not be empty.
numEquallySizedParts
- an integer that specifies the number of equally sized partitions between
getMinItem()
and
getMaxItem()
.
This must be a positive integer less than
getMaxPartitions()
GenericPartitionBoundaries
.GenericPartitionBoundaries<T> getPartitionBoundariesFromNumParts(int numEquallySizedParts, QuantileSearchCriteria searchCrit)
GenericPartitionBoundaries
which provides
sufficient information for the user to create the given number of equally sized partitions, where "equally sized"
refers to an approximately equal number of items per partition.
The sketch must not be empty.
numEquallySizedParts
- an integer that specifies the number of equally sized partitions between
getMinItem()
and
getMaxItem()
.
This must be a positive integer less than
getMaxPartitions()
searchCrit
- If INCLUSIVE, all the returned quantiles are the upper boundaries of the equally sized partitions
with the exception of the lowest returned quantile, which is the lowest boundary of the lowest ranked partition.
If EXCLUSIVE, all the returned quantiles are the lower boundaries of the equally sized partitions
with the exception of the highest returned quantile, which is the upper boundary of the highest ranked partition.GenericPartitionBoundaries
.default GenericPartitionBoundaries<T> getPartitionBoundariesFromPartSize(long nominalPartSizeItems)
GenericPartitionBoundaries
which provides
sufficient information for the user to create the given number of equally sized partitions, where "equally sized"
refers to an approximately equal number of items per partition.
This method is equivalent to
getPartitionBoundariesFromPartSize(nominalPartSizeItems, INCLUSIVE)
.
The sketch must not be empty.
nominalPartSizeItems
- an integer that specifies the nominal size, in items, of each target partition.
This must be a positive integer greater than
getMinPartitionSizeItems()
GenericPartitionBoundaries
.GenericPartitionBoundaries<T> getPartitionBoundariesFromPartSize(long nominalPartSizeItems, QuantileSearchCriteria searchCrit)
GenericPartitionBoundaries
which provides
sufficient information for the user to create the given number of equally sized partitions, where "equally sized"
refers to an approximately equal number of items per partition.
The sketch must not be empty.
nominalPartSizeItems
- an integer that specifies the nominal size, in items, of each target partition.
This must be a positive integer greater than
getMinPartitionSizeItems()
.searchCrit
- If INCLUSIVE, all the returned quantiles are the upper boundaries of the equally sized partitions
with the exception of the lowest returned quantile, which is the lowest boundary of the lowest ranked partition.
If EXCLUSIVE, all the returned quantiles are the lower boundaries of the equally sized partitions
with the exception of the highest returned quantile, which is the upper boundary of the highest ranked partition.GenericPartitionBoundaries
.Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.