Package com.atlan.model.assets
Class AtlanQuery.AtlanQueryBuilder<C extends AtlanQuery,B extends AtlanQuery.AtlanQueryBuilder<C,B>>
java.lang.Object
com.atlan.model.core.AtlanObject.AtlanObjectBuilder<C,B>
com.atlan.model.relations.Reference.ReferenceBuilder<C,B>
com.atlan.model.assets.Asset.AssetBuilder<C,B>
com.atlan.model.assets.AtlanQuery.AtlanQueryBuilder<C,B>
- Enclosing class:
AtlanQuery
public abstract static class AtlanQuery.AtlanQueryBuilder<C extends AtlanQuery,B extends AtlanQuery.AtlanQueryBuilder<C,B>>
extends Asset.AssetBuilder<C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected B$fillValuesFrom(C instance) abstract Cbuild()calculationViewName(String calculationViewName) Simple name of the calculation view in which this SQL asset exists, or empty if it does not exist within a calculation view.calculationViewQualifiedName(String calculationViewQualifiedName) Unique name of the calculation view in which this SQL asset exists, or empty if it does not exist within a calculation view.collectionQualifiedName(String collectionQualifiedName) Unique name of the collection in which this query exists.columns(Collection<? extends IColumn> columns) databaseName(String databaseName) Simple name of the database in which this SQL asset exists, or empty if it does not exist within a database.databaseQualifiedName(String databaseQualifiedName) Unique name of the database in which this SQL asset exists, or empty if it does not exist within a database.dbtModels(Collection<? extends IDbtModel> dbtModels) dbtSeedAsset(IDbtSeed dbtSeedAsset) dbtSeedAssets(Collection<? extends IDbtSeed> dbtSeedAssets) dbtSource(IDbtSource dbtSource) dbtSources(Collection<? extends IDbtSource> dbtSources) dbtTests(Collection<? extends IDbtTest> dbtTests) defaultDatabaseQualifiedName(String defaultDatabaseQualifiedName) Unique name of the default database to use for this query.defaultSchemaQualifiedName(String defaultSchemaQualifiedName) Unique name of the default schema to use for this query.inputToAirflowTask(IAirflowTask inputToAirflowTask) inputToAirflowTasks(Collection<? extends IAirflowTask> inputToAirflowTasks) inputToProcess(ILineageProcess inputToProcess) inputToProcesses(Collection<? extends ILineageProcess> inputToProcesses) inputToSparkJob(ISparkJob inputToSparkJob) inputToSparkJobs(Collection<? extends ISparkJob> inputToSparkJobs) Whether this query is private (true) or shared (false).isProfiled(Boolean isProfiled) Whether this asset has been profiled (true) or not (false).isSqlSnippet(Boolean isSqlSnippet) Whether this query is a SQL snippet (true) or not (false).isVisualQuery(Boolean isVisualQuery) Whether this query is a visual query (true) or not (false).lastProfiledAt(Long lastProfiledAt) Time (epoch) at which this asset was last profiled, in milliseconds.longRawQuery(String longRawQuery) Raw SQL query string.modelImplementedAttribute(IModelAttribute modelImplementedAttribute) modelImplementedAttributes(Collection<? extends IModelAttribute> modelImplementedAttributes) modelImplementedEntities(Collection<? extends IModelEntity> modelImplementedEntities) modelImplementedEntity(IModelEntity modelImplementedEntity) outputFromAirflowTask(IAirflowTask outputFromAirflowTask) outputFromAirflowTasks(Collection<? extends IAirflowTask> outputFromAirflowTasks) outputFromProcess(ILineageProcess outputFromProcess) outputFromProcesses(Collection<? extends ILineageProcess> outputFromProcesses) outputFromSparkJob(ISparkJob outputFromSparkJob) outputFromSparkJobs(Collection<? extends ISparkJob> outputFromSparkJobs) parent(INamespace parent) Namespace in which this query exists.parentQualifiedName(String parentQualifiedName) Unique name of the parent collection or folder in which this query exists.partialChildField(IPartialField partialChildField) partialChildFields(Collection<? extends IPartialField> partialChildFields) partialChildObject(IPartialObject partialChildObject) partialChildObjects(Collection<? extends IPartialObject> partialChildObjects) putQueryUserMap(String putQueryUserMapKey, Long putQueryUserMapValue) queryCount(Long queryCount) Number of times this asset has been queried.queryCountUpdatedAt(Long queryCountUpdatedAt) Time (epoch) at which the query count was last updated, in milliseconds.queryUserCount(Long queryUserCount) Number of unique users who have queried this asset.queryUserMap(Map<? extends String, ? extends Long> queryUserMap) Deprecated.rawQueryText(String rawQueryText) TBCschemaName(String schemaName) Simple name of the schema in which this SQL asset exists, or empty if it does not exist within a schema.schemaQualifiedName(String schemaQualifiedName) Unique name of the schema in which this SQL asset exists, or empty if it does not exist within a schema.protected abstract Bself()snowflakeSemanticLogicalTable(ISnowflakeSemanticLogicalTable snowflakeSemanticLogicalTable) snowflakeSemanticLogicalTables(Collection<? extends ISnowflakeSemanticLogicalTable> snowflakeSemanticLogicalTables) sqlAIModelContextQualifiedName(String sqlAIModelContextQualifiedName) Unique name of the context in which the model versions exist, or empty if it does not exist within an AI model context.sqlDbtModel(IDbtModel sqlDbtModel) sqlDbtModels(Collection<? extends IDbtModel> sqlDbtModels) sqlDBTSource(IDbtSource sqlDBTSource) sqlDBTSources(Collection<? extends IDbtSource> sqlDBTSources) sqlIsSecure(Boolean sqlIsSecure) Whether this asset is secure (true) or not (false).Simple name of the table in which this SQL asset exists, or empty if it does not exist within a table.tableQualifiedName(String tableQualifiedName) Unique name of the table in which this SQL asset exists, or empty if it does not exist within a table.tables(Collection<? extends ITable> tables) toString()Fixed typeName for AtlanQuerys.variablesSchemaBase64(String variablesSchemaBase64) Base64-encoded string of the variables to use in this query.Simple name of the view in which this SQL asset exists, or empty if it does not exist within a view.viewQualifiedName(String viewQualifiedName) Unique name of the view in which this SQL asset exists, or empty if it does not exist within a view.views(Collection<? extends IView> views) visualBuilderSchemaBase64(String visualBuilderSchemaBase64) Base64-encoded string for the visual query builder.withRawQuery(String schemaQualifiedName, String query) Methods inherited from class com.atlan.model.assets.Asset.AssetBuilder
addAssetGCPDataplexAspect, addAssetGCPDataplexAspectField, addStarredBy, adminGroup, adminGroups, adminRole, adminRoles, adminUser, adminUsers, announcementMessage, announcementTitle, announcementType, announcementUpdatedAt, announcementUpdatedBy, anomaloCheck, anomaloChecks, appendAssignedTerm, appendAtlanTag, appendAtlanTag, appendAtlanTags, appendAtlanTags, application, applicationField, applicationFieldQualifiedName, applicationQualifiedName, assetAiGeneratedDescription, assetAiGeneratedDescriptionConfidence, assetAiGeneratedDescriptionReasoning, assetAnnouncementExpiredAt, assetAnomaloAppliedCheckType, assetAnomaloAppliedCheckTypes, assetAnomaloCheckCount, assetAnomaloCheckStatuses, assetAnomaloDQStatus, assetAnomaloFailedCheckCount, assetAnomaloFailedCheckType, assetAnomaloFailedCheckTypes, assetAnomaloLastCheckRunAt, assetAnomaloSourceUrl, assetCoverImage, assetDbtAccountName, assetDbtAlias, assetDbtEnvironmentDbtVersion, assetDbtEnvironmentName, assetDbtJobLastRun, assetDbtJobLastRunArtifactS3Path, assetDbtJobLastRunArtifactsSaved, assetDbtJobLastRunCreatedAt, assetDbtJobLastRunDequedAt, assetDbtJobLastRunExecutedByThreadId, assetDbtJobLastRunGitBranch, assetDbtJobLastRunGitSha, assetDbtJobLastRunHasDocsGenerated, assetDbtJobLastRunHasSourcesGenerated, assetDbtJobLastRunNotificationsSent, assetDbtJobLastRunOwnerThreadId, assetDbtJobLastRunQueuedDuration, assetDbtJobLastRunQueuedDurationHumanized, assetDbtJobLastRunRunDuration, assetDbtJobLastRunRunDurationHumanized, assetDbtJobLastRunStartedAt, assetDbtJobLastRunStatusMessage, assetDbtJobLastRunTotalDuration, assetDbtJobLastRunTotalDurationHumanized, assetDbtJobLastRunUpdatedAt, assetDbtJobLastRunUrl, assetDbtJobName, assetDbtJobNextRun, assetDbtJobNextRunHumanized, assetDbtJobSchedule, assetDbtJobScheduleCronHumanized, assetDbtJobStatus, assetDbtMeta, assetDbtPackageName, assetDbtProjectName, assetDbtSemanticLayerProxyUrl, assetDbtSourceFreshnessCriteria, assetDbtTag, assetDbtTags, assetDbtTestStatus, assetDbtUniqueId, assetDbtWorkflowLastUpdated, assetDQFreshnessExpectation, assetDQFreshnessValue, assetDQManualRunStatus, assetDQResult, assetDQRowScopeFilterColumnQualifiedName, assetDQRuleAttachedDimension, assetDQRuleAttachedDimensions, assetDQRuleAttachedRuleType, assetDQRuleAttachedRuleTypes, assetDQRuleFailedCount, assetDQRuleFailedDimension, assetDQRuleFailedDimensions, assetDQRuleFailedRuleType, assetDQRuleFailedRuleTypes, assetDQRuleLastRunAt, assetDQRulePassedCount, assetDQRulePassedDimension, assetDQRulePassedDimensions, assetDQRulePassedRuleType, assetDQRulePassedRuleTypes, assetDQRuleResultTag, assetDQRuleResultTags, assetDQRuleTotalCount, assetDQScheduleCrontab, assetDQScheduleSourceSyncedAt, assetDQScheduleSourceSyncErrorCode, assetDQScheduleSourceSyncErrorMessage, assetDQScheduleSourceSyncRawError, assetDQScheduleSourceSyncStatus, assetDQScheduleTimeZone, assetDQScheduleType, assetExternalDQMetadataDetail, assetExternalDQMetadataDetails, assetGCPDataplexAspectFieldList, assetGCPDataplexAspectList, assetGCPDataplexMetadataDetails, assetIcon, assetInternalPopularityScore, assetMcAlertQualifiedName, assetMcAlertQualifiedNames, assetMcIncidentName, assetMcIncidentNames, assetMcIncidentPriorities, assetMcIncidentPriority, assetMcIncidentQualifiedName, assetMcIncidentQualifiedNames, assetMcIncidentSeverities, assetMcIncidentSeverity, assetMcIncidentState, assetMcIncidentStates, assetMcIncidentSubType, assetMcIncidentSubTypes, assetMcIncidentType, assetMcIncidentTypes, assetMcIsMonitored, assetMcLastSyncRunAt, assetMcMonitorName, assetMcMonitorNames, assetMcMonitorQualifiedName, assetMcMonitorQualifiedNames, assetMcMonitorScheduleType, assetMcMonitorScheduleTypes, assetMcMonitorStatus, assetMcMonitorStatuses, assetMcMonitorType, assetMcMonitorTypes, assetPoliciesCount, assetPolicyGUID, assetPolicyGUIDs, assetRedirectGUID, assetRedirectGUIDs, assetSmusMetadataFormDetail, assetSmusMetadataFormDetails, assetSmusMetadataFormKeyValueDetail, assetSmusMetadataFormKeyValueDetails, assetSmusMetadataFormName, assetSmusMetadataFormNames, assetSodaCheckCount, assetSodaCheckStatuses, assetSodaDQStatus, assetSodaLastScanAt, assetSodaLastSyncRunAt, assetSodaSourceURL, assetSourceId, assetSourceReadme, assetSpaceName, assetSpaceQualifiedName, assetTag, assetTags, assetThemeHex, assetUserDefinedType, assignedTerm, assignedTerms, atlanTag, atlanTagName, atlanTagNames, atlanTags, certificateStatus, certificateStatusMessage, certificateUpdatedAt, certificateUpdatedBy, clearAdminGroups, clearAdminRoles, clearAdminUsers, clearAnomaloChecks, clearAssetAnomaloAppliedCheckTypes, clearAssetAnomaloFailedCheckTypes, clearAssetDbtTags, clearAssetDQRuleAttachedDimensions, clearAssetDQRuleAttachedRuleTypes, clearAssetDQRuleFailedDimensions, clearAssetDQRuleFailedRuleTypes, clearAssetDQRulePassedDimensions, clearAssetDQRulePassedRuleTypes, clearAssetDQRuleResultTags, clearAssetExternalDQMetadataDetails, clearAssetGCPDataplexAspectFieldList, clearAssetGCPDataplexAspectList, clearAssetMcAlertQualifiedNames, clearAssetMcIncidentNames, clearAssetMcIncidentPriorities, clearAssetMcIncidentQualifiedNames, clearAssetMcIncidentSeverities, clearAssetMcIncidentStates, clearAssetMcIncidentSubTypes, clearAssetMcIncidentTypes, clearAssetMcMonitorNames, clearAssetMcMonitorQualifiedNames, clearAssetMcMonitorScheduleTypes, clearAssetMcMonitorStatuses, clearAssetMcMonitorTypes, clearAssetPolicyGUIDs, clearAssetRedirectGUIDs, clearAssetSmusMetadataFormDetails, clearAssetSmusMetadataFormKeyValueDetails, clearAssetSmusMetadataFormNames, clearAssetTags, clearAssignedTerms, clearAtlanTagNames, clearAtlanTags, clearCustomMetadataSets, clearDomainGUIDs, clearDqBaseDatasetRules, clearDqReferenceDatasetRules, clearFiles, clearInputPortDataProducts, clearLinks, clearMcIncidents, clearMcMonitors, clearMeaningNames, clearMeanings, clearMetrics, clearNonCompliantAssetPolicyGUIDs, clearNullFields, clearOutputPortDataProducts, clearOutputProductGUIDs, clearOwnerGroups, clearOwnerUsers, clearPendingTasks, clearProductGUIDs, clearSchemaRegistrySubjects, clearSodaChecks, clearSourceQueryComputeCostRecords, clearSourceQueryComputeCosts, clearSourceReadExpensiveQueryRecords, clearSourceReadPopularQueryRecords, clearSourceReadRecentUserRecords, clearSourceReadRecentUsers, clearSourceReadSlowQueryRecords, clearSourceReadTopUserRecords, clearSourceReadTopUsers, clearStarredBy, clearStarredDetails, clearUserDefRelationshipFroms, clearUserDefRelationshipTos, clearViewerGroups, clearViewerUsers, connectionName, connectionQualifiedName, connectorName, connectorType, createdBy, createTime, customConnectorType, customMetadata, customMetadataSets, dataContractLatest, dataContractLatestCertified, dbtQualifiedName, deleteHandler, depth, description, displayName, domainGUID, domainGUIDs, dqBaseDatasetRule, dqBaseDatasetRules, dqReferenceDatasetRule, dqReferenceDatasetRules, file, files, hasContract, hasLineage, iconUrl, immediateDownstream, immediateUpstream, inputPortDataProduct, inputPortDataProducts, isAIGenerated, isDiscoverable, isEditable, isIncomplete, isPartial, lastRowChangedAt, lastSyncRun, lastSyncRunAt, lastSyncWorkflowName, lexicographicalSortOrder, link, links, mcIncident, mcIncidents, mcMonitor, mcMonitors, meaning, meaningName, meaningNames, meanings, metric, metrics, name, nonCompliantAssetPolicyGUID, nonCompliantAssetPolicyGUIDs, nullField, nullFields, outputPortDataProduct, outputPortDataProducts, outputProductGUID, outputProductGUIDs, ownerGroup, ownerGroups, ownerUser, ownerUsers, pendingTask, pendingTasks, popularityScore, productGUID, productGUIDs, qualifiedName, readme, removeAnnouncement, removeAssignedTerm, removeAssignedTerms, removeAtlanTag, removeAtlanTags, removeAtlanTags, removeCertificate, removeCustomMetadata, removeDescription, removeOwners, removeUserDescription, sampleDataUrl, schemaRegistrySubject, schemaRegistrySubjects, sodaCheck, sodaChecks, sourceCostUnit, sourceCreatedAt, sourceCreatedBy, sourceEmbedURL, sourceLastReadAt, sourceOwners, sourceQueryComputeCost, sourceQueryComputeCostRecord, sourceQueryComputeCostRecords, sourceQueryComputeCosts, sourceReadCount, sourceReadExpensiveQueryRecord, sourceReadExpensiveQueryRecords, sourceReadPopularQueryRecord, sourceReadPopularQueryRecords, sourceReadQueryCost, sourceReadRecentUser, sourceReadRecentUserRecord, sourceReadRecentUserRecords, sourceReadRecentUsers, sourceReadSlowQueryRecord, sourceReadSlowQueryRecords, sourceReadTopUser, sourceReadTopUserRecord, sourceReadTopUserRecords, sourceReadTopUsers, sourceReadUserCount, sourceTotalCost, sourceUpdatedAt, sourceUpdatedBy, sourceURL, starredBy, starredCount, starredDetail, starredDetails, status, subType, tenantId, updatedBy, updateTime, userDefRelationshipFrom, userDefRelationshipFroms, userDefRelationshipTo, userDefRelationshipTos, userDescription, viewerGroup, viewerGroups, viewerUser, viewerUsers, viewScoreMethods inherited from class com.atlan.model.relations.Reference.ReferenceBuilder
addedRelationshipAttributes, clearCustomAttributes, clearLabels, completeObject, customAttribute, customAttributes, displayText, docId, entityStatus, guid, label, labels, relationshipAttributes, relationshipGuid, relationshipStatus, relationshipType, removedRelationshipAttributes, semantic, uniqueAttributesMethods inherited from class com.atlan.model.core.AtlanObject.AtlanObjectBuilder
rawJsonObject
-
Constructor Details
-
AtlanQueryBuilder
public AtlanQueryBuilder()
-
-
Method Details
-
withRawQuery
-
$fillValuesFrom
- Overrides:
$fillValuesFromin classAsset.AssetBuilder<C extends AtlanQuery,B extends AtlanQuery.AtlanQueryBuilder<C, B>>
-
typeName
Fixed typeName for AtlanQuerys.- Overrides:
typeNamein classReference.ReferenceBuilder<C extends AtlanQuery,B extends AtlanQuery.AtlanQueryBuilder<C, B>> - Returns:
this.
-
calculationViewName
Simple name of the calculation view in which this SQL asset exists, or empty if it does not exist within a calculation view.- Returns:
this.
-
calculationViewQualifiedName
Unique name of the calculation view in which this SQL asset exists, or empty if it does not exist within a calculation view.- Returns:
this.
-
collectionQualifiedName
Unique name of the collection in which this query exists.- Returns:
this.
-
column
-
columns
-
clearColumns
-
databaseName
Simple name of the database in which this SQL asset exists, or empty if it does not exist within a database.- Returns:
this.
-
databaseQualifiedName
Unique name of the database in which this SQL asset exists, or empty if it does not exist within a database.- Returns:
this.
-
dbtModel
-
dbtModels
-
clearDbtModels
-
dbtSeedAsset
-
dbtSeedAssets
-
clearDbtSeedAssets
-
dbtSource
-
dbtSources
-
clearDbtSources
-
dbtTest
-
dbtTests
-
clearDbtTests
-
defaultDatabaseQualifiedName
Unique name of the default database to use for this query.- Returns:
this.
-
defaultSchemaQualifiedName
Unique name of the default schema to use for this query.- Returns:
this.
-
inputToAirflowTask
-
inputToAirflowTasks
-
clearInputToAirflowTasks
-
inputToProcess
-
inputToProcesses
-
clearInputToProcesses
-
inputToSparkJob
-
inputToSparkJobs
-
clearInputToSparkJobs
-
isPrivate
Whether this query is private (true) or shared (false).- Returns:
this.
-
isProfiled
Whether this asset has been profiled (true) or not (false).- Returns:
this.
-
isSqlSnippet
Whether this query is a SQL snippet (true) or not (false).- Returns:
this.
-
isVisualQuery
Whether this query is a visual query (true) or not (false).- Returns:
this.
-
lastProfiledAt
Time (epoch) at which this asset was last profiled, in milliseconds.- Returns:
this.
-
longRawQuery
Raw SQL query string.- Returns:
this.
-
modelImplementedAttribute
-
modelImplementedAttributes
public B modelImplementedAttributes(Collection<? extends IModelAttribute> modelImplementedAttributes) -
clearModelImplementedAttributes
-
modelImplementedEntity
-
modelImplementedEntities
-
clearModelImplementedEntities
-
outputFromAirflowTask
-
outputFromAirflowTasks
-
clearOutputFromAirflowTasks
-
outputFromProcess
-
outputFromProcesses
-
clearOutputFromProcesses
-
outputFromSparkJob
-
outputFromSparkJobs
-
clearOutputFromSparkJobs
-
parent
Namespace in which this query exists.- Returns:
this.
-
parentQualifiedName
Unique name of the parent collection or folder in which this query exists.- Returns:
this.
-
partialChildField
-
partialChildFields
-
clearPartialChildFields
-
partialChildObject
-
partialChildObjects
-
clearPartialChildObjects
-
queryCount
Number of times this asset has been queried.- Returns:
this.
-
queryCountUpdatedAt
Time (epoch) at which the query count was last updated, in milliseconds.- Returns:
this.
-
queryUserCount
Number of unique users who have queried this asset.- Returns:
this.
-
putQueryUserMap
-
queryUserMap
-
clearQueryUserMap
-
rawQuery
Deprecated. See 'longRawQuery' instead.- Returns:
this.
-
rawQueryText
TBC- Returns:
this.
-
schemaName
Simple name of the schema in which this SQL asset exists, or empty if it does not exist within a schema.- Returns:
this.
-
schemaQualifiedName
Unique name of the schema in which this SQL asset exists, or empty if it does not exist within a schema.- Returns:
this.
-
snowflakeSemanticLogicalTable
public B snowflakeSemanticLogicalTable(ISnowflakeSemanticLogicalTable snowflakeSemanticLogicalTable) -
snowflakeSemanticLogicalTables
public B snowflakeSemanticLogicalTables(Collection<? extends ISnowflakeSemanticLogicalTable> snowflakeSemanticLogicalTables) -
clearSnowflakeSemanticLogicalTables
-
sqlAIModelContextQualifiedName
Unique name of the context in which the model versions exist, or empty if it does not exist within an AI model context.- Returns:
this.
-
sqlDBTSource
-
sqlDBTSources
-
clearSqlDBTSources
-
sqlDbtModel
-
sqlDbtModels
-
clearSqlDbtModels
-
sqlIsSecure
Whether this asset is secure (true) or not (false).- Returns:
this.
-
tableName
Simple name of the table in which this SQL asset exists, or empty if it does not exist within a table.- Returns:
this.
-
tableQualifiedName
Unique name of the table in which this SQL asset exists, or empty if it does not exist within a table.- Returns:
this.
-
table
-
tables
-
clearTables
-
variablesSchemaBase64
Base64-encoded string of the variables to use in this query.- Returns:
this.
-
viewName
Simple name of the view in which this SQL asset exists, or empty if it does not exist within a view.- Returns:
this.
-
viewQualifiedName
Unique name of the view in which this SQL asset exists, or empty if it does not exist within a view.- Returns:
this.
-
view
-
views
-
clearViews
-
visualBuilderSchemaBase64
Base64-encoded string for the visual query builder.- Returns:
this.
-
self
- Specified by:
selfin classAsset.AssetBuilder<C extends AtlanQuery,B extends AtlanQuery.AtlanQueryBuilder<C, B>>
-
build
- Specified by:
buildin classAsset.AssetBuilder<C extends AtlanQuery,B extends AtlanQuery.AtlanQueryBuilder<C, B>>
-
toString
- Overrides:
toStringin classAsset.AssetBuilder<C extends AtlanQuery,B extends AtlanQuery.AtlanQueryBuilder<C, B>>
-