Package app.ductape.sdk.warehouse.types
Record Class WarehouseQueryTypes.QueryMetadata
java.lang.Object
java.lang.Record
app.ductape.sdk.warehouse.types.WarehouseQueryTypes.QueryMetadata
- Enclosing class:
- WarehouseQueryTypes
public static record WarehouseQueryTypes.QueryMetadata(long executionTime, int sourcesQueried, List<Map<String,Object>> sourceStats, Map<String,Object> joinStats, boolean cached, Map<String,Object> plan)
extends Record
TS
IQueryMetadata (subset used by Java result maps)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancached()Returns the value of thecachedrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theexecutionTimerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thejoinStatsrecord component.plan()Returns the value of theplanrecord component.intReturns the value of thesourcesQueriedrecord component.Returns the value of thesourceStatsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
QueryMetadata
public QueryMetadata(long executionTime, int sourcesQueried, List<Map<String, Object>> sourceStats, Map<String, Object> joinStats, boolean cached, Map<String, Object> plan) Creates an instance of aQueryMetadatarecord class.- Parameters:
executionTime- the value for theexecutionTimerecord componentsourcesQueried- the value for thesourcesQueriedrecord componentsourceStats- the value for thesourceStatsrecord componentjoinStats- the value for thejoinStatsrecord componentcached- the value for thecachedrecord componentplan- the value for theplanrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
executionTime
public long executionTime()Returns the value of theexecutionTimerecord component.- Returns:
- the value of the
executionTimerecord component
-
sourcesQueried
public int sourcesQueried()Returns the value of thesourcesQueriedrecord component.- Returns:
- the value of the
sourcesQueriedrecord component
-
sourceStats
Returns the value of thesourceStatsrecord component.- Returns:
- the value of the
sourceStatsrecord component
-
joinStats
Returns the value of thejoinStatsrecord component.- Returns:
- the value of the
joinStatsrecord component
-
cached
public boolean cached()Returns the value of thecachedrecord component.- Returns:
- the value of the
cachedrecord component
-
plan
Returns the value of theplanrecord component.- Returns:
- the value of the
planrecord component
-