Record Class DistributionStatsRequest<FD extends GenericFilterDTO>
java.lang.Object
java.lang.Record
org.praxisplatform.uischema.stats.dto.DistributionStatsRequest<FD>
- Type Parameters:
FD- tipo do filtro do recurso
public record DistributionStatsRequest<FD extends GenericFilterDTO>(FD extends GenericFilterDTO filter, String field, DistributionMode mode, StatsMetricRequest metric, Number bucketSize, Integer bucketCount, Integer limit, StatsBucketOrder orderBy)
extends Record
Contrato canonico de request para distribuicoes agregadas.
Esse request cobre cenarios como histogramas e distribuicoes por faixas sobre campos numericos,
sempre aplicados ao conjunto filtrado do recurso. Os parametros de bucket podem ser informados
por tamanho, quantidade ou ambos, conforme o mode suportado pela implementacao.
-
Constructor Summary
ConstructorsConstructorDescriptionDistributionStatsRequest(FD filter, String field, DistributionMode mode, StatsMetricRequest metric, Number bucketSize, Integer bucketCount, Integer limit, StatsBucketOrder orderBy) Creates an instance of aDistributionStatsRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebucketCountrecord component.Returns the value of thebucketSizerecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.filter()Returns the value of thefilterrecord component.final inthashCode()Returns a hash code value for this object.limit()Returns the value of thelimitrecord component.metric()Returns the value of themetricrecord component.mode()Returns the value of themoderecord component.orderBy()Returns the value of theorderByrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DistributionStatsRequest
public DistributionStatsRequest(FD filter, String field, DistributionMode mode, StatsMetricRequest metric, Number bucketSize, Integer bucketCount, Integer limit, StatsBucketOrder orderBy) Creates an instance of aDistributionStatsRequestrecord class.- Parameters:
filter- the value for thefilterrecord componentfield- the value for thefieldrecord componentmode- the value for themoderecord componentmetric- the value for themetricrecord componentbucketSize- the value for thebucketSizerecord componentbucketCount- the value for thebucketCountrecord componentlimit- the value for thelimitrecord componentorderBy- the value for theorderByrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
filter
Returns the value of thefilterrecord component.- Returns:
- the value of the
filterrecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
metric
Returns the value of themetricrecord component.- Returns:
- the value of the
metricrecord component
-
bucketSize
Returns the value of thebucketSizerecord component.- Returns:
- the value of the
bucketSizerecord component
-
bucketCount
Returns the value of thebucketCountrecord component.- Returns:
- the value of the
bucketCountrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
orderBy
Returns the value of theorderByrecord component.- Returns:
- the value of the
orderByrecord component
-