Package com.axelor.meta.query.dataset
Record Class DatasetEnvelope
java.lang.Object
java.lang.Record
com.axelor.meta.query.dataset.DatasetEnvelope
- Record Components:
records- the returned records; field names are exact keys, not executable pathscolumns- column identity, types and presentation metadataretrievedAt- when the result was retrieved, distinct from any business-effective dateparameters- the parameter values actually appliedcompleteness- how much of the matching data these records representtotal- counted rows, or null when no count ranoffset- the applied window offsetlimit- the applied window size, after any engine capaggregationLevel- whether records are rows or grouped measuressummary- query-scope aggregates, when the query declares anysource- the query definition these records came from
public record DatasetEnvelope(List<Map<String,Object>> records, List<DatasetColumn> columns, Instant retrievedAt, List<DatasetParameter> parameters, Completeness completeness, Long total, Integer offset, Integer limit, AggregationLevel aggregationLevel, List<DatasetSummary> summary, DatasetSource source)
extends Record
A resolved dataset: the records plus everything needed to say honestly what they are.
The envelope is produced by the server and never reconstructed by a client. Missing metadata
is reported as missing — a reader that receives no completeness treats the dataset as
Completeness.UNKNOWN and disables what depends on knowing, rather than inferring
completeness from the first plausible-looking number.
total counts rows, not business measures, and is null when no count ran. A null total
is the honest answer; the row count of the returned page is not a substitute for it.
-
Constructor Summary
ConstructorsConstructorDescriptionDatasetEnvelope(List<Map<String, Object>> records, List<DatasetColumn> columns, Instant retrievedAt, List<DatasetParameter> parameters, Completeness completeness, Long total, Integer offset, Integer limit, AggregationLevel aggregationLevel, List<DatasetSummary> summary, DatasetSource source) Creates an instance of aDatasetEnveloperecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaggregationLevelrecord component.columns()Returns the value of thecolumnsrecord component.Returns the value of thecompletenessrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.limit()Returns the value of thelimitrecord component.offset()Returns the value of theoffsetrecord component.Returns the value of theparametersrecord component.records()Returns the value of therecordsrecord component.Returns the value of theretrievedAtrecord component.source()Returns the value of thesourcerecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.total()Returns the value of thetotalrecord component.
-
Constructor Details
-
DatasetEnvelope
public DatasetEnvelope(List<Map<String, Object>> records, List<DatasetColumn> columns, Instant retrievedAt, List<DatasetParameter> parameters, Completeness completeness, Long total, Integer offset, Integer limit, AggregationLevel aggregationLevel, List<DatasetSummary> summary, DatasetSource source) Creates an instance of aDatasetEnveloperecord class.- Parameters:
records- the value for therecordsrecord componentcolumns- the value for thecolumnsrecord componentretrievedAt- the value for theretrievedAtrecord componentparameters- the value for theparametersrecord componentcompleteness- the value for thecompletenessrecord componenttotal- the value for thetotalrecord componentoffset- the value for theoffsetrecord componentlimit- the value for thelimitrecord componentaggregationLevel- the value for theaggregationLevelrecord componentsummary- the value for thesummaryrecord componentsource- the value for thesourcerecord 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). -
records
Returns the value of therecordsrecord component.- Returns:
- the value of the
recordsrecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
retrievedAt
Returns the value of theretrievedAtrecord component.- Returns:
- the value of the
retrievedAtrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-
completeness
Returns the value of thecompletenessrecord component.- Returns:
- the value of the
completenessrecord component
-
total
Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
limit
Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
aggregationLevel
Returns the value of theaggregationLevelrecord component.- Returns:
- the value of the
aggregationLevelrecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-