Uses of Class
io.trino.Session
Packages that use Session
Package
Description
-
Uses of Session in io.trino
Modifier and TypeMethodDescriptionSession.beginTransactionId(TransactionId transactionId, TransactionManager transactionManager, AccessControl accessControl) Session.SessionBuilder.build()Session.createViewSession(Optional<String> catalog, Optional<String> schema, Identity identity, SqlPath sqlPath) Session.createViewSession(Optional<String> catalog, Optional<String> schema, Identity identity, List<CatalogSchemaName> viewPath) FullConnectorSession.getSession()SessionRepresentation.toSession(SessionPropertyManager sessionPropertyManager) SessionRepresentation.toSession(SessionPropertyManager sessionPropertyManager, Map<String, String> extraCredentials, Optional<io.airlift.slice.Slice> exchangeEncryptionKey) Session.withDefaultProperties(Map<String, String> systemPropertyDefaults, Map<String, Map<String, String>> catalogPropertyDefaults, AccessControl accessControl) Session.withExchangeEncryption(io.airlift.slice.Slice encryptionKey) Modifier and TypeMethodDescriptionstatic Session.SessionBuilderstatic doubleSystemSessionProperties.getAdaptivePartialAggregationUniqueRowsRatioThreshold(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getAggregationOperatorUnspillMemoryLimit(Session session) static io.airlift.units.DurationSystemSessionProperties.getCloseIdleWritersTriggerDuration(Session session) static IntegerSystemSessionProperties.getCostEstimationWorkerCount(Session session) static CompressionCodecSystemSessionProperties.getExchangeCompressionCodec(Session session) static StringSystemSessionProperties.getExecutionPolicy(Session session) static doubleSystemSessionProperties.getFaultTolerantExecutionArbitraryDistributionComputeTaskTargetSizeGrowthFactor(Session session) static intSystemSessionProperties.getFaultTolerantExecutionArbitraryDistributionComputeTaskTargetSizeGrowthPeriod(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getFaultTolerantExecutionArbitraryDistributionComputeTaskTargetSizeMax(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getFaultTolerantExecutionArbitraryDistributionComputeTaskTargetSizeMin(Session session) static doubleSystemSessionProperties.getFaultTolerantExecutionArbitraryDistributionWriteTaskTargetSizeGrowthFactor(Session session) static intSystemSessionProperties.getFaultTolerantExecutionArbitraryDistributionWriteTaskTargetSizeGrowthPeriod(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getFaultTolerantExecutionArbitraryDistributionWriteTaskTargetSizeMax(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getFaultTolerantExecutionArbitraryDistributionWriteTaskTargetSizeMin(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getFaultTolerantExecutionDefaultCoordinatorTaskMemory(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getFaultTolerantExecutionDefaultTaskMemory(Session session) static doubleSystemSessionProperties.getFaultTolerantExecutionHashDistributionComputeTasksToNodesMinRatio(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getFaultTolerantExecutionHashDistributionComputeTaskTargetSize(Session session) static doubleSystemSessionProperties.getFaultTolerantExecutionHashDistributionWriteTasksToNodesMinRatio(Session session) static intSystemSessionProperties.getFaultTolerantExecutionHashDistributionWriteTaskTargetMaxCount(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getFaultTolerantExecutionHashDistributionWriteTaskTargetSize(Session session) static intSystemSessionProperties.getFaultTolerantExecutionMaxPartitionCount(Session session) static intSystemSessionProperties.getFaultTolerantExecutionMaxTaskSplitCount(Session session) static intSystemSessionProperties.getFaultTolerantExecutionMinPartitionCount(Session session) static intSystemSessionProperties.getFaultTolerantExecutionMinPartitionCountForWrite(Session session) static doubleSystemSessionProperties.getFaultTolerantExecutionMinSourceStageProgress(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getFaultTolerantExecutionRuntimeAdaptivePartitioningMaxTaskSize(Session session) static intSystemSessionProperties.getFaultTolerantExecutionRuntimeAdaptivePartitioningPartitionCount(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getFaultTolerantExecutionSmallStageEstimationThreshold(Session session) static doubleSystemSessionProperties.getFaultTolerantExecutionSmallStageSourceSizeMultiplier(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getFaultTolerantExecutionStandardSplitSize(Session session) static doubleSystemSessionProperties.getFaultTolerantExecutionTaskMemoryEstimationQuantile(Session session) static doubleSystemSessionProperties.getFaultTolerantExecutionTaskMemoryGrowthFactor(Session session) static intSystemSessionProperties.getFilterAndProjectMinOutputPageRowCount(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getFilterAndProjectMinOutputPageSize(Session session) static doubleSystemSessionProperties.getFilterConjunctionIndependenceFactor(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getIdleWriterMinDataSizeThreshold(Session session) static intSystemSessionProperties.getInitialSplitsPerNode(Session session) SystemSessionProperties.getJoinDistributionType(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getJoinMaxBroadcastTableSize(Session session) static doubleSystemSessionProperties.getJoinMultiClauseIndependenceFactor(Session session) static longSystemSessionProperties.getJoinPartitionedBuildMinRowCount(Session session) SystemSessionProperties.getJoinReorderingStrategy(Session session) static OptionalIntSystemSessionProperties.getMaxDriversPerTask(Session session) static intSystemSessionProperties.getMaxGroupingSets(Session session) static intSystemSessionProperties.getMaxHashPartitionCount(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getMaxMemoryPerPartitionWriter(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getMaxPartialTopNMemory(Session session) static intSystemSessionProperties.getMaxRecursionDepth(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getMaxRemoteTaskRequestSize(Session session) static intSystemSessionProperties.getMaxReorderedJoins(Session session) static intSystemSessionProperties.getMaxTasksWaitingForExecutionPerQuery(Session session) static intSystemSessionProperties.getMaxTasksWaitingForNodePerStage(Session session) static intSystemSessionProperties.getMaxUnacknowledgedSplitsPerTask(Session session) static intSystemSessionProperties.getMaxWriterTaskCount(Session session) static intSystemSessionProperties.getMinHashPartitionCount(Session session) static intSystemSessionProperties.getMinHashPartitionCountForWrite(Session session) static longSystemSessionProperties.getMinInputRowsPerTask(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getMinInputSizePerTask(Session session) static io.airlift.units.DurationSystemSessionProperties.getOptimizerTimeout(Session session) static intSystemSessionProperties.getPagePartitioningBufferPoolSize(Session session) static io.airlift.units.DurationSystemSessionProperties.getQueryMaxCpuTime(Session session) static io.airlift.units.DurationSystemSessionProperties.getQueryMaxExecutionTime(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getQueryMaxMemory(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getQueryMaxMemoryPerNode(Session session) static io.airlift.units.DurationSystemSessionProperties.getQueryMaxPlanningTime(Session session) static io.airlift.units.DurationSystemSessionProperties.getQueryMaxRunTime(Session session) static Optional<io.airlift.units.DataSize> SystemSessionProperties.getQueryMaxScanPhysicalBytes(Session session) static intSystemSessionProperties.getQueryMaxStageCount(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getQueryMaxTotalMemory(Session session) static intSystemSessionProperties.getQueryPriority(Session session) static intSystemSessionProperties.getQueryRetryAttempts(Session session) static intSystemSessionProperties.getRemoteTaskGuaranteedSplitsPerRequest(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getRemoteTaskRequestSizeHeadroom(Session session) static intSystemSessionProperties.getRequiredWorkers(Session session) static io.airlift.units.DurationSystemSessionProperties.getRequiredWorkersMaxWait(Session session) static doubleSystemSessionProperties.getRetryDelayScaleFactor(Session session) static io.airlift.units.DurationSystemSessionProperties.getRetryInitialDelay(Session session) static io.airlift.units.DurationSystemSessionProperties.getRetryMaxDelay(Session session) static RetryPolicySystemSessionProperties.getRetryPolicy(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getSkewedPartitionMinDataProcessedRebalanceThreshold(Session session) SystemSessionProperties.getSpatialPartitioningTableName(Session session) static io.airlift.units.DurationSystemSessionProperties.getSplitConcurrencyAdjustmentInterval(Session session) static doubleSystemSessionProperties.getTableScanNodePartitioningMinBucketToTaskRatio(Session session) static intSystemSessionProperties.getTaskConcurrency(Session session) static intSystemSessionProperties.getTaskMaxWriterCount(Session session) static intSystemSessionProperties.getTaskMinWriterCount(Session session) static intSystemSessionProperties.getTaskRetryAttemptsPerTask(Session session) SystemSessionProperties.getTimeZoneId(Session session) static io.airlift.units.DataSizeSystemSessionProperties.getWriterScalingMinDataProcessed(Session session) static booleanSystemSessionProperties.ignoreDownStreamPreferences(Session session) static booleanSystemSessionProperties.isAdaptivePartialAggregationEnabled(Session session) static booleanSystemSessionProperties.isAllowPushdownIntoConnectors(Session session) static booleanSystemSessionProperties.isCollectPlanStatisticsForAllQueries(Session session) static booleanSystemSessionProperties.isColocatedJoinEnabled(Session session) static booleanSystemSessionProperties.isComplexExpressionPushdown(Session session) static booleanSystemSessionProperties.isDefaultFilterFactorEnabled(Session session) static booleanSystemSessionProperties.isDeterminePartitionCountForWriteEnabled(Session session) static booleanSystemSessionProperties.isDictionaryAggregationEnabled(Session session) static booleanSystemSessionProperties.isDistributedSortEnabled(Session session) static booleanSystemSessionProperties.isEnableCoordinatorDynamicFiltersDistribution(Session session) static booleanSystemSessionProperties.isEnableDynamicFiltering(Session session) static booleanSystemSessionProperties.isEnableForcedExchangeBelowGroupId(Session session) static booleanSystemSessionProperties.isEnableIntermediateAggregations(Session session) static booleanSystemSessionProperties.isEnableLargeDynamicFilters(Session session) static booleanSystemSessionProperties.isEnableStatsCalculator(Session session) static booleanSystemSessionProperties.isFaultTolerantExecutionRuntimeAdaptivePartitioningEnabled(Session session) static booleanSystemSessionProperties.isFaultTolerantExecutionSmallStageEstimationEnabled(Session session) static booleanSystemSessionProperties.isFaultTolerantExecutionSmallStageRequireNoMorePartitions(Session session) static booleanSystemSessionProperties.isFaultTolerantExecutionStageEstimationForEagerParentEnabled(Session session) static booleanSystemSessionProperties.isForceSingleNodeOutput(Session session) static booleanSystemSessionProperties.isForceSpillingOperator(Session session) static booleanSystemSessionProperties.isHideInaccessibleColumns(Session session) static booleanSystemSessionProperties.isIgnoreStatsCalculatorFailures(Session session) static booleanSystemSessionProperties.isIncrementalHashArrayLoadFactorEnabled(Session session) static booleanSystemSessionProperties.isLegacyCatalogRoles(Session session) static booleanSystemSessionProperties.isLegacyMaterializedViewGracePeriod(Session session) Deprecated.static booleanSystemSessionProperties.isMergeProjectWithValues(Session session) static booleanSystemSessionProperties.isNonEstimatablePredicateApproximationEnabled(Session session) static booleanSystemSessionProperties.isOmitDateTimeTypePrecision(Session session) static booleanSystemSessionProperties.isOptimizeDistinctAggregationEnabled(Session session) static booleanSystemSessionProperties.isOptimizeDuplicateInsensitiveJoins(Session session) static booleanSystemSessionProperties.isOptimizeHashGenerationEnabled(Session session) static booleanSystemSessionProperties.isOptimizeMetadataQueries(Session session) static booleanSystemSessionProperties.isOptimizeTopNRanking(Session session) static booleanSystemSessionProperties.isPreAggregateCaseAggregationsEnabled(Session session) static booleanSystemSessionProperties.isPredicatePushdownUseTableProperties(Session session) static booleanSystemSessionProperties.isPushAggregationThroughOuterJoin(Session session) static booleanSystemSessionProperties.isPushPartialAggregationThroughJoin(Session session) static booleanSystemSessionProperties.isPushTableWriteThroughUnion(Session session) static booleanSystemSessionProperties.isRedistributeWrites(Session session) static booleanSystemSessionProperties.isRemoteTaskAdaptiveUpdateRequestSizeEnabled(Session session) static booleanSystemSessionProperties.isRewriteFilteringSemiJoinToInnerJoin(Session session) static booleanSystemSessionProperties.isScaleWriters(Session session) static booleanSystemSessionProperties.isShareIndexLoading(Session session) static booleanSystemSessionProperties.isSkipRedundantSort(Session session) static booleanSystemSessionProperties.isSpatialJoinEnabled(Session session) static booleanSystemSessionProperties.isSpillEnabled(Session session) static booleanSystemSessionProperties.isStatisticsCpuTimerEnabled(Session session) static booleanSystemSessionProperties.isStatisticsPrecalculationForPushdownEnabled(Session session) static booleanSystemSessionProperties.isTaskScaleWritersEnabled(Session session) static booleanSystemSessionProperties.isUseCostBasedPartitioning(Session session) static booleanSystemSessionProperties.isUseExactPartitioning(Session session) static booleanSystemSessionProperties.isUsePartialDistinctLimit(Session session) static booleanSystemSessionProperties.isUsePartialTopN(Session session) static booleanSystemSessionProperties.isUsePreferredWritePartitioning(Session session) static booleanSystemSessionProperties.isUseTableScanNodePartitioning(Session session) SystemSessionProperties.markDistinctStrategy(Session session) static booleanSystemSessionProperties.preferPartialAggregation(Session session) static booleanSystemSessionProperties.preferStreamingOperators(Session session) static booleanSystemSessionProperties.resourceOvercommit(Session session) static booleanSystemSessionProperties.useLegacyWindowFilterPushdown(Session session) ModifierConstructorDescriptionFullConnectorSession(Session session, ConnectorIdentity identity) FullConnectorSession(Session session, ConnectorIdentity identity, Map<String, String> properties, CatalogHandle catalogHandle, String catalogName, SessionPropertyManager sessionPropertyManager) -
Uses of Session in io.trino.connector
Methods in io.trino.connector with parameters of type SessionModifier and TypeMethodDescriptionvoidConnectorServicesProvider.ensureCatalogsLoaded(Session session, List<CatalogProperties> catalogs) voidCoordinatorDynamicCatalogManager.ensureCatalogsLoaded(Session session, List<CatalogProperties> catalogs) voidStaticCatalogManager.ensureCatalogsLoaded(Session session, List<CatalogProperties> catalogs) voidWorkerDynamicCatalogManager.ensureCatalogsLoaded(Session session, List<CatalogProperties> expectedCatalogs) -
Uses of Session in io.trino.connector.informationschema
Constructors in io.trino.connector.informationschema with parameters of type SessionModifierConstructorDescriptionInformationSchemaPageSource(Session session, Metadata metadata, AccessControl accessControl, InformationSchemaTableHandle tableHandle, List<ColumnHandle> columns) -
Uses of Session in io.trino.cost
Methods in io.trino.cost that return SessionModifier and TypeMethodDescriptionStatsCalculator.Context.session()Returns the value of thesessionrecord component.Methods in io.trino.cost with parameters of type SessionModifier and TypeMethodDescriptionScalarStatsCalculator.calculate(Expression scalarExpression, PlanNodeStatsEstimate inputStatistics, Session session, TypeProvider types) CostCalculator.calculateCost(PlanNode node, StatsProvider stats, CostProvider sourcesCosts, Session session, TypeProvider types) Calculates cumulative cost of a node.CostCalculatorUsingExchanges.calculateCost(PlanNode node, StatsProvider stats, CostProvider sourcesCosts, Session session, TypeProvider types) CostCalculatorWithEstimatedExchanges.calculateCost(PlanNode node, StatsProvider stats, CostProvider sourcesCosts, Session session, TypeProvider types) intCostComparator.compare(Session session, PlanCostEstimate left, PlanCostEstimate right) intTaskCountEstimator.estimateHashedTaskCount(Session session) intTaskCountEstimator.estimateSourceDistributedTaskCount(Session session) FilterStatsCalculator.filterStats(PlanNodeStatsEstimate statsEstimate, Expression predicate, Session session, TypeProvider types) com.google.common.collect.Ordering<PlanCostEstimate> CostComparator.forSession(Session session) Constructors in io.trino.cost with parameters of type SessionModifierConstructorDescriptionCachingCostProvider(CostCalculator costCalculator, StatsProvider statsProvider, Session session, TypeProvider types) CachingCostProvider(CostCalculator costCalculator, StatsProvider statsProvider, Optional<Memo> memo, Session session, TypeProvider types) CachingStatsProvider(StatsCalculator statsCalculator, Session session, TypeProvider types, TableStatsProvider tableStatsProvider) CachingStatsProvider(StatsCalculator statsCalculator, Optional<Memo> memo, Lookup lookup, Session session, TypeProvider types, TableStatsProvider tableStatsProvider) CachingTableStatsProvider(Metadata metadata, Session session) Context(StatsProvider statsProvider, Lookup lookup, Session session, TypeProvider types, TableStatsProvider tableStatsProvider) Creates an instance of aContextrecord class. -
Uses of Session in io.trino.dispatcher
Methods in io.trino.dispatcher that return SessionModifier and TypeMethodDescriptionFailedDispatchQuery.getSession()LocalDispatchQuery.getSession()Methods in io.trino.dispatcher with parameters of type SessionModifier and TypeMethodDescriptionDispatchQueryFactory.createDispatchQuery(Session session, Optional<TransactionId> transactionId, String query, QueryPreparer.PreparedQuery preparedQuery, Slug slug, ResourceGroupId resourceGroup) LocalDispatchQueryFactory.createDispatchQuery(Session session, Optional<TransactionId> existingTransactionId, String query, QueryPreparer.PreparedQuery preparedQuery, Slug slug, ResourceGroupId resourceGroup) FailedDispatchQueryFactory.createFailedDispatchQuery(Session session, String query, Optional<String> preparedQuery, Optional<ResourceGroupId> resourceGroup, Throwable throwable) Constructors in io.trino.dispatcher with parameters of type SessionModifierConstructorDescriptionFailedDispatchQuery(Session session, String query, Optional<String> preparedQuery, URI self, Optional<ResourceGroupId> resourceGroup, Throwable cause, Executor executor, NodeVersion version) -
Uses of Session in io.trino.execution
Methods in io.trino.execution that return SessionModifier and TypeMethodDescriptionQueryManager.getQuerySession(QueryId queryId) SqlQueryManager.getQuerySession(QueryId queryId) DataDefinitionExecution.getSession()ManagedQueryExecution.getSession()QueryStateMachine.getSession()QueryTracker.TrackedQuery.getSession()SqlQueryExecution.getSession()Methods in io.trino.execution with parameters of type SessionModifier and TypeMethodDescriptionstatic QueryStateMachineQueryStateMachine.begin(Optional<TransactionId> existingTransactionId, String query, Optional<String> preparedQuery, Session session, URI self, ResourceGroupId resourceGroup, boolean transactionControl, TransactionManager transactionManager, AccessControl accessControl, Executor executor, Metadata metadata, WarningCollector warningCollector, PlanOptimizersStatsCollector queryStatsCollector, Optional<QueryType> queryType, boolean faultTolerantExecutionExchangeEncryptionEnabled, NodeVersion version) Created QueryStateMachines must be transitioned to terminal states to clean up resources.SqlTaskExecutionFactory.create(Session session, io.opentelemetry.api.trace.Span taskSpan, QueryContext queryContext, TaskStateMachine taskStateMachine, OutputBuffer outputBuffer, PlanFragment fragment, Runnable notifyStatusChanged) MemoryTrackingRemoteTaskFactory.createRemoteTask(Session session, io.opentelemetry.api.trace.Span stageSpan, TaskId taskId, InternalNode node, boolean speculative, PlanFragment fragment, com.google.common.collect.Multimap<PlanNodeId, Split> initialSplits, OutputBuffers outputBuffers, NodeTaskMap.PartitionedSplitCountTracker partitionedSplitCountTracker, Set<DynamicFilterId> outboundDynamicFilterIds, Optional<io.airlift.units.DataSize> estimatedMemory, boolean summarizeTaskInfo) RemoteTaskFactory.createRemoteTask(Session session, io.opentelemetry.api.trace.Span stageSpan, TaskId taskId, InternalNode node, boolean speculative, PlanFragment fragment, com.google.common.collect.Multimap<PlanNodeId, Split> initialSplits, OutputBuffers outputBuffers, NodeTaskMap.PartitionedSplitCountTracker partitionedSplitCountTracker, Set<DynamicFilterId> outboundDynamicFilterIds, Optional<io.airlift.units.DataSize> estimatedMemory, boolean summarizeTaskInfo) static SqlStageSqlStage.createSqlStage(StageId stageId, PlanFragment fragment, Map<PlanNodeId, TableInfo> tables, RemoteTaskFactory remoteTaskFactory, Session session, boolean summarizeTaskInfo, NodeTaskMap nodeTaskMap, Executor stateMachineExecutor, io.opentelemetry.api.trace.Tracer tracer, io.opentelemetry.api.trace.Span schedulerSpan, SplitSchedulerStats schedulerStats) static Map<PlanNodeId, TableInfo> TableInfo.extract(Session session, Metadata metadata, PlanFragment fragment) QueryPreparer.prepareQuery(Session session, Statement wrappedStatement) QueryPreparer.prepareQuery(Session session, String query) SqlTask.updateTask(Session session, io.opentelemetry.api.trace.Span stageSpan, Optional<PlanFragment> fragment, List<SplitAssignment> splitAssignments, OutputBuffers outputBuffers, Map<DynamicFilterId, Domain> dynamicFilterDomains, boolean speculative) SqlTaskManager.updateTask(Session session, TaskId taskId, io.opentelemetry.api.trace.Span stageSpan, Optional<PlanFragment> fragment, List<SplitAssignment> splitAssignments, OutputBuffers outputBuffers, Map<DynamicFilterId, Domain> dynamicFilterDomains, boolean speculative) Updates the task plan, splitAssignments and output buffers. -
Uses of Session in io.trino.execution.scheduler
Methods in io.trino.execution.scheduler with parameters of type SessionModifier and TypeMethodDescriptionNodeScheduler.createNodeSelector(Session session, Optional<CatalogHandle> catalogHandle) NodeSelectorFactory.createNodeSelector(Session session, Optional<CatalogHandle> catalogHandle) TopologyAwareNodeSelectorFactory.createNodeSelector(Session session, Optional<CatalogHandle> catalogHandle) UniformNodeSelectorFactory.createNodeSelector(Session session, Optional<CatalogHandle> catalogHandle) -
Uses of Session in io.trino.execution.scheduler.faulttolerant
Methods in io.trino.execution.scheduler.faulttolerant with parameters of type SessionModifier and TypeMethodDescriptionio.trino.execution.scheduler.faulttolerant.EventDrivenTaskSourceEventDrivenTaskSourceFactory.create(Session session, io.opentelemetry.api.trace.Span stageSpan, PlanFragment fragment, Map<PlanFragmentId, Exchange> sourceExchanges, FaultTolerantPartitioningScheme sourcePartitioningScheme, LongConsumer getSplitTimeRecorder, Map<PlanNodeId, OutputDataSizeEstimate> outputDataSizeEstimates) ExponentialGrowthPartitionMemoryEstimator.Factory.createPartitionMemoryEstimator(Session session, PlanFragment planFragment, Function<PlanFragmentId, PlanFragment> sourceFragmentLookup) NoMemoryAwarePartitionMemoryEstimator.Factory.createPartitionMemoryEstimator(Session session, PlanFragment planFragment, Function<PlanFragmentId, PlanFragment> sourceFragmentLookup) PartitionMemoryEstimatorFactory.createPartitionMemoryEstimator(Session session, PlanFragment planFragment, Function<PlanFragmentId, PlanFragment> sourceFragmentLookup) BinPackingNodeAllocatorService.getNodeAllocator(Session session) NodeAllocatorService.getNodeAllocator(Session session) Constructors in io.trino.execution.scheduler.faulttolerant with parameters of type SessionModifierConstructorDescriptionFaultTolerantPartitioningSchemeFactory(NodePartitioningManager nodePartitioningManager, Session session, int maxPartitionCount) -
Uses of Session in io.trino.memory
Methods in io.trino.memory with parameters of type SessionModifier and TypeMethodDescriptionQueryContext.addTaskContext(TaskStateMachine taskStateMachine, Session session, Runnable notifyStatusChanged, boolean perOperatorCpuTimerEnabled, boolean cpuTimerEnabled) -
Uses of Session in io.trino.metadata
Methods in io.trino.metadata with parameters of type SessionModifier and TypeMethodDescriptionvoidMetadata.addColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnMetadata column) Add the specified column to the table.voidMetadataManager.addColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnMetadata column) voidMetadata.addField(Session session, TableHandle tableHandle, List<String> parentPath, String fieldName, Type type, boolean ignoreExisting) Add the specified field to the column.voidMetadataManager.addField(Session session, TableHandle tableHandle, List<String> parentPath, String fieldName, Type type, boolean ignoreExisting) voidLanguageFunctionManager.addInlineFunction(Session session, String sql, AccessControl accessControl) Metadata.applyAggregation(Session session, TableHandle table, List<AggregateFunction> aggregations, Map<String, ColumnHandle> assignments, List<List<ColumnHandle>> groupingSets) MetadataManager.applyAggregation(Session session, TableHandle table, List<AggregateFunction> aggregations, Map<String, ColumnHandle> assignments, List<List<ColumnHandle>> groupingSets) Metadata.applyDelete(Session session, TableHandle tableHandle) Push delete into connectorMetadataManager.applyDelete(Session session, TableHandle table) Metadata.applyFilter(Session session, TableHandle table, Constraint constraint) MetadataManager.applyFilter(Session session, TableHandle table, Constraint constraint) Metadata.applyJoin(Session session, JoinType joinType, TableHandle left, TableHandle right, ConnectorExpression joinCondition, Map<String, ColumnHandle> leftAssignments, Map<String, ColumnHandle> rightAssignments, JoinStatistics statistics) MetadataManager.applyJoin(Session session, JoinType joinType, TableHandle left, TableHandle right, ConnectorExpression joinCondition, Map<String, ColumnHandle> leftAssignments, Map<String, ColumnHandle> rightAssignments, JoinStatistics statistics) Metadata.applyLimit(Session session, TableHandle table, long limit) MetadataManager.applyLimit(Session session, TableHandle table, long limit) Metadata.applyProjection(Session session, TableHandle table, List<ConnectorExpression> projections, Map<String, ColumnHandle> assignments) MetadataManager.applyProjection(Session session, TableHandle table, List<ConnectorExpression> projections, Map<String, ColumnHandle> assignments) Metadata.applySample(Session session, TableHandle table, SampleType sampleType, double sampleRatio) MetadataManager.applySample(Session session, TableHandle table, SampleType sampleType, double sampleRatio) Metadata.applyTableFunction(Session session, TableFunctionHandle handle) MetadataManager.applyTableFunction(Session session, TableFunctionHandle handle) Metadata.applyTableScanRedirect(Session session, TableHandle tableHandle) Returns the result of redirecting the table scan on a given table to a different table.MetadataManager.applyTableScanRedirect(Session session, TableHandle tableHandle) Metadata.applyTopN(Session session, TableHandle handle, long topNCount, List<SortItem> sortItems, Map<String, ColumnHandle> assignments) MetadataManager.applyTopN(Session session, TableHandle table, long topNCount, List<SortItem> sortItems, Map<String, ColumnHandle> assignments) Metadata.applyUpdate(Session session, TableHandle tableHandle, Map<ColumnHandle, Constant> assignments) Push update into connectorMetadataManager.applyUpdate(Session session, TableHandle table, Map<ColumnHandle, Constant> assignments) Metadata.beginCreateTable(Session session, String catalogName, ConnectorTableMetadata tableMetadata, Optional<TableLayout> layout, boolean replace) Begin the atomic creation of a table with data.MetadataManager.beginCreateTable(Session session, String catalogName, ConnectorTableMetadata tableMetadata, Optional<TableLayout> layout, boolean replace) Metadata.beginInsert(Session session, TableHandle tableHandle, List<ColumnHandle> columns) Begin insert queryMetadataManager.beginInsert(Session session, TableHandle tableHandle, List<ColumnHandle> columns) Metadata.beginMerge(Session session, TableHandle tableHandle) Begin merge queryMetadataManager.beginMerge(Session session, TableHandle tableHandle) voidMetadata.beginQuery(Session session) Initialize before query beginsvoidMetadataManager.beginQuery(Session session) Metadata.beginRefreshMaterializedView(Session session, TableHandle tableHandle, List<TableHandle> sourceTableHandles) Begin refresh materialized view queryMetadataManager.beginRefreshMaterializedView(Session session, TableHandle tableHandle, List<TableHandle> sourceTableHandles) Metadata.beginStatisticsCollection(Session session, TableHandle tableHandle) Begin statistics collectionMetadataManager.beginStatisticsCollection(Session session, TableHandle tableHandle) Metadata.beginTableExecute(Session session, TableExecuteHandle handle, TableHandle updatedSourceTableHandle) MetadataManager.beginTableExecute(Session session, TableExecuteHandle tableExecuteHandle, TableHandle sourceHandle) booleanMetadata.catalogExists(Session session, String catalogName) booleanMetadataManager.catalogExists(Session session, String catalogName) static voidMetadataUtil.checkRoleExists(Session session, Node node, Metadata metadata, TrinoPrincipal principal, Optional<String> catalog) static voidMetadataUtil.checkRoleExists(Session session, Node node, Metadata metadata, String role, Optional<String> catalog) voidMetadata.cleanupQuery(Session session) Cleanup after a query.voidMetadataManager.cleanupQuery(Session session) voidDisabledSystemSecurityMetadata.columnCreated(Session session, CatalogSchemaTableName table, String column) voidSystemSecurityMetadata.columnCreated(Session session, CatalogSchemaTableName table, String column) A column was createdvoidDisabledSystemSecurityMetadata.columnDropped(Session session, CatalogSchemaTableName table, String column) voidSystemSecurityMetadata.columnDropped(Session session, CatalogSchemaTableName table, String column) A column was droppedvoidDisabledSystemSecurityMetadata.columnRenamed(Session session, CatalogSchemaTableName table, String oldName, String newName) voidSystemSecurityMetadata.columnRenamed(Session session, CatalogSchemaTableName table, String oldName, String newName) A column was renamedvoidDisabledSystemSecurityMetadata.columnTypeChanged(Session session, CatalogSchemaTableName table, String column, String oldType, String newType) voidSystemSecurityMetadata.columnTypeChanged(Session session, CatalogSchemaTableName table, String column, String oldType, String newType) Column type was changedstatic CatalogSchemaNameMetadataUtil.createCatalogSchemaName(Session session, Node node, Optional<QualifiedName> schema) voidMetadata.createLanguageFunction(Session session, QualifiedObjectName name, LanguageFunction function, boolean replace) voidMetadataManager.createLanguageFunction(Session session, QualifiedObjectName name, LanguageFunction function, boolean replace) voidMetadata.createMaterializedView(Session session, QualifiedObjectName viewName, MaterializedViewDefinition definition, Map<String, Object> properties, boolean replace, boolean ignoreExisting) Creates the specified materialized view with the specified view definition.voidMetadataManager.createMaterializedView(Session session, QualifiedObjectName viewName, MaterializedViewDefinition definition, Map<String, Object> properties, boolean replace, boolean ignoreExisting) static TrinoPrincipalMetadataUtil.createPrincipal(Session session, GrantorSpecification specification) static QualifiedObjectNameMetadataUtil.createQualifiedObjectName(Session session, Node node, QualifiedName name) voidDisabledSystemSecurityMetadata.createRole(Session session, String role, Optional<TrinoPrincipal> grantor) voidMetadata.createRole(Session session, String role, Optional<TrinoPrincipal> grantor, Optional<String> catalog) Creates the specified role in the specified catalog.voidMetadataManager.createRole(Session session, String role, Optional<TrinoPrincipal> grantor, Optional<String> catalog) voidSystemSecurityMetadata.createRole(Session session, String role, Optional<TrinoPrincipal> grantor) Creates the specified role.voidMetadata.createSchema(Session session, CatalogSchemaName schema, Map<String, Object> properties, TrinoPrincipal principal) Creates a schema.voidMetadataManager.createSchema(Session session, CatalogSchemaName schema, Map<String, Object> properties, TrinoPrincipal principal) voidMetadata.createTable(Session session, String catalogName, ConnectorTableMetadata tableMetadata, SaveMode saveMode) Creates a table using the specified table metadata.voidMetadataManager.createTable(Session session, String catalogName, ConnectorTableMetadata tableMetadata, SaveMode saveMode) voidMetadata.createView(Session session, QualifiedObjectName viewName, ViewDefinition definition, boolean replace) Creates the specified view with the specified view definition.voidMetadataManager.createView(Session session, QualifiedObjectName viewName, ViewDefinition definition, boolean replace) booleanMetadata.delegateMaterializedViewRefreshToConnector(Session session, QualifiedObjectName viewName) Returns true if materialized view refresh should be delegated to connectorbooleanMetadataManager.delegateMaterializedViewRefreshToConnector(Session session, QualifiedObjectName viewName) voidDisabledSystemSecurityMetadata.denyEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee) default voidMetadata.denyEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee) Deny the specified privileges to the specified principal on the specified entity.voidMetadataManager.denyEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee) default voidSystemSecurityMetadata.denyEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee) Deny the specified privilege to the specified principal on the specified entityvoidDisabledSystemSecurityMetadata.denySchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee) voidMetadata.denySchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee) Deny the specified privilege to the specified principal on the specified schema.voidMetadataManager.denySchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee) voidSystemSecurityMetadata.denySchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee) Denys the specified privilege to the specified user on the specified schema.voidDisabledSystemSecurityMetadata.denyTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee) voidMetadata.denyTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee) Deny the specified privilege to the specified principal on the specified tablevoidMetadataManager.denyTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee) voidSystemSecurityMetadata.denyTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee) Denys the specified privilege to the specified user on the specified tablevoidMetadata.dropColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnHandle column) Drop the specified column.voidMetadataManager.dropColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnHandle column) voidMetadata.dropField(Session session, TableHandle tableHandle, ColumnHandle column, List<String> fieldPath) Drop the specified field from the column.voidMetadataManager.dropField(Session session, TableHandle tableHandle, ColumnHandle column, List<String> fieldPath) voidMetadata.dropLanguageFunction(Session session, QualifiedObjectName name, String signatureToken) voidMetadataManager.dropLanguageFunction(Session session, QualifiedObjectName name, String signatureToken) voidMetadata.dropMaterializedView(Session session, QualifiedObjectName viewName) Drops the specified materialized view.voidMetadataManager.dropMaterializedView(Session session, QualifiedObjectName viewName) voidMetadata.dropNotNullConstraint(Session session, TableHandle tableHandle, ColumnHandle column) Drop a not null constraint on the specified column.voidMetadataManager.dropNotNullConstraint(Session session, TableHandle tableHandle, ColumnHandle column) voidvoidDrops the specified role in the specified catalog.voidvoidDrops the specified role.voidMetadata.dropSchema(Session session, CatalogSchemaName schema, boolean cascade) Drops the specified schema.voidMetadataManager.dropSchema(Session session, CatalogSchemaName schema, boolean cascade) voidMetadata.dropTable(Session session, TableHandle tableHandle, CatalogSchemaTableName tableName) Drops the specified tablevoidMetadataManager.dropTable(Session session, TableHandle tableHandle, CatalogSchemaTableName tableName) voidMetadata.dropView(Session session, QualifiedObjectName viewName) Drops the specified view.voidMetadataManager.dropView(Session session, QualifiedObjectName viewName) PropertyUtil.evaluateProperties(Iterable<Property> setProperties, Session session, PlannerContext plannerContext, AccessControl accessControl, Map<NodeRef<Parameter>, Expression> parameters, boolean includeAllProperties, Map<String, PropertyMetadata<?>> metadata, ErrorCodeSupplier errorCode, String propertyTypeDescription) static ObjectPropertyUtil.evaluateProperty(String propertyName, Type propertyType, Expression expression, Session session, PlannerContext plannerContext, AccessControl accessControl, Map<NodeRef<Parameter>, Expression> parameters, ErrorCodeSupplier errorCode, String propertyTypeDescription) static ObjectSessionPropertyManager.evaluatePropertyValue(Expression expression, Type expectedType, Session session, PlannerContext plannerContext, AccessControl accessControl, Map<NodeRef<Parameter>, Expression> parameters) Metadata.executeDelete(Session session, TableHandle tableHandle) Execute delete in connectorMetadataManager.executeDelete(Session session, TableHandle table) voidMetadata.executeTableExecute(Session session, TableExecuteHandle handle) voidMetadataManager.executeTableExecute(Session session, TableExecuteHandle tableExecuteHandle) Metadata.executeUpdate(Session session, TableHandle tableHandle) Execute update in connectorMetadataManager.executeUpdate(Session session, TableHandle table) Metadata.finishCreateTable(Session session, OutputTableHandle tableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) Finish a table creation with data after the data is written.MetadataManager.finishCreateTable(Session session, OutputTableHandle tableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) Metadata.finishInsert(Session session, InsertTableHandle tableHandle, List<TableHandle> sourceTableHandles, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) Finish insert queryMetadataManager.finishInsert(Session session, InsertTableHandle tableHandle, List<TableHandle> sourceTableHandles, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) voidMetadata.finishMerge(Session session, MergeHandle tableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) Finish merge queryvoidMetadataManager.finishMerge(Session session, MergeHandle mergeHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) Metadata.finishRefreshMaterializedView(Session session, TableHandle tableHandle, InsertTableHandle insertTableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics, List<TableHandle> sourceTableHandles, List<String> sourceTableFunctions) Finish refresh materialized view queryMetadataManager.finishRefreshMaterializedView(Session session, TableHandle tableHandle, InsertTableHandle insertHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics, List<TableHandle> sourceTableHandles, List<String> sourceTableFunctions) voidMetadata.finishStatisticsCollection(Session session, AnalyzeTableHandle tableHandle, Collection<ComputedStatistics> computedStatistics) Finish statistics collectionvoidMetadataManager.finishStatisticsCollection(Session session, AnalyzeTableHandle tableHandle, Collection<ComputedStatistics> computedStatistics) voidMetadata.finishTableExecute(Session session, TableExecuteHandle handle, Collection<io.airlift.slice.Slice> fragments, List<Object> tableExecuteState) voidMetadataManager.finishTableExecute(Session session, TableExecuteHandle tableExecuteHandle, Collection<io.airlift.slice.Slice> fragments, List<Object> tableExecuteState) Metadata.getAggregationFunctionMetadata(Session session, ResolvedFunction resolvedFunction) MetadataManager.getAggregationFunctionMetadata(Session session, ResolvedFunction resolvedFunction) SessionPropertyManager.getAllSessionProperties(Session session, List<CatalogInfo> catalogInfos) CatalogMetadata.getCatalogHandle(Session session, QualifiedObjectName table) Metadata.getCatalogHandle(Session session, String catalogName) Returns a catalog handle for the specified catalog name.MetadataManager.getCatalogHandle(Session session, String catalogName) Metadata.getColumnHandles(Session session, TableHandle tableHandle) Gets all of the columns on the specified table, or an empty map if the columns cannot be enumerated.MetadataManager.getColumnHandles(Session session, TableHandle tableHandle) Metadata.getColumnMetadata(Session session, TableHandle tableHandle, ColumnHandle columnHandle) Gets the metadata for the specified table column.MetadataManager.getColumnMetadata(Session session, TableHandle tableHandle, ColumnHandle columnHandle) Metadata.getCommonPartitioning(Session session, PartitioningHandle left, PartitioningHandle right) Return a partitioning handle which the connector can transparently convert bothleftandrightinto.MetadataManager.getCommonPartitioning(Session session, PartitioningHandle left, PartitioningHandle right) Metadata.getConnectorCapabilities(Session session, CatalogHandle catalogHandle) MetadataManager.getConnectorCapabilities(Session session, CatalogHandle catalogHandle) CatalogTransaction.getConnectorMetadata(Session session) LanguageFunctionManager.getDependencies(Session session, FunctionId functionId, AccessControl accessControl) Metadata.getFunctionDependencies(Session session, CatalogHandle catalogHandle, FunctionId functionId, BoundSignature boundSignature) MetadataManager.getFunctionDependencies(Session session, CatalogHandle catalogHandle, FunctionId functionId, BoundSignature boundSignature) LanguageFunctionManager.getFunctionMetadata(Session session, FunctionId functionId) DisabledSystemSecurityMetadata.getFunctionRunAsIdentity(Session session, CatalogSchemaFunctionName functionName) SystemSecurityMetadata.getFunctionRunAsIdentity(Session session, CatalogSchemaFunctionName functionName) Get the identity to run the function asLanguageFunctionManager.getFunctions(Session session, CatalogHandle catalogHandle, SchemaFunctionName name, LanguageFunctionManager.LanguageFunctionLoader languageFunctionLoader, LanguageFunctionManager.RunAsIdentityLoader identityLoader) Metadata.getFunctions(Session session, CatalogSchemaFunctionName catalogSchemaFunctionName) MetadataManager.getFunctions(Session session, CatalogSchemaFunctionName name) Metadata.getInfo(Session session, TableHandle handle) MetadataManager.getInfo(Session session, TableHandle handle) Metadata.getInsertLayout(Session session, TableHandle target) MetadataManager.getInsertLayout(Session session, TableHandle table) Metadata.getInsertWriterScalingOptions(Session session, TableHandle tableHandle) Returns writer scaling options for the specified table.MetadataManager.getInsertWriterScalingOptions(Session session, TableHandle tableHandle) Metadata.getLayoutForTableExecute(Session session, TableExecuteHandle tableExecuteHandle) MetadataManager.getLayoutForTableExecute(Session session, TableExecuteHandle tableExecuteHandle) Metadata.getMaterializedView(Session session, QualifiedObjectName viewName) Returns the materialized view definition for the specified view name.MetadataManager.getMaterializedView(Session session, QualifiedObjectName viewName) Metadata.getMaterializedViewFreshness(Session session, QualifiedObjectName name) Method to get difference between the states of table at two different points in time/or as of given token-ids.MetadataManager.getMaterializedViewFreshness(Session session, QualifiedObjectName viewName) Metadata.getMaterializedViewProperties(Session session, QualifiedObjectName objectName, MaterializedViewDefinition materializedViewDefinition) MetadataManager.getMaterializedViewProperties(Session session, QualifiedObjectName viewName, MaterializedViewDefinition materializedViewDefinition) Metadata.getMaterializedViews(Session session, QualifiedTablePrefix prefix) Get the materialized view definitions that match the specified table prefix (never null).static Map<SchemaTableName, ViewInfo> MetadataListing.getMaterializedViews(Session session, Metadata metadata, AccessControl accessControl, QualifiedTablePrefix prefix) MetadataManager.getMaterializedViews(Session session, QualifiedTablePrefix prefix) Metadata.getMaxWriterTasks(Session session, String catalogName) Returns maximum number of tasks that can be created while writing data to specific connector.MetadataManager.getMaxWriterTasks(Session session, String catalogName) Metadata.getMergeRowIdColumnHandle(Session session, TableHandle tableHandle) Get the column handle that will generate row IDs for the merge operation.MetadataManager.getMergeRowIdColumnHandle(Session session, TableHandle tableHandle) CatalogMetadata.getMetadata(Session session) CatalogMetadata.getMetadataFor(Session session, CatalogHandle catalogHandle) Metadata.getNewTableLayout(Session session, String catalogName, ConnectorTableMetadata tableMetadata) MetadataManager.getNewTableLayout(Session session, String catalogName, ConnectorTableMetadata tableMetadata) Metadata.getNewTableWriterScalingOptions(Session session, QualifiedObjectName tableName, Map<String, Object> tableProperties) Returns writer scaling options for the specified table.MetadataManager.getNewTableWriterScalingOptions(Session session, QualifiedObjectName tableName, Map<String, Object> tableProperties) TableProceduresPropertyManager.getProperties(String catalogName, CatalogHandle catalogHandle, String procedureName, Map<String, Expression> sqlPropertyValues, Session session, PlannerContext plannerContext, AccessControl accessControl, Map<NodeRef<Parameter>, Expression> parameters) Metadata.getRedirectionAwareTableHandle(Session session, QualifiedObjectName tableName) Get the target table handle after performing redirection.Metadata.getRedirectionAwareTableHandle(Session session, QualifiedObjectName tableName, Optional<TableVersion> startVersion, Optional<TableVersion> endVersion) Get the target table handle after performing redirection with a table version.MetadataManager.getRedirectionAwareTableHandle(Session session, QualifiedObjectName tableName) MetadataManager.getRedirectionAwareTableHandle(Session session, QualifiedObjectName tableName, Optional<TableVersion> startVersion, Optional<TableVersion> endVersion) Metadata.getRelationTypes(Session session, QualifiedTablePrefix prefix) Get the relation names that match the specified table prefix (never null).static Map<SchemaTableName, RelationType> MetadataListing.getRelationTypes(Session session, Metadata metadata, AccessControl accessControl, QualifiedTablePrefix prefix) MetadataManager.getRelationTypes(Session session, QualifiedTablePrefix prefix) static CatalogHandleMetadataUtil.getRequiredCatalogHandle(Metadata metadata, Session session, Node node, String catalogName) Metadata.getRowChangeParadigm(Session session, TableHandle tableHandle) Return the row update paradigm supported by the connector on the table or throw an exception if row change is not supported.MetadataManager.getRowChangeParadigm(Session session, TableHandle tableHandle) DisabledSystemSecurityMetadata.getSchemaOwner(Session session, CatalogSchemaName schema) Metadata.getSchemaOwner(Session session, CatalogSchemaName schemaName) Gets the schema owner for the specified schema.MetadataManager.getSchemaOwner(Session session, CatalogSchemaName schemaName) SystemSecurityMetadata.getSchemaOwner(Session session, CatalogSchemaName schema) Set the owner of the specified schemaMetadata.getSchemaProperties(Session session, CatalogSchemaName schemaName) Gets the schema properties for the specified schema.MetadataManager.getSchemaProperties(Session session, CatalogSchemaName schemaName) Metadata.getStatisticsCollectionMetadata(Session session, TableHandle tableHandle, Map<String, Object> analyzeProperties) Describe statistics that must be collected during a statistics collectionMetadataManager.getStatisticsCollectionMetadata(Session session, TableHandle tableHandle, Map<String, Object> analyzeProperties) Metadata.getStatisticsCollectionMetadataForWrite(Session session, CatalogHandle catalogHandle, ConnectorTableMetadata tableMetadata) Describes statistics that must be collected during a write.MetadataManager.getStatisticsCollectionMetadataForWrite(Session session, CatalogHandle catalogHandle, ConnectorTableMetadata tableMetadata) Metadata.getSupportedType(Session session, CatalogHandle catalogHandle, Map<String, Object> tableProperties, Type type) Return the effectiveTypethat is supported by the connector for the given type, ifOptional.empty()is returned, the type will be used as is during table creation which may or may not be supported by the connector.MetadataManager.getSupportedType(Session session, CatalogHandle catalogHandle, Map<String, Object> tableProperties, Type type) Metadata.getSystemTable(Session session, QualifiedObjectName tableName) MetadataManager.getSystemTable(Session session, QualifiedObjectName tableName) Metadata.getTableHandle(Session session, QualifiedObjectName tableName) Returns a table handle for the specified table name.Metadata.getTableHandle(Session session, QualifiedObjectName tableName, Optional<TableVersion> startVersion, Optional<TableVersion> endVersion) Returns a table handle for the specified table name with a specified versionMetadataManager.getTableHandle(Session session, QualifiedObjectName table) MetadataManager.getTableHandle(Session session, QualifiedObjectName table, Optional<TableVersion> startVersion, Optional<TableVersion> endVersion) Metadata.getTableHandleForExecute(Session session, TableHandle tableHandle, String procedureName, Map<String, Object> executeProperties) MetadataManager.getTableHandleForExecute(Session session, TableHandle tableHandle, String procedure, Map<String, Object> executeProperties) Metadata.getTableMetadata(Session session, TableHandle tableHandle) Return the metadata for the specified table handle.MetadataManager.getTableMetadata(Session session, TableHandle tableHandle) Metadata.getTableName(Session session, TableHandle tableHandle) MetadataManager.getTableName(Session session, TableHandle tableHandle) Metadata.getTableProperties(Session session, TableHandle handle) MetadataManager.getTableProperties(Session session, TableHandle handle) Metadata.getTableSchema(Session session, TableHandle tableHandle) Return table schema definition for the specified table handle.MetadataManager.getTableSchema(Session session, TableHandle tableHandle) Metadata.getTableStatistics(Session session, TableHandle tableHandle) Return statistics for specified table.MetadataManager.getTableStatistics(Session session, TableHandle tableHandle) Metadata.getUpdateLayout(Session session, TableHandle tableHandle) Get the physical layout for updated or deleted rows of a MERGE operation.MetadataManager.getUpdateLayout(Session session, TableHandle tableHandle) Metadata.getView(Session session, QualifiedObjectName viewName) Returns the view definition for the specified view name.MetadataManager.getView(Session session, QualifiedObjectName viewName) DisabledSystemSecurityMetadata.getViewRunAsIdentity(Session session, CatalogSchemaTableName view) SystemSecurityMetadata.getViewRunAsIdentity(Session session, CatalogSchemaTableName viewName) Get the identity to run the view asMetadata.getViews(Session session, QualifiedTablePrefix prefix) Get the view definitions that match the specified table prefix (never null).static Map<SchemaTableName, ViewInfo> MetadataListing.getViews(Session session, Metadata metadata, AccessControl accessControl, QualifiedTablePrefix prefix) MetadataManager.getViews(Session session, QualifiedTablePrefix prefix) voidDisabledSystemSecurityMetadata.grantEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee, boolean grantOption) default voidMetadata.grantEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee, boolean grantOption) Grants the specified privileges to the specified user on the specified grantee.voidMetadataManager.grantEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee, boolean grantOption) default voidSystemSecurityMetadata.grantEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee, boolean grantOption) Grants the specified privilege to the specified user on the specified entityvoidDisabledSystemSecurityMetadata.grantRoles(Session session, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor) voidMetadata.grantRoles(Session session, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor, Optional<String> catalog) Grants the specified roles to the specified grantees in the specified catalogvoidMetadataManager.grantRoles(Session session, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor, Optional<String> catalog) voidSystemSecurityMetadata.grantRoles(Session session, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor) Grants the specified roles to the specified grantees.voidDisabledSystemSecurityMetadata.grantSchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) voidMetadata.grantSchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Grants the specified privilege to the specified user on the specified schema.voidMetadataManager.grantSchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) voidSystemSecurityMetadata.grantSchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Grants the specified privilege to the specified user on the specified schema.voidDisabledSystemSecurityMetadata.grantTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) voidMetadata.grantTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Grants the specified privilege to the specified user on the specified tablevoidMetadataManager.grantTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) voidSystemSecurityMetadata.grantTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Grants the specified privilege to the specified user on the specified tablebooleanFunctionResolver.isAggregationFunction(Session session, QualifiedName name, AccessControl accessControl) Is the named function an aggregation function? This does not need type parameters because overloads between aggregation and other function types are not allowed.booleanMetadata.isCatalogManagedSecurity(Session session, String catalog) Does the specified catalog manage security directly, or does it use system security management?booleanMetadataManager.isCatalogManagedSecurity(Session session, String catalog) default booleanMetadata.isMaterializedView(Session session, QualifiedObjectName viewName) Is the specified table a materialized view.booleanMetadataManager.isMaterializedView(Session session, QualifiedObjectName viewName) default booleanMetadata.isView(Session session, QualifiedObjectName viewName) Is the specified table a view.booleanMetadataManager.isView(Session session, QualifiedObjectName viewName) booleanFunctionResolver.isWindowFunction(Session session, QualifiedName name, AccessControl accessControl) booleanMetadata.languageFunctionExists(Session session, QualifiedObjectName name, String signatureToken) booleanMetadataManager.languageFunctionExists(Session session, QualifiedObjectName name, String signatureToken) DisabledSystemSecurityMetadata.listApplicableRoles(Session session, TrinoPrincipal principal) Metadata.listApplicableRoles(Session session, TrinoPrincipal principal, Optional<String> catalog) List applicable roles, including the transitive grants, for the specified principalMetadataManager.listApplicableRoles(Session session, TrinoPrincipal principal, Optional<String> catalog) SystemSecurityMetadata.listApplicableRoles(Session session, TrinoPrincipal principal) List applicable roles, including the transitive grants, for the specified principalMetadataListing.listCatalogNames(Session session, Metadata metadata, AccessControl accessControl, Domain catalogDomain) Metadata.listCatalogs(Session session) Gets all the loaded catalogsstatic List<CatalogInfo> MetadataListing.listCatalogs(Session session, Metadata metadata, AccessControl accessControl) MetadataManager.listCatalogs(Session session) Metadata.listEnabledRoles(Session session, String catalog) List applicable roles, including the transitive grants, in given catalogMetadataManager.listEnabledRoles(Session session, String catalog) Metadata.listFunctions(Session session, CatalogSchemaName schema) MetadataManager.listFunctions(Session session, CatalogSchemaName schema) Metadata.listGlobalFunctions(Session session) MetadataManager.listGlobalFunctions(Session session) Metadata.listMaterializedViews(Session session, QualifiedTablePrefix prefix) Get the names that match the specified table prefix (never null).static Set<SchemaTableName> MetadataListing.listMaterializedViews(Session session, Metadata metadata, AccessControl accessControl, QualifiedTablePrefix prefix) MetadataManager.listMaterializedViews(Session session, QualifiedTablePrefix prefix) Metadata.listRelationComments(Session session, String catalogName, Optional<String> schemaName, UnaryOperator<Set<SchemaTableName>> relationFilter) Gets the comments metadata for all relations (tables, views, materialized views) that match the specified prefix.MetadataManager.listRelationComments(Session session, String catalogName, Optional<String> schemaName, UnaryOperator<Set<SchemaTableName>> relationFilter) DisabledSystemSecurityMetadata.listRoleGrants(Session session, TrinoPrincipal principal) Metadata.listRoleGrants(Session session, Optional<String> catalog, TrinoPrincipal principal) List roles grants in the specified catalog for a given principal, not recursively.MetadataManager.listRoleGrants(Session session, Optional<String> catalog, TrinoPrincipal principal) SystemSecurityMetadata.listRoleGrants(Session session, TrinoPrincipal principal) List roles grants for a given principal, not recursively.List available roles in specified catalog.List available roles.Metadata.listSchemaNames(Session session, String catalogName) MetadataManager.listSchemaNames(Session session, String catalogName) MetadataListing.listSchemas(Session session, Metadata metadata, AccessControl accessControl, String catalogName) MetadataListing.listSchemas(Session session, Metadata metadata, AccessControl accessControl, String catalogName, Optional<String> schemaName) Metadata.listTableColumns(Session session, QualifiedTablePrefix prefix, UnaryOperator<Set<SchemaTableName>> relationFilter) Gets the columns metadata for all tables that match the specified prefix.static Map<SchemaTableName, List<ColumnMetadata>> MetadataListing.listTableColumns(Session session, Metadata metadata, AccessControl accessControl, QualifiedTablePrefix prefix) MetadataManager.listTableColumns(Session session, QualifiedTablePrefix prefix, UnaryOperator<Set<SchemaTableName>> relationFilter) DisabledSystemSecurityMetadata.listTablePrivileges(Session session, QualifiedTablePrefix prefix) Metadata.listTablePrivileges(Session session, QualifiedTablePrefix prefix) Gets the privileges for the specified table available to the given grantee considering the selected session roleMetadataListing.listTablePrivileges(Session session, Metadata metadata, AccessControl accessControl, QualifiedTablePrefix prefix) MetadataManager.listTablePrivileges(Session session, QualifiedTablePrefix prefix) SystemSecurityMetadata.listTablePrivileges(Session session, QualifiedTablePrefix prefix) Gets the privileges for the specified table available to the given grantee considering the selected session roleMetadata.listTables(Session session, QualifiedTablePrefix prefix) Get the relation names that match the specified table prefix (never null).static Set<SchemaTableName> MetadataListing.listTables(Session session, Metadata metadata, AccessControl accessControl, QualifiedTablePrefix prefix) MetadataManager.listTables(Session session, QualifiedTablePrefix prefix) Metadata.listViews(Session session, QualifiedTablePrefix prefix) Get the names that match the specified table prefix (never null).MetadataManager.listViews(Session session, QualifiedTablePrefix prefix) Metadata.makeCompatiblePartitioning(Session session, TableHandle table, PartitioningHandle partitioningHandle) Return a table handle whose partitioning is converted to the provided partitioning handle, but otherwise identical to the provided table handle.MetadataManager.makeCompatiblePartitioning(Session session, TableHandle tableHandle, PartitioningHandle partitioningHandle) MetadataUtil.processRoleCommandCatalog(Metadata metadata, Session session, Node node, Optional<String> catalog) com.google.common.util.concurrent.ListenableFuture<Void> Metadata.refreshMaterializedView(Session session, QualifiedObjectName viewName) Refresh materialized viewcom.google.common.util.concurrent.ListenableFuture<Void> MetadataManager.refreshMaterializedView(Session session, QualifiedObjectName viewName) voidLanguageFunctionManager.registerQuery(Session session) voidLanguageFunctionManager.registerResolvedFunction(Session session, ResolvedFunction resolvedFunction) voidMetadata.renameColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnHandle source, String target) Rename the specified column.voidMetadataManager.renameColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnHandle source, String target) voidMetadata.renameField(Session session, TableHandle tableHandle, List<String> fieldPath, String target) Rename the specified field.voidMetadataManager.renameField(Session session, TableHandle tableHandle, List<String> fieldPath, String target) voidMetadata.renameMaterializedView(Session session, QualifiedObjectName existingViewName, QualifiedObjectName newViewName) Rename the specified materialized view.voidMetadataManager.renameMaterializedView(Session session, QualifiedObjectName source, QualifiedObjectName target) voidMetadata.renameSchema(Session session, CatalogSchemaName source, String target) Renames the specified schema.voidMetadataManager.renameSchema(Session session, CatalogSchemaName source, String target) voidMetadata.renameTable(Session session, TableHandle tableHandle, CatalogSchemaTableName currentTableName, QualifiedObjectName newTableName) Rename the specified table.voidMetadataManager.renameTable(Session session, TableHandle tableHandle, CatalogSchemaTableName sourceTableName, QualifiedObjectName newTableName) voidMetadata.renameView(Session session, QualifiedObjectName existingViewName, QualifiedObjectName newViewName) Rename the specified view.voidMetadataManager.renameView(Session session, QualifiedObjectName source, QualifiedObjectName target) FunctionResolver.resolveFunction(Session session, QualifiedName name, List<TypeSignatureProvider> parameterTypes, AccessControl accessControl) Metadata.resolveIndex(Session session, TableHandle tableHandle, Set<ColumnHandle> indexableColumns, Set<ColumnHandle> outputColumns, TupleDomain<ColumnHandle> tupleDomain) Try to locate a table index that can lookup results by indexableColumns and provide the requested outputColumns.MetadataManager.resolveIndex(Session session, TableHandle tableHandle, Set<ColumnHandle> indexableColumns, Set<ColumnHandle> outputColumns, TupleDomain<ColumnHandle> tupleDomain) voidDisabledSystemSecurityMetadata.revokeEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee, boolean grantOption) default voidMetadata.revokeEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified entity from the specified grantee.voidMetadataManager.revokeEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee, boolean grantOption) default voidSystemSecurityMetadata.revokeEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified entity from the specified uservoidDisabledSystemSecurityMetadata.revokeRoles(Session session, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor) voidMetadata.revokeRoles(Session session, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor, Optional<String> catalog) Revokes the specified roles from the specified grantees in the specified catalogvoidMetadataManager.revokeRoles(Session session, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor, Optional<String> catalog) voidSystemSecurityMetadata.revokeRoles(Session session, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor) Revokes the specified roles from the specified grantees.voidDisabledSystemSecurityMetadata.revokeSchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) voidMetadata.revokeSchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified schema from the specified user.voidMetadataManager.revokeSchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) voidSystemSecurityMetadata.revokeSchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified schema from the specified user.voidDisabledSystemSecurityMetadata.revokeTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) voidMetadata.revokeTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified table from the specified user.voidMetadataManager.revokeTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) voidSystemSecurityMetadata.revokeTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) Revokes the specified privilege on the specified table from the specified userbooleanDisabledSystemSecurityMetadata.roleExists(Session session, String role) booleanMetadata.roleExists(Session session, String role, Optional<String> catalog) Does the specified role exist.booleanMetadataManager.roleExists(Session session, String role, Optional<String> catalog) booleanSystemSecurityMetadata.roleExists(Session session, String role) Does the specified role exist.voidDisabledSystemSecurityMetadata.schemaCreated(Session session, CatalogSchemaName schema) voidSystemSecurityMetadata.schemaCreated(Session session, CatalogSchemaName schema) A schema was createdvoidDisabledSystemSecurityMetadata.schemaDropped(Session session, CatalogSchemaName schema) voidSystemSecurityMetadata.schemaDropped(Session session, CatalogSchemaName schema) A schema was droppedbooleanMetadata.schemaExists(Session session, CatalogSchemaName schema) booleanMetadataManager.schemaExists(Session session, CatalogSchemaName schema) voidDisabledSystemSecurityMetadata.schemaRenamed(Session session, CatalogSchemaName sourceSchema, CatalogSchemaName targetSchema) voidSystemSecurityMetadata.schemaRenamed(Session session, CatalogSchemaName sourceSchema, CatalogSchemaName targetSchema) A schema was renamedLanguageFunctionManager.serializeFunctionsForWorkers(Session session) voidMetadata.setColumnComment(Session session, TableHandle tableHandle, ColumnHandle column, Optional<String> comment) Comments to the specified column.voidMetadataManager.setColumnComment(Session session, TableHandle tableHandle, ColumnHandle column, Optional<String> comment) voidMetadata.setColumnType(Session session, TableHandle tableHandle, ColumnHandle column, Type type) Set the specified type to the column.voidMetadataManager.setColumnType(Session session, TableHandle tableHandle, ColumnHandle column, Type type) voidMetadata.setFieldType(Session session, TableHandle tableHandle, List<String> fieldPath, Type type) Set the specified type to the field.voidMetadataManager.setFieldType(Session session, TableHandle tableHandle, List<String> fieldPath, Type type) voidMetadata.setMaterializedViewColumnComment(Session session, QualifiedObjectName viewName, String columnName, Optional<String> comment) Comments to the specified materialized view column.voidMetadataManager.setMaterializedViewColumnComment(Session session, QualifiedObjectName viewName, String columnName, Optional<String> comment) voidMetadata.setMaterializedViewProperties(Session session, QualifiedObjectName viewName, Map<String, Optional<Object>> properties) Sets the properties of the specified materialized view.voidMetadataManager.setMaterializedViewProperties(Session session, QualifiedObjectName viewName, Map<String, Optional<Object>> properties) voidMetadata.setSchemaAuthorization(Session session, CatalogSchemaName source, TrinoPrincipal principal) Set the specified schema's user/role.voidMetadataManager.setSchemaAuthorization(Session session, CatalogSchemaName source, TrinoPrincipal principal) voidDisabledSystemSecurityMetadata.setSchemaOwner(Session session, CatalogSchemaName schema, TrinoPrincipal principal) voidSystemSecurityMetadata.setSchemaOwner(Session session, CatalogSchemaName schema, TrinoPrincipal principal) Set the owner of the specified schemavoidMetadata.setTableAuthorization(Session session, CatalogSchemaTableName table, TrinoPrincipal principal) Set the authorization (owner) of specified table's user/rolevoidMetadataManager.setTableAuthorization(Session session, CatalogSchemaTableName table, TrinoPrincipal principal) voidMetadata.setTableComment(Session session, TableHandle tableHandle, Optional<String> comment) Comments to the specified table.voidMetadataManager.setTableComment(Session session, TableHandle tableHandle, Optional<String> comment) voidDisabledSystemSecurityMetadata.setTableOwner(Session session, CatalogSchemaTableName table, TrinoPrincipal principal) voidSystemSecurityMetadata.setTableOwner(Session session, CatalogSchemaTableName table, TrinoPrincipal principal) Set the owner of the specified tablevoidMetadata.setTableProperties(Session session, TableHandle tableHandle, Map<String, Optional<Object>> properties) Set properties to the specified table.voidMetadataManager.setTableProperties(Session session, TableHandle tableHandle, Map<String, Optional<Object>> properties) voidMetadata.setViewAuthorization(Session session, CatalogSchemaTableName view, TrinoPrincipal principal) Set the authorization (owner) of specified view's user/rolevoidMetadataManager.setViewAuthorization(Session session, CatalogSchemaTableName view, TrinoPrincipal principal) voidMetadata.setViewColumnComment(Session session, QualifiedObjectName viewName, String columnName, Optional<String> comment) Comments to the specified view column.voidMetadataManager.setViewColumnComment(Session session, QualifiedObjectName viewName, String columnName, Optional<String> comment) voidMetadata.setViewComment(Session session, QualifiedObjectName viewName, Optional<String> comment) Comments to the specified view.voidMetadataManager.setViewComment(Session session, QualifiedObjectName viewName, Optional<String> comment) voidDisabledSystemSecurityMetadata.setViewOwner(Session session, CatalogSchemaTableName view, TrinoPrincipal principal) voidSystemSecurityMetadata.setViewOwner(Session session, CatalogSchemaTableName view, TrinoPrincipal principal) Set the owner of the specified viewbooleanMetadata.supportsMissingColumnsOnInsert(Session session, TableHandle tableHandle) booleanMetadataManager.supportsMissingColumnsOnInsert(Session session, TableHandle tableHandle) voidDisabledSystemSecurityMetadata.tableCreated(Session session, CatalogSchemaTableName table) voidSystemSecurityMetadata.tableCreated(Session session, CatalogSchemaTableName table) A table or view was createdvoidDisabledSystemSecurityMetadata.tableDropped(Session session, CatalogSchemaTableName table) voidSystemSecurityMetadata.tableDropped(Session session, CatalogSchemaTableName table) A table or view was droppedstatic booleanMetadataUtil.tableExists(Metadata metadata, Session session, String table) voidDisabledSystemSecurityMetadata.tableRenamed(Session session, CatalogSchemaTableName sourceTable, CatalogSchemaTableName targetTable) voidSystemSecurityMetadata.tableRenamed(Session session, CatalogSchemaTableName sourceTable, CatalogSchemaTableName targetTable) A table or view was renamedstatic List<CatalogSchemaFunctionName> FunctionResolver.toPath(Session session, QualifiedName name, AccessControl accessControl) voidMetadata.truncateTable(Session session, TableHandle tableHandle) Truncates the specified tablevoidMetadataManager.truncateTable(Session session, TableHandle tableHandle) voidLanguageFunctionManager.tryRegisterQuery(Session session) voidLanguageFunctionManager.unregisterQuery(Session session) default voidSystemSecurityMetadata.validateEntityKindAndPrivileges(Session session, String entityKind, Set<String> privileges) Throws an exception if the entityKind is not supported, or if the privileges are not supported for the entityKinddefault voidMetadata.validateScan(Session session, TableHandle table) voidMetadataManager.validateScan(Session session, TableHandle table) voidLanguageFunctionManager.verifyForCreate(Session session, String sql, FunctionManager functionManager, AccessControl accessControl) -
Uses of Session in io.trino.operator
Methods in io.trino.operator that return SessionModifier and TypeMethodDescriptionDriverContext.getSession()OperatorContext.getSession()PipelineContext.getSession()ProcessorContext.getSession()TaskContext.getSession()Methods in io.trino.operator with parameters of type SessionModifier and TypeMethodDescriptionstatic GroupByHashGroupByHash.createGroupByHash(Session session, List<Type> types, boolean hasPrecomputedHash, int expectedSize, JoinCompiler joinCompiler, UpdateMemory updateMemory) PagesIndex.createLookupSourceSupplier(Session session, List<Integer> joinChannels) PagesIndex.createLookupSourceSupplier(Session session, List<Integer> joinChannels, OptionalInt hashChannel, Optional<JoinFilterFunctionCompiler.JoinFilterFunctionFactory> filterFunctionFactory, Optional<Integer> sortChannel, List<JoinFilterFunctionCompiler.JoinFilterFunctionFactory> searchFunctionFactories) PagesIndex.createLookupSourceSupplier(Session session, List<Integer> joinChannels, OptionalInt hashChannel, Optional<JoinFilterFunctionCompiler.JoinFilterFunctionFactory> filterFunctionFactory, Optional<Integer> sortChannel, List<JoinFilterFunctionCompiler.JoinFilterFunctionFactory> searchFunctionFactories, Optional<List<Integer>> outputChannels, HashArraySizeSupplier hashArraySizeSupplier) PagesIndex.createPagesSpatialIndex(Session session, int geometryChannel, Optional<Integer> radiusChannel, Optional<Integer> partitionChannel, SpatialIndexBuilderOperator.SpatialPredicate spatialRelationshipTest, Optional<JoinFilterFunctionCompiler.JoinFilterFunctionFactory> filterFunctionFactory, List<Integer> outputChannels, Map<Integer, Rectangle> partitions) static TaskContextTaskContext.createTaskContext(QueryContext queryContext, TaskStateMachine taskStateMachine, io.airlift.stats.GcMonitor gcMonitor, Executor notificationExecutor, ScheduledExecutorService yieldExecutor, ScheduledExecutorService timeoutExecutor, Session session, MemoryTrackingContext taskMemoryContext, Runnable notifyStatusChanged, boolean perOperatorCpuTimerEnabled, boolean cpuTimerEnabled) static HashArraySizeSupplierHashArraySizeSupplier.incrementalLoadFactorHashArraySizeSupplier(Session session) static HashArraySizeSupplierHashArraySizeSupplier.incrementalLoadFactorHashArraySizeSupplier(Session session, int multiplier) Constructors in io.trino.operator with parameters of type SessionModifierConstructorDescriptionMarkDistinctHash(Session session, List<Type> types, boolean hasPrecomputedHash, JoinCompiler joinCompiler, UpdateMemory updateMemory) MergeWriterOperatorFactory(int operatorId, PlanNodeId planNodeId, PageSinkManager pageSinkManager, TableWriterNode.MergeTarget target, Session session, Function<Page, Page> pagePreprocessor) PagesRTreeIndex(Session session, it.unimi.dsi.fastutil.longs.LongArrayList addresses, List<Type> types, List<Integer> outputChannels, List<it.unimi.dsi.fastutil.objects.ObjectArrayList<Block>> channels, org.locationtech.jts.index.strtree.STRtree rtree, Optional<Integer> radiusChannel, SpatialIndexBuilderOperator.SpatialPredicate spatialRelationshipTest, Optional<JoinFilterFunctionCompiler.JoinFilterFunctionFactory> filterFunctionFactory, Map<Integer, Rectangle> partitions) PagesSpatialIndexSupplier(Session session, it.unimi.dsi.fastutil.longs.LongArrayList addresses, List<Type> types, List<Integer> outputChannels, List<it.unimi.dsi.fastutil.objects.ObjectArrayList<Block>> channels, int geometryChannel, Optional<Integer> radiusChannel, Optional<Integer> partitionChannel, SpatialIndexBuilderOperator.SpatialPredicate spatialRelationshipTest, Optional<JoinFilterFunctionCompiler.JoinFilterFunctionFactory> filterFunctionFactory, Map<Integer, Rectangle> partitions) ProcessorContext(Session session, MemoryTrackingContext memoryTrackingContext, OperatorContext operatorContext) SimpleTableExecuteOperator(OperatorContext operatorContext, Metadata metadata, Session session, TableExecuteHandle executeHandle) SimpleTableExecuteOperatorOperatorFactory(int operatorId, PlanNodeId planNodeId, Metadata metadata, Session session, TableExecuteHandle executeHandle) TableFinishOperatorFactory(int operatorId, PlanNodeId planNodeId, TableFinishOperator.TableFinisher tableFinisher, OperatorFactory statisticsAggregationOperatorFactory, StatisticAggregationsDescriptor<Integer> descriptor, TableExecuteContextManager tableExecuteContextManager, boolean outputRowCount, Session session) TableWriterOperatorFactory(int operatorId, PlanNodeId planNodeId, PageSinkManager pageSinkManager, TableWriterNode.WriterTarget writerTarget, List<Integer> columnChannels, Session session, OperatorFactory statisticsAggregationOperatorFactory, List<Type> types) -
Uses of Session in io.trino.operator.aggregation
Constructors in io.trino.operator.aggregation with parameters of type SessionModifierConstructorDescriptionDistinctAccumulatorFactory(AccumulatorFactory delegate, List<Type> argumentTypes, JoinCompiler joinCompiler, Session session) -
Uses of Session in io.trino.operator.exchange
Methods in io.trino.operator.exchange with parameters of type SessionModifier and TypeMethodDescriptionstatic intLocalExchange.getBucketCount(Session session, NodePartitioningManager nodePartitioningManager, PartitioningHandle partitioning) Constructors in io.trino.operator.exchange with parameters of type SessionModifierConstructorDescriptionLocalExchange(NodePartitioningManager nodePartitioningManager, Session session, int defaultConcurrency, PartitioningHandle partitioning, List<Integer> partitionChannels, List<Type> partitionChannelTypes, Optional<Integer> partitionHashChannel, io.airlift.units.DataSize maxBufferedBytes, TypeOperators typeOperators, io.airlift.units.DataSize writerScalingMinDataProcessed, Supplier<Long> totalMemoryUsed) -
Uses of Session in io.trino.operator.index
Methods in io.trino.operator.index with parameters of type SessionModifier and TypeMethodDescriptionIndexManager.getIndex(Session session, IndexHandle indexHandle, List<ColumnHandle> lookupSchema, List<ColumnHandle> outputSchema) Constructors in io.trino.operator.index with parameters of type SessionModifierConstructorDescriptionUnloadedIndexKeyRecordSet(Session session, IndexSnapshot existingSnapshot, Set<Integer> channelsForDistinct, List<Type> types, List<io.trino.operator.index.UpdateRequest> requests, JoinCompiler joinCompiler) -
Uses of Session in io.trino.operator.join
Constructors in io.trino.operator.join with parameters of type SessionModifierConstructorDescriptionJoinHashSupplier(Session session, PagesHashStrategy pagesHashStrategy, it.unimi.dsi.fastutil.longs.LongArrayList addresses, List<it.unimi.dsi.fastutil.objects.ObjectArrayList<Block>> channels, Optional<JoinFilterFunctionCompiler.JoinFilterFunctionFactory> filterFunctionFactory, Optional<Integer> sortChannel, List<JoinFilterFunctionCompiler.JoinFilterFunctionFactory> searchFunctionFactories, HashArraySizeSupplier hashArraySizeSupplier, OptionalInt singleBigintJoinChannel) -
Uses of Session in io.trino.operator.output
Methods in io.trino.operator.output with parameters of type SessionModifier and TypeMethodDescriptionstatic booleanSkewedPartitionRebalancer.checkCanScalePartitionsRemotely(Session session, int taskCount, PartitioningHandle partitioningHandle, NodePartitioningManager nodePartitioningManager) static PartitionFunctionSkewedPartitionRebalancer.createPartitionFunction(Session session, NodePartitioningManager nodePartitioningManager, PartitioningScheme scheme, List<Type> partitionChannelTypes) static intSkewedPartitionRebalancer.getMaxWritersBasedOnMemory(Session session) -
Uses of Session in io.trino.security
Methods in io.trino.security with parameters of type Session -
Uses of Session in io.trino.server
Methods in io.trino.server that return SessionModifier and TypeMethodDescriptionNoOpSessionSupplier.createSession(QueryId queryId, io.opentelemetry.api.trace.Span querySpan, SessionContext context) QuerySessionSupplier.createSession(QueryId queryId, io.opentelemetry.api.trace.Span querySpan, SessionContext context) SessionSupplier.createSession(QueryId queryId, io.opentelemetry.api.trace.Span querySpan, SessionContext context) SessionPropertyDefaults.newSessionWithDefaultProperties(Session session, Optional<String> queryType, ResourceGroupId resourceGroupId) Methods in io.trino.server with parameters of type SessionModifier and TypeMethodDescriptionHttpRemoteTaskFactory.createRemoteTask(Session session, io.opentelemetry.api.trace.Span stageSpan, TaskId taskId, InternalNode node, boolean speculative, PlanFragment fragment, com.google.common.collect.Multimap<PlanNodeId, Split> initialSplits, OutputBuffers outputBuffers, NodeTaskMap.PartitionedSplitCountTracker partitionedSplitCountTracker, Set<DynamicFilterId> outboundDynamicFilterIds, Optional<io.airlift.units.DataSize> estimatedMemory, boolean summarizeTaskInfo) static SessionContextSessionContext.fromSession(Session session) DynamicFilterService.getDynamicFilteringStats(QueryId queryId, Session session) SessionPropertyDefaults.newSessionWithDefaultProperties(Session session, Optional<String> queryType, ResourceGroupId resourceGroupId) voidDynamicFilterService.registerQuery(QueryId queryId, Session session, Set<DynamicFilterId> dynamicFilters, Set<DynamicFilterId> lazyDynamicFilters, Set<DynamicFilterId> replicatedDynamicFilters) -
Uses of Session in io.trino.server.protocol
Methods in io.trino.server.protocol with parameters of type SessionModifier and TypeMethodDescriptionstatic QueryResultRowsstatic QueryResultRows.BuilderQueryResultRows.queryResultRowsBuilder(Session session) Constructors in io.trino.server.protocol with parameters of type Session -
Uses of Session in io.trino.server.remotetask
Constructors in io.trino.server.remotetask with parameters of type SessionModifierConstructorDescriptionHttpRemoteTask(Session session, io.opentelemetry.api.trace.Span stageSpan, TaskId taskId, InternalNode node, boolean speculative, URI location, PlanFragment planFragment, com.google.common.collect.Multimap<PlanNodeId, Split> initialSplits, OutputBuffers outputBuffers, io.airlift.http.client.HttpClient httpClient, Executor executor, ScheduledExecutorService updateScheduledExecutor, ScheduledExecutorService errorScheduledExecutor, io.airlift.units.Duration maxErrorDuration, io.airlift.units.Duration taskStatusRefreshMaxWait, io.airlift.units.Duration taskInfoUpdateInterval, io.airlift.units.Duration taskTerminationTimeout, boolean summarizeTaskInfo, io.airlift.json.JsonCodec<TaskStatus> taskStatusCodec, io.airlift.json.JsonCodec<DynamicFiltersCollector.VersionedDynamicFilterDomains> dynamicFilterDomainsCodec, io.airlift.json.JsonCodec<TaskInfo> taskInfoCodec, io.airlift.json.JsonCodec<TaskUpdateRequest> taskUpdateRequestCodec, io.airlift.json.JsonCodec<FailTaskRequest> failTaskRequestCodec, NodeTaskMap.PartitionedSplitCountTracker partitionedSplitCountTracker, io.opentelemetry.api.trace.Tracer tracer, RemoteTaskStats stats, DynamicFilterService dynamicFilterService, Set<DynamicFilterId> outboundDynamicFilterIds, Optional<io.airlift.units.DataSize> estimatedMemory) -
Uses of Session in io.trino.server.testing
Methods in io.trino.server.testing with parameters of type Session -
Uses of Session in io.trino.split
Methods in io.trino.split with parameters of type SessionModifier and TypeMethodDescriptionPageSinkManager.createMergeSink(Session session, MergeHandle mergeHandle, ConnectorPageSinkId pageSinkId) PageSinkProvider.createMergeSink(Session session, MergeHandle mergeHandle, ConnectorPageSinkId pageSinkId) PageSinkManager.createPageSink(Session session, InsertTableHandle tableHandle, ConnectorPageSinkId pageSinkId) PageSinkManager.createPageSink(Session session, OutputTableHandle tableHandle, ConnectorPageSinkId pageSinkId) PageSinkManager.createPageSink(Session session, TableExecuteHandle tableHandle, ConnectorPageSinkId pageSinkId) PageSinkProvider.createPageSink(Session session, InsertTableHandle tableHandle, ConnectorPageSinkId pageSinkId) PageSinkProvider.createPageSink(Session session, OutputTableHandle tableHandle, ConnectorPageSinkId pageSinkId) PageSinkProvider.createPageSink(Session session, TableExecuteHandle tableHandle, ConnectorPageSinkId pageSinkId) PageSourceManager.createPageSource(Session session, Split split, TableHandle table, List<ColumnHandle> columns, DynamicFilter dynamicFilter) PageSourceProvider.createPageSource(Session session, Split split, TableHandle table, List<ColumnHandle> columns, DynamicFilter dynamicFilter) SplitManager.getSplits(Session session, io.opentelemetry.api.trace.Span parentSpan, TableFunctionHandle function) SplitManager.getSplits(Session session, io.opentelemetry.api.trace.Span parentSpan, TableHandle table, DynamicFilter dynamicFilter, Constraint constraint) -
Uses of Session in io.trino.sql.analyzer
Methods in io.trino.sql.analyzer with parameters of type SessionModifier and TypeMethodDescriptionstatic ExpressionAnalysisExpressionAnalyzer.analyzeExpression(Session session, PlannerContext plannerContext, StatementAnalyzerFactory statementAnalyzerFactory, AccessControl accessControl, Scope scope, Analysis analysis, Expression expression, WarningCollector warningCollector, CorrelationSupport correlationSupport) static ExpressionAnalysisExpressionAnalyzer.analyzeExpressions(Session session, PlannerContext plannerContext, StatementAnalyzerFactory statementAnalyzerFactory, AccessControl accessControl, TypeProvider types, Iterable<Expression> expressions, Map<NodeRef<Parameter>, Expression> parameters, WarningCollector warningCollector, QueryType queryType) static voidExpressionAnalyzer.analyzeExpressionWithoutSubqueries(Session session, PlannerContext plannerContext, AccessControl accessControl, Scope scope, Analysis analysis, Expression expression, ErrorCodeSupplier errorCode, String message, WarningCollector warningCollector, CorrelationSupport correlationSupport) ExpressionAnalyzer.analyzeJsonPathInvocation(JsonTable node, Session session, PlannerContext plannerContext, StatementAnalyzerFactory statementAnalyzerFactory, AccessControl accessControl, Scope scope, Analysis analysis, WarningCollector warningCollector, CorrelationSupport correlationSupport) static TypeExpressionAnalyzer.analyzeJsonQueryExpression(QueryColumn column, Session session, PlannerContext plannerContext, StatementAnalyzerFactory statementAnalyzerFactory, AccessControl accessControl, Scope scope, Analysis analysis, WarningCollector warningCollector) ExpressionAnalyzer.analyzeJsonValueExpression(ValueColumn column, JsonPathAnalyzer.JsonPathAnalysis pathAnalysis, Session session, PlannerContext plannerContext, StatementAnalyzerFactory statementAnalyzerFactory, AccessControl accessControl, Scope scope, Analysis analysis, WarningCollector warningCollector, CorrelationSupport correlationSupport) static ExpressionAnalysisExpressionAnalyzer.analyzePatternRecognitionExpression(Session session, PlannerContext plannerContext, StatementAnalyzerFactory statementAnalyzerFactory, AccessControl accessControl, Scope scope, Analysis analysis, Expression expression, WarningCollector warningCollector, Set<String> labels) static ExpressionAnalysisExpressionAnalyzer.analyzeWindow(Session session, PlannerContext plannerContext, StatementAnalyzerFactory statementAnalyzerFactory, AccessControl accessControl, Scope scope, Analysis analysis, WarningCollector warningCollector, CorrelationSupport correlationSupport, Analysis.ResolvedWindow window, Node originalNode) AnalyzerFactory.createAnalyzer(Session session, List<Expression> parameters, Map<NodeRef<Parameter>, Expression> parameterLookup, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) static ExpressionAnalyzerExpressionAnalyzer.createConstantAnalyzer(PlannerContext plannerContext, AccessControl accessControl, Session session, Map<NodeRef<Parameter>, Expression> parameters, WarningCollector warningCollector) static ExpressionAnalyzerExpressionAnalyzer.createConstantAnalyzer(PlannerContext plannerContext, AccessControl accessControl, Session session, Map<NodeRef<Parameter>, Expression> parameters, WarningCollector warningCollector, boolean isDescribe) io.trino.sql.analyzer.StatementAnalyzerStatementAnalyzerFactory.createStatementAnalyzer(Analysis analysis, Session session, WarningCollector warningCollector, CorrelationSupport correlationSupport) static ExpressionAnalyzerExpressionAnalyzer.createWithoutSubqueries(PlannerContext plannerContext, AccessControl accessControl, Session session, TypeProvider symbolTypes, Map<NodeRef<Parameter>, Expression> parameters, Function<? super Node, ? extends RuntimeException> statementAnalyzerRejection, WarningCollector warningCollector, boolean isDescribe) static ExpressionAnalyzerExpressionAnalyzer.createWithoutSubqueries(PlannerContext plannerContext, AccessControl accessControl, Session session, Map<NodeRef<Parameter>, Expression> parameters, ErrorCodeSupplier errorCode, String message, WarningCollector warningCollector, boolean isDescribe) static ObjectConstantEvaluator.evaluateConstant(Expression expression, Type expectedType, PlannerContext plannerContext, Session session, AccessControl accessControl) QueryExplainer.getGraphvizPlan(Session session, Statement statement, ExplainType.Type planType, List<Expression> parameters, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) QueryExplainer.getJsonPlan(Session session, Statement statement, ExplainType.Type planType, List<Expression> parameters, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) QueryExplainer.getLogicalPlan(Session session, Statement statement, List<Expression> parameters, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) QueryExplainer.getPlan(Session session, Statement statement, ExplainType.Type planType, List<Expression> parameters, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) TypeAnalyzer.getType(Session session, TypeProvider inputTypes, Expression expression) TypeAnalyzer.getTypes(Session session, TypeProvider inputTypes, Expression expression) TypeAnalyzer.getTypes(Session session, TypeProvider inputTypes, Iterable<Expression> expressions) voidQueryExplainer.validate(Session session, Statement statement, List<Expression> parameters, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) -
Uses of Session in io.trino.sql.gen
Methods in io.trino.sql.gen with parameters of type SessionModifier and TypeMethodDescriptionJoinCompiler.LookupSourceSupplierFactory.createLookupSourceSupplier(Session session, it.unimi.dsi.fastutil.longs.LongArrayList addresses, List<it.unimi.dsi.fastutil.objects.ObjectArrayList<Block>> channels, OptionalInt hashChannel, Optional<JoinFilterFunctionCompiler.JoinFilterFunctionFactory> filterFunctionFactory, Optional<Integer> sortChannel, List<JoinFilterFunctionCompiler.JoinFilterFunctionFactory> searchFunctionFactories, HashArraySizeSupplier hashArraySizeSupplier) -
Uses of Session in io.trino.sql.ir
Methods in io.trino.sql.ir with parameters of type SessionModifier and TypeMethodDescriptionstatic booleanIrUtils.isEffectivelyLiteral(PlannerContext plannerContext, Session session, Expression expression) Returns whether expression is effectively literal. -
Uses of Session in io.trino.sql.planner
Methods in io.trino.sql.planner with parameters of type SessionModifier and TypeMethodDescriptionstatic DomainDomainCoercer.applySaturatedCasts(Metadata metadata, FunctionManager functionManager, TypeOperators typeOperators, Session session, Domain domain, Type coercedValueType) SplitSourceFactory.createSplitSources(Session session, io.opentelemetry.api.trace.Span stageSpan, PlanFragment fragment) PlanFragmenter.createSubPlans(Session session, Plan plan, boolean forceSingleNode, WarningCollector warningCollector) static ObjectIrExpressionInterpreter.evaluateConstantExpression(Expression expression, PlannerContext plannerContext, Session session) EffectivePredicateExtractor.extract(Session session, PlanNode node, TypeProvider types, IrTypeAnalyzer typeAnalyzer) static Map<NodeRef<Expression>, ConnectorExpression> PartialTranslator.extractPartialTranslations(Expression inputExpression, Session session, IrTypeAnalyzer typeAnalyzer, TypeProvider typeProvider, PlannerContext plannerContext) ProducesConnectorExpressiontranslations for disjoint components in the input expression in a top-down manner.NodePartitioningManager.getBucketFunction(Session session, PartitioningHandle partitioningHandle, List<Type> partitionChannelTypes, int bucketCount) NodePartitioningManager.getBucketNodeMap(Session session, PartitioningHandle partitioningHandle) NodePartitioningManager.getConnectorBucketNodeMap(Session session, PartitioningHandle partitioningHandle) DomainTranslator.getExtractionResult(PlannerContext plannerContext, Session session, Expression predicate, TypeProvider types) Convert an Expression predicate into an ExtractionResult consisting of: 1) A successfully extracted TupleDomain 2) An Expression fragment which represents the part of the original Expression that will need to be re-evaluated after filtering with the TupleDomain.intNodePartitioningManager.getNodeCount(Session session, PartitioningHandle partitioningHandle) NodePartitioningManager.getNodePartitioningMap(Session session, PartitioningHandle partitioningHandle) NodePartitioningManager.getNodePartitioningMap(Session session, PartitioningHandle partitioningHandle, Optional<Integer> partitionCount) NodePartitioningManager.getPartitionFunction(Session session, PartitioningScheme partitioningScheme, List<Type> partitionChannelTypes) NodePartitioningManager.getPartitionFunction(Session session, PartitioningScheme partitioningScheme, List<Type> partitionChannelTypes, int[] bucketToPartition) NodePartitioningManager.getSplitToBucket(Session session, PartitioningHandle partitioningHandle) IrTypeAnalyzer.getType(Session session, TypeProvider inputTypes, Expression expression) IrTypeAnalyzer.getTypes(Session session, TypeProvider inputTypes, Expression expression) IrTypeAnalyzer.getTypes(Session session, TypeProvider inputTypes, Iterable<Expression> expressions) booleanPartitioning.isCompatibleWith(Partitioning right, Metadata metadata, Session session) booleanPartitioning.isCompatibleWith(Partitioning right, Function<Symbol, Set<Symbol>> leftToRightMappings, Function<Symbol, Optional<NullableValue>> leftConstantMapping, Function<Symbol, Optional<NullableValue>> rightConstantMapping, Metadata metadata, Session session) static ExpressionConnectorExpressionTranslator.translate(Session session, ConnectorExpression expression, PlannerContext plannerContext, Map<String, Symbol> variableMappings, LiteralEncoder literalEncoder) static Optional<ConnectorExpression> ConnectorExpressionTranslator.translate(Session session, Expression expression, TypeProvider types, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer) ConnectorExpressionTranslator.translateConjuncts(Session session, Expression expression, TypeProvider types, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer) Constructors in io.trino.sql.planner with parameters of type SessionModifierConstructorDescriptionInputExtractor(Metadata metadata, Session session) IrExpressionInterpreter(Expression expression, PlannerContext plannerContext, Session session, Map<NodeRef<Expression>, Type> expressionTypes) LayoutConstraintEvaluator(PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, Session session, TypeProvider types, Map<Symbol, ColumnHandle> assignments, Expression expression) LiteralInterpreter(PlannerContext plannerContext, Session session) LocalDynamicFiltersCollector(Session session) LogicalPlanner(Session session, List<PlanOptimizer> planOptimizers, PlanNodeIdAllocator idAllocator, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, StatsCalculator statsCalculator, CostCalculator costCalculator, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) LogicalPlanner(Session session, List<PlanOptimizer> planOptimizers, PlanSanityChecker planSanityChecker, PlanNodeIdAllocator idAllocator, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, StatsCalculator statsCalculator, CostCalculator costCalculator, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) SqlToConnectorExpressionTranslator(Session session, Map<NodeRef<Expression>, Type> types, PlannerContext plannerContext) StatisticsAggregationPlanner(SymbolAllocator symbolAllocator, PlannerContext plannerContext, Session session) TranslationMap(Optional<TranslationMap> outerContext, Scope scope, Analysis analysis, Map<NodeRef<LambdaArgumentDeclaration>, Symbol> lambdaArguments, Symbol[] fieldSymbols, Map<ScopeAware<Expression>, Symbol> astToSymbols, Map<NodeRef<Expression>, Symbol> substitutions, Session session, PlannerContext plannerContext) TranslationMap(Optional<TranslationMap> outerContext, Scope scope, Analysis analysis, Map<NodeRef<LambdaArgumentDeclaration>, Symbol> lambdaArguments, List<Symbol> fieldSymbols, Session session, PlannerContext plannerContext) TranslationMap(Optional<TranslationMap> outerContext, Scope scope, Analysis analysis, Map<NodeRef<LambdaArgumentDeclaration>, Symbol> lambdaArguments, List<Symbol> fieldSymbols, Map<ScopeAware<Expression>, Symbol> astToSymbols, Session session, PlannerContext plannerContext) -
Uses of Session in io.trino.sql.planner.iterative
Methods in io.trino.sql.planner.iterative that return SessionMethods in io.trino.sql.planner.iterative with parameters of type SessionConstructor parameters in io.trino.sql.planner.iterative with type arguments of type SessionModifierConstructorDescriptionIterativeOptimizer(PlannerContext plannerContext, RuleStatsRecorder stats, StatsCalculator statsCalculator, CostCalculator costCalculator, Predicate<Session> useLegacyRules, List<PlanOptimizer> legacyRules, Set<Rule<?>> newRules) -
Uses of Session in io.trino.sql.planner.iterative.rule
Methods in io.trino.sql.planner.iterative.rule with parameters of type SessionModifier and TypeMethodDescriptionstatic ExpressionCanonicalizeExpressionRewriter.canonicalizeExpression(Expression expression, IrTypeAnalyzer typeAnalyzer, TypeProvider types, PlannerContext plannerContext, Session session) static Optional<PlanNodeStatsEstimate> Rules.deriveTableStatisticsForPushdown(StatsProvider statsProvider, Session session, boolean precalculateStatistics, PlanNode oldTableScanParent) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanPruneTableScanColumns.pruneColumns(Metadata metadata, TypeProvider types, Session session, TableScanNode node, Set<Symbol> referencedOutputs) PushPredicateIntoTableScan.pushFilterIntoTableScan(FilterNode filterNode, TableScanNode node, boolean pruneWithPredicateExpression, Session session, SymbolAllocator symbolAllocator, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, StatsProvider statsProvider, DomainTranslator domainTranslator) PushProjectionThroughJoin.pushProjectionThroughJoin(PlannerContext plannerContext, ProjectNode projectNode, Lookup lookup, PlanNodeIdAllocator planNodeIdAllocator, Session session, IrTypeAnalyzer typeAnalyzer, TypeProvider types) static ExpressionCanonicalizeExpressionRewriter.rewrite(Expression expression, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types) static ExpressionSimplifyExpressions.rewrite(Expression expression, Session session, SymbolAllocator symbolAllocator, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer) static PlanNodeImplementLimitWithTies.rewriteLimitWithTiesWithPartitioning(LimitNode limitNode, PlanNode source, Session session, Metadata metadata, PlanNodeIdAllocator idAllocator, SymbolAllocator symbolAllocator, List<Symbol> partitionBy) Rewrite LimitNode with ties to WindowNode and FilterNode, with partitioning defined by partitionBy.static ExpressionUnwrapCastInComparison.unwrapCasts(Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, Expression expression) Constructors in io.trino.sql.planner.iterative.rule with parameters of type SessionModifierConstructorDescriptionSetOperationNodeTranslator(Session session, Metadata metadata, SymbolAllocator symbolAllocator, PlanNodeIdAllocator idAllocator) -
Uses of Session in io.trino.sql.planner.optimizations
Methods in io.trino.sql.planner.optimizations that return SessionModifier and TypeMethodDescriptionPlanOptimizer.Context.session()Returns the value of thesessionrecord component.Methods in io.trino.sql.planner.optimizations with parameters of type SessionModifier and TypeMethodDescriptionbooleanExpressionEquivalence.areExpressionsEquivalent(Session session, Expression leftExpression, Expression rightExpression, TypeProvider types) static StreamPreferredPropertiesStreamPreferredProperties.defaultParallelism(Session session) static ActualPropertiesPropertyDerivations.deriveProperties(PlanNode node, List<ActualProperties> inputProperties, PlannerContext plannerContext, Session session, TypeProvider types, IrTypeAnalyzer typeAnalyzer) StreamPropertyDerivations.deriveProperties(PlanNode node, StreamPropertyDerivations.StreamProperties inputProperties, PlannerContext plannerContext, Session session, TypeProvider types, IrTypeAnalyzer typeAnalyzer) StreamPropertyDerivations.deriveProperties(PlanNode node, List<StreamPropertyDerivations.StreamProperties> inputProperties, PlannerContext plannerContext, Session session, TypeProvider types, IrTypeAnalyzer typeAnalyzer) static ActualPropertiesPropertyDerivations.derivePropertiesRecursively(PlanNode node, PlannerContext plannerContext, Session session, TypeProvider types, IrTypeAnalyzer typeAnalyzer) StreamPropertyDerivations.derivePropertiesRecursively(PlanNode node, PlannerContext plannerContext, Session session, TypeProvider types, IrTypeAnalyzer typeAnalyzer) booleanActualProperties.isCompatibleTablePartitioningWith(ActualProperties other, Function<Symbol, Set<Symbol>> symbolMappings, Metadata metadata, Session session) booleanActualProperties.isCompatibleTablePartitioningWith(Partitioning partitioning, boolean nullsAndAnyReplicated, Metadata metadata, Session session) static ActualPropertiesPropertyDerivations.streamBackdoorDeriveProperties(PlanNode node, List<ActualProperties> inputProperties, PlannerContext plannerContext, Session session, TypeProvider types, IrTypeAnalyzer typeAnalyzer) StreamPreferredProperties.withDefaultParallelism(Session session) Constructors in io.trino.sql.planner.optimizations with parameters of type SessionModifierConstructorDescriptionContext(Session session, TypeProvider types, SymbolAllocator symbolAllocator, PlanNodeIdAllocator idAllocator, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector, TableStatsProvider tableStatsProvider) Creates an instance of aContextrecord class. -
Uses of Session in io.trino.sql.planner.optimizations.joins
Methods in io.trino.sql.planner.optimizations.joins with parameters of type SessionModifier and TypeMethodDescriptionstatic JoinGraphJoinGraph.buildFrom(PlannerContext plannerContext, PlanNode plan, Lookup lookup, PlanNodeIdAllocator planNodeIdAllocator, Session session, IrTypeAnalyzer typeAnalyzer, TypeProvider types) BuildsJoinGraphcontainingplannode. -
Uses of Session in io.trino.sql.planner.plan
Methods in io.trino.sql.planner.plan with parameters of type SessionModifier and TypeMethodDescriptionStatisticAggregations.createPartialAggregations(SymbolAllocator symbolAllocator, Session session, PlannerContext plannerContext) TableWriterNode.CreateReference.getMaxWriterTasks(Metadata metadata, Session session) TableWriterNode.CreateTarget.getMaxWriterTasks(Metadata metadata, Session session) TableWriterNode.DeleteTarget.getMaxWriterTasks(Metadata metadata, Session session) TableWriterNode.InsertReference.getMaxWriterTasks(Metadata metadata, Session session) TableWriterNode.InsertTarget.getMaxWriterTasks(Metadata metadata, Session session) TableWriterNode.MergeTarget.getMaxWriterTasks(Metadata metadata, Session session) TableWriterNode.RefreshMaterializedViewReference.getMaxWriterTasks(Metadata metadata, Session session) TableWriterNode.RefreshMaterializedViewTarget.getMaxWriterTasks(Metadata metadata, Session session) TableWriterNode.TableExecuteTarget.getMaxWriterTasks(Metadata metadata, Session session) TableWriterNode.UpdateTarget.getMaxWriterTasks(Metadata metadata, Session session) abstract OptionalIntTableWriterNode.WriterTarget.getMaxWriterTasks(Metadata metadata, Session session) TableWriterNode.CreateReference.getWriterScalingOptions(Metadata metadata, Session session) TableWriterNode.CreateTarget.getWriterScalingOptions(Metadata metadata, Session session) TableWriterNode.DeleteTarget.getWriterScalingOptions(Metadata metadata, Session session) TableWriterNode.InsertReference.getWriterScalingOptions(Metadata metadata, Session session) TableWriterNode.InsertTarget.getWriterScalingOptions(Metadata metadata, Session session) TableWriterNode.MergeTarget.getWriterScalingOptions(Metadata metadata, Session session) TableWriterNode.RefreshMaterializedViewReference.getWriterScalingOptions(Metadata metadata, Session session) TableWriterNode.RefreshMaterializedViewTarget.getWriterScalingOptions(Metadata metadata, Session session) TableWriterNode.TableExecuteTarget.getWriterScalingOptions(Metadata metadata, Session session) TableWriterNode.UpdateTarget.getWriterScalingOptions(Metadata metadata, Session session) abstract WriterScalingOptionsTableWriterNode.WriterTarget.getWriterScalingOptions(Metadata metadata, Session session) booleanAggregationNode.hasSingleNodeExecutionPreference(Session session, Metadata metadata) booleanAggregationNode.isDecomposable(Session session, Metadata metadata) static AssignmentsAssignments.of(Collection<? extends Expression> expressions, Session session, SymbolAllocator symbolAllocator, IrTypeAnalyzer typeAnalyzer) booleanTableWriterNode.CreateReference.supportsMultipleWritersPerPartition(Metadata metadata, Session session) booleanTableWriterNode.CreateTarget.supportsMultipleWritersPerPartition(Metadata metadata, Session session) booleanTableWriterNode.DeleteTarget.supportsMultipleWritersPerPartition(Metadata metadata, Session session) booleanTableWriterNode.InsertReference.supportsMultipleWritersPerPartition(Metadata metadata, Session session) booleanTableWriterNode.InsertTarget.supportsMultipleWritersPerPartition(Metadata metadata, Session session) booleanTableWriterNode.MergeTarget.supportsMultipleWritersPerPartition(Metadata metadata, Session session) booleanTableWriterNode.RefreshMaterializedViewReference.supportsMultipleWritersPerPartition(Metadata metadata, Session session) booleanTableWriterNode.RefreshMaterializedViewTarget.supportsMultipleWritersPerPartition(Metadata metadata, Session session) booleanTableWriterNode.TableExecuteTarget.supportsMultipleWritersPerPartition(Metadata metadata, Session session) booleanTableWriterNode.UpdateTarget.supportsMultipleWritersPerPartition(Metadata metadata, Session session) abstract booleanTableWriterNode.WriterTarget.supportsMultipleWritersPerPartition(Metadata metadata, Session session) -
Uses of Session in io.trino.sql.planner.planprinter
Methods in io.trino.sql.planner.planprinter with parameters of type SessionModifier and TypeMethodDescriptionstatic StringPlanPrinter.jsonDistributedPlan(StageInfo outputStageInfo, Session session, Metadata metadata, FunctionManager functionManager, Anonymizer anonymizer) static StringPlanPrinter.jsonDistributedPlan(SubPlan plan, Metadata metadata, FunctionManager functionManager, Session session) static StringPlanPrinter.jsonFragmentPlan(PlanNode root, Map<Symbol, Type> symbols, Metadata metadata, FunctionManager functionManager, Session session) static StringPlanPrinter.jsonLogicalPlan(PlanNode plan, Session session, TypeProvider types, Metadata metadata, FunctionManager functionManager, StatsAndCosts estimatedStatsAndCosts) static StringPlanPrinter.textDistributedPlan(StageInfo outputStageInfo, QueryStats queryStats, Metadata metadata, FunctionManager functionManager, Session session, boolean verbose, NodeVersion version) static StringPlanPrinter.textDistributedPlan(SubPlan plan, Metadata metadata, FunctionManager functionManager, Session session, boolean verbose, NodeVersion version) static StringIoPlanPrinter.textIoPlan(Plan plan, PlannerContext plannerContext, Session session) static StringPlanPrinter.textLogicalPlan(PlanNode plan, TypeProvider types, Metadata metadata, FunctionManager functionManager, StatsAndCosts estimatedStatsAndCosts, Session session, int level, boolean verbose) static StringPlanPrinter.textLogicalPlan(PlanNode plan, TypeProvider types, Metadata metadata, FunctionManager functionManager, StatsAndCosts estimatedStatsAndCosts, Session session, int level, boolean verbose, Optional<NodeVersion> version) Constructors in io.trino.sql.planner.planprinter with parameters of type SessionModifierConstructorDescriptionTableInfoSupplier(Metadata metadata, Session session) ValuePrinter(Metadata metadata, FunctionManager functionManager, Session session) -
Uses of Session in io.trino.sql.planner.sanity
Methods in io.trino.sql.planner.sanity with parameters of type SessionModifier and TypeMethodDescriptionvoidAllFunctionsResolved.validate(PlanNode planNode, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidDynamicFiltersChecker.validate(PlanNode plan, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidNoDuplicatePlanNodeIdsChecker.validate(PlanNode planNode, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidNoIdentifierLeftChecker.validate(PlanNode plan, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidNoSubqueryExpressionLeftChecker.validate(PlanNode plan, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidPlanSanityChecker.Checker.validate(PlanNode planNode, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidSugarFreeChecker.validate(PlanNode planNode, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidTableExecuteStructureValidator.validate(PlanNode planNode, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidTableScanValidator.validate(PlanNode plan, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidTypeValidator.validate(PlanNode plan, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidValidateAggregationsWithDefaultValues.validate(PlanNode planNode, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidValidateDependenciesChecker.validate(PlanNode plan, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidValidateScaledWritersUsage.validate(PlanNode planNode, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidValidateStreamingAggregations.validate(PlanNode planNode, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidVerifyNoFilteredAggregations.validate(PlanNode plan, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidVerifyOnlyOneOutputNode.validate(PlanNode plan, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidVerifyUseConnectorNodePartitioningSet.validate(PlanNode plan, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidPlanSanityChecker.validateFinalPlan(PlanNode planNode, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) voidPlanSanityChecker.validateIntermediatePlan(PlanNode planNode, Session session, PlannerContext plannerContext, IrTypeAnalyzer typeAnalyzer, TypeProvider types, WarningCollector warningCollector) -
Uses of Session in io.trino.sql.relational
Methods in io.trino.sql.relational with parameters of type SessionModifier and TypeMethodDescriptionstatic RowExpressionSqlToRowExpressionTranslator.translate(Expression expression, Map<NodeRef<Expression>, Type> types, Map<Symbol, Integer> layout, Metadata metadata, FunctionManager functionManager, TypeManager typeManager, Session session, boolean optimize) -
Uses of Session in io.trino.sql.relational.optimizer
Constructors in io.trino.sql.relational.optimizer with parameters of type SessionModifierConstructorDescriptionExpressionOptimizer(Metadata metadata, FunctionManager functionManager, Session session) -
Uses of Session in io.trino.sql.rewrite
Methods in io.trino.sql.rewrite with parameters of type SessionModifier and TypeMethodDescriptionDescribeInputRewrite.rewrite(AnalyzerFactory analyzerFactory, Session session, Statement node, List<Expression> parameters, Map<NodeRef<Parameter>, Expression> parameterLookup, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) DescribeOutputRewrite.rewrite(AnalyzerFactory analyzerFactory, Session session, Statement node, List<Expression> parameters, Map<NodeRef<Parameter>, Expression> parameterLookup, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) ExplainRewrite.rewrite(AnalyzerFactory analyzerFactory, Session session, Statement node, List<Expression> parameter, Map<NodeRef<Parameter>, Expression> parameterLookup, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) ShowQueriesRewrite.rewrite(AnalyzerFactory analyzerFactory, Session session, Statement node, List<Expression> parameters, Map<NodeRef<Parameter>, Expression> parameterLookup, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) ShowStatsRewrite.rewrite(AnalyzerFactory analyzerFactory, Session session, Statement node, List<Expression> parameters, Map<NodeRef<Parameter>, Expression> parameterLookup, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) StatementRewrite.rewrite(AnalyzerFactory analyzerFactory, Session session, Statement node, List<Expression> parameters, Map<NodeRef<Parameter>, Expression> parameterLookup, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) StatementRewrite.Rewrite.rewrite(AnalyzerFactory analyzerFactory, Session session, Statement node, List<Expression> parameters, Map<NodeRef<Parameter>, Expression> parameterLookup, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) -
Uses of Session in io.trino.sql.routine
Methods in io.trino.sql.routine with parameters of type SessionModifier and TypeMethodDescriptionSqlRoutineAnalyzer.analyze(Session session, AccessControl accessControl, FunctionSpecification function) SqlRoutinePlanner.planSqlFunction(Session session, FunctionSpecification function, SqlRoutineAnalysis routineAnalysis) -
Uses of Session in io.trino.testing
Methods in io.trino.testing that return SessionModifier and TypeMethodDescriptionPlanTester.getDefaultSession()QueryRunner.getDefaultSession()StandaloneQueryRunner.getDefaultSession()static SessionTestingSession.testSession()static SessionTestingSession.testSession(Session session) Methods in io.trino.testing with parameters of type SessionModifier and TypeMethodDescriptionstatic TestingTaskContext.BuilderTestingTaskContext.builder(Executor notificationExecutor, ScheduledExecutorService scheduledExecutor, Session session) static PlanTesterstatic PlanTesterPlanTester.createPlan(Session session, String sql) PlanTester.createPlan(Session session, String sql, List<PlanOptimizer> optimizers, LogicalPlanner.Stage stage, WarningCollector warningCollector, PlanOptimizersStatsCollector planOptimizersStatsCollector) QueryRunner.createPlan(Session session, String sql) StandaloneQueryRunner.createPlan(Session session, String sql) PlanTester.createSubPlans(Session session, Plan plan, boolean forceSingleNode) static TaskContextTestingTaskContext.createTaskContext(QueryContext queryContext, Executor executor, Session session) static TaskContextTestingTaskContext.createTaskContext(Executor notificationExecutor, ScheduledExecutorService scheduledExecutor, Session session) static TaskContextTestingTaskContext.createTaskContext(Executor notificationExecutor, ScheduledExecutorService scheduledExecutor, Session session, io.airlift.units.DataSize maxMemory) static TaskContextTestingTaskContext.createTaskContext(Executor notificationExecutor, ScheduledExecutorService scheduledExecutor, Session session, TaskStateMachine taskStateMachine) void<T> TQueryRunner.executeWithPlan(Session session, String sql) StandaloneQueryRunner.executeWithPlan(Session session, String sql) <T> TPlanTester.inTransaction(Session session, Function<Session, T> transactionSessionConsumer) default <T> TQueryRunner.inTransaction(Session session, Function<Session, T> transactionSessionConsumer) QueryRunner.listTables(Session session, String catalog, String schema) StandaloneQueryRunner.listTables(Session session, String catalog, String schema) static MaterializedResult.BuilderMaterializedResult.resultBuilder(Session session, Type... types) static MaterializedResult.BuilderMaterializedResult.resultBuilder(Session session, Iterable<? extends Type> types) booleanQueryRunner.tableExists(Session session, String table) booleanStandaloneQueryRunner.tableExists(Session session, String table) static SessionTestingSession.testSession(Session session) static Session.SessionBuilderTestingSession.testSessionBuilder(Session session) Method parameters in io.trino.testing with type arguments of type SessionModifier and TypeMethodDescriptionvoid<T> T<T> TPlanTester.inTransaction(Session session, Function<Session, T> transactionSessionConsumer) <T> TPlanTester.inTransaction(Function<Session, T> transactionSessionConsumer) default <T> TQueryRunner.inTransaction(Session session, Function<Session, T> transactionSessionConsumer) default <T> TQueryRunner.inTransaction(Function<Session, T> transactionSessionConsumer) Constructors in io.trino.testing with parameters of type SessionModifierConstructorDescriptionStandaloneQueryRunner(Session defaultSession) StandaloneQueryRunner(Session defaultSession, Consumer<TestingTrinoServer.Builder> serverProcessor) -
Uses of Session in io.trino.tracing
Methods in io.trino.tracing with parameters of type SessionModifier and TypeMethodDescriptionvoidTracingMetadata.addColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnMetadata column) voidTracingMetadata.addField(Session session, TableHandle tableHandle, List<String> parentPath, String fieldName, Type type, boolean ignoreExisting) TracingMetadata.applyAggregation(Session session, TableHandle table, List<AggregateFunction> aggregations, Map<String, ColumnHandle> assignments, List<List<ColumnHandle>> groupingSets) TracingMetadata.applyDelete(Session session, TableHandle tableHandle) TracingMetadata.applyFilter(Session session, TableHandle table, Constraint constraint) TracingMetadata.applyJoin(Session session, JoinType joinType, TableHandle left, TableHandle right, ConnectorExpression joinCondition, Map<String, ColumnHandle> leftAssignments, Map<String, ColumnHandle> rightAssignments, JoinStatistics statistics) TracingMetadata.applyLimit(Session session, TableHandle table, long limit) TracingMetadata.applyProjection(Session session, TableHandle table, List<ConnectorExpression> projections, Map<String, ColumnHandle> assignments) TracingMetadata.applySample(Session session, TableHandle table, SampleType sampleType, double sampleRatio) TracingMetadata.applyTableFunction(Session session, TableFunctionHandle handle) TracingMetadata.applyTableScanRedirect(Session session, TableHandle tableHandle) TracingMetadata.applyTopN(Session session, TableHandle handle, long topNCount, List<SortItem> sortItems, Map<String, ColumnHandle> assignments) TracingMetadata.applyUpdate(Session session, TableHandle tableHandle, Map<ColumnHandle, Constant> assignments) TracingMetadata.beginCreateTable(Session session, String catalogName, ConnectorTableMetadata tableMetadata, Optional<TableLayout> layout, boolean replace) TracingMetadata.beginInsert(Session session, TableHandle tableHandle, List<ColumnHandle> columns) TracingMetadata.beginMerge(Session session, TableHandle tableHandle) voidTracingMetadata.beginQuery(Session session) TracingMetadata.beginRefreshMaterializedView(Session session, TableHandle tableHandle, List<TableHandle> sourceTableHandles) TracingMetadata.beginStatisticsCollection(Session session, TableHandle tableHandle) TracingMetadata.beginTableExecute(Session session, TableExecuteHandle handle, TableHandle updatedSourceTableHandle) booleanTracingMetadata.catalogExists(Session session, String catalogName) voidTracingMetadata.cleanupQuery(Session session) voidTracingMetadata.createLanguageFunction(Session session, QualifiedObjectName name, LanguageFunction function, boolean replace) voidTracingMetadata.createMaterializedView(Session session, QualifiedObjectName viewName, MaterializedViewDefinition definition, Map<String, Object> properties, boolean replace, boolean ignoreExisting) voidTracingMetadata.createRole(Session session, String role, Optional<TrinoPrincipal> grantor, Optional<String> catalog) voidTracingMetadata.createSchema(Session session, CatalogSchemaName schema, Map<String, Object> properties, TrinoPrincipal principal) voidTracingMetadata.createTable(Session session, String catalogName, ConnectorTableMetadata tableMetadata, SaveMode saveMode) voidTracingMetadata.createView(Session session, QualifiedObjectName viewName, ViewDefinition definition, boolean replace) booleanTracingMetadata.delegateMaterializedViewRefreshToConnector(Session session, QualifiedObjectName viewName) voidTracingMetadata.denyEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee) voidTracingMetadata.denySchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee) voidTracingMetadata.denyTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee) voidTracingMetadata.dropColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnHandle column) voidTracingMetadata.dropField(Session session, TableHandle tableHandle, ColumnHandle column, List<String> fieldPath) voidTracingMetadata.dropLanguageFunction(Session session, QualifiedObjectName name, String signatureToken) voidTracingMetadata.dropMaterializedView(Session session, QualifiedObjectName viewName) voidTracingMetadata.dropNotNullConstraint(Session session, TableHandle tableHandle, ColumnHandle column) voidvoidTracingMetadata.dropSchema(Session session, CatalogSchemaName schema, boolean cascade) voidTracingMetadata.dropTable(Session session, TableHandle tableHandle, CatalogSchemaTableName tableName) voidTracingMetadata.dropView(Session session, QualifiedObjectName viewName) TracingMetadata.executeDelete(Session session, TableHandle tableHandle) voidTracingMetadata.executeTableExecute(Session session, TableExecuteHandle handle) TracingMetadata.executeUpdate(Session session, TableHandle tableHandle) TracingMetadata.finishCreateTable(Session session, OutputTableHandle tableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) TracingMetadata.finishInsert(Session session, InsertTableHandle tableHandle, List<TableHandle> sourceTableHandles, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) voidTracingMetadata.finishMerge(Session session, MergeHandle tableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics) TracingMetadata.finishRefreshMaterializedView(Session session, TableHandle tableHandle, InsertTableHandle insertTableHandle, Collection<io.airlift.slice.Slice> fragments, Collection<ComputedStatistics> computedStatistics, List<TableHandle> sourceTableHandles, List<String> sourceTableFunctions) voidTracingMetadata.finishStatisticsCollection(Session session, AnalyzeTableHandle tableHandle, Collection<ComputedStatistics> computedStatistics) voidTracingMetadata.finishTableExecute(Session session, TableExecuteHandle handle, Collection<io.airlift.slice.Slice> fragments, List<Object> tableExecuteState) TracingMetadata.getAggregationFunctionMetadata(Session session, ResolvedFunction resolvedFunction) TracingMetadata.getCatalogHandle(Session session, String catalogName) TracingMetadata.getColumnHandles(Session session, TableHandle tableHandle) TracingMetadata.getColumnMetadata(Session session, TableHandle tableHandle, ColumnHandle columnHandle) TracingMetadata.getCommonPartitioning(Session session, PartitioningHandle left, PartitioningHandle right) TracingMetadata.getConnectorCapabilities(Session session, CatalogHandle catalogHandle) TracingMetadata.getFunctionDependencies(Session session, CatalogHandle catalogHandle, FunctionId functionId, BoundSignature boundSignature) TracingMetadata.getFunctions(Session session, CatalogSchemaFunctionName catalogSchemaFunctionName) TracingMetadata.getInfo(Session session, TableHandle handle) TracingMetadata.getInsertLayout(Session session, TableHandle target) TracingMetadata.getInsertWriterScalingOptions(Session session, TableHandle tableHandle) TracingMetadata.getLayoutForTableExecute(Session session, TableExecuteHandle tableExecuteHandle) TracingMetadata.getMaterializedView(Session session, QualifiedObjectName viewName) TracingMetadata.getMaterializedViewFreshness(Session session, QualifiedObjectName name) TracingMetadata.getMaterializedViewProperties(Session session, QualifiedObjectName objectName, MaterializedViewDefinition materializedViewDefinition) TracingMetadata.getMaterializedViews(Session session, QualifiedTablePrefix prefix) TracingMetadata.getMaxWriterTasks(Session session, String catalogName) TracingMetadata.getMergeRowIdColumnHandle(Session session, TableHandle tableHandle) TracingMetadata.getNewTableLayout(Session session, String catalogName, ConnectorTableMetadata tableMetadata) TracingMetadata.getNewTableWriterScalingOptions(Session session, QualifiedObjectName tableName, Map<String, Object> tableProperties) TracingMetadata.getRedirectionAwareTableHandle(Session session, QualifiedObjectName tableName) TracingMetadata.getRedirectionAwareTableHandle(Session session, QualifiedObjectName tableName, Optional<TableVersion> startVersion, Optional<TableVersion> endVersion) TracingMetadata.getRelationTypes(Session session, QualifiedTablePrefix prefix) TracingMetadata.getRowChangeParadigm(Session session, TableHandle tableHandle) TracingMetadata.getSchemaOwner(Session session, CatalogSchemaName schemaName) TracingMetadata.getSchemaProperties(Session session, CatalogSchemaName schemaName) TracingMetadata.getStatisticsCollectionMetadata(Session session, TableHandle tableHandle, Map<String, Object> analyzeProperties) TracingMetadata.getStatisticsCollectionMetadataForWrite(Session session, CatalogHandle catalogHandle, ConnectorTableMetadata tableMetadata) TracingMetadata.getSupportedType(Session session, CatalogHandle catalogHandle, Map<String, Object> tableProperties, Type type) TracingMetadata.getSystemTable(Session session, QualifiedObjectName tableName) TracingMetadata.getTableHandle(Session session, QualifiedObjectName tableName) TracingMetadata.getTableHandle(Session session, QualifiedObjectName tableName, Optional<TableVersion> startVersion, Optional<TableVersion> endVersion) TracingMetadata.getTableHandleForExecute(Session session, TableHandle tableHandle, String procedureName, Map<String, Object> executeProperties) TracingMetadata.getTableMetadata(Session session, TableHandle tableHandle) TracingMetadata.getTableName(Session session, TableHandle tableHandle) TracingMetadata.getTableProperties(Session session, TableHandle handle) TracingMetadata.getTableSchema(Session session, TableHandle tableHandle) TracingMetadata.getTableStatistics(Session session, TableHandle tableHandle) TracingMetadata.getUpdateLayout(Session session, TableHandle tableHandle) TracingMetadata.getView(Session session, QualifiedObjectName viewName) TracingMetadata.getViews(Session session, QualifiedTablePrefix prefix) voidTracingMetadata.grantEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee, boolean grantOption) voidTracingMetadata.grantRoles(Session session, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor, Optional<String> catalog) voidTracingMetadata.grantSchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) voidTracingMetadata.grantTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) booleanTracingMetadata.isCatalogManagedSecurity(Session session, String catalog) booleanTracingMetadata.isMaterializedView(Session session, QualifiedObjectName viewName) booleanTracingMetadata.isView(Session session, QualifiedObjectName viewName) booleanTracingMetadata.languageFunctionExists(Session session, QualifiedObjectName name, String signatureToken) TracingMetadata.listApplicableRoles(Session session, TrinoPrincipal principal, Optional<String> catalog) TracingMetadata.listCatalogs(Session session) TracingMetadata.listEnabledRoles(Session session, String catalog) TracingMetadata.listFunctions(Session session, CatalogSchemaName schema) TracingMetadata.listGlobalFunctions(Session session) TracingMetadata.listMaterializedViews(Session session, QualifiedTablePrefix prefix) TracingMetadata.listRelationComments(Session session, String catalogName, Optional<String> schemaName, UnaryOperator<Set<SchemaTableName>> relationFilter) TracingMetadata.listRoleGrants(Session session, Optional<String> catalog, TrinoPrincipal principal) TracingMetadata.listSchemaNames(Session session, String catalogName) TracingMetadata.listTableColumns(Session session, QualifiedTablePrefix prefix, UnaryOperator<Set<SchemaTableName>> relationFilter) TracingMetadata.listTablePrivileges(Session session, QualifiedTablePrefix prefix) TracingMetadata.listTables(Session session, QualifiedTablePrefix prefix) TracingMetadata.listViews(Session session, QualifiedTablePrefix prefix) TracingMetadata.makeCompatiblePartitioning(Session session, TableHandle table, PartitioningHandle partitioningHandle) com.google.common.util.concurrent.ListenableFuture<Void> TracingMetadata.refreshMaterializedView(Session session, QualifiedObjectName viewName) voidTracingMetadata.renameColumn(Session session, TableHandle tableHandle, CatalogSchemaTableName table, ColumnHandle source, String target) voidTracingMetadata.renameField(Session session, TableHandle tableHandle, List<String> fieldPath, String target) voidTracingMetadata.renameMaterializedView(Session session, QualifiedObjectName existingViewName, QualifiedObjectName newViewName) voidTracingMetadata.renameSchema(Session session, CatalogSchemaName source, String target) voidTracingMetadata.renameTable(Session session, TableHandle tableHandle, CatalogSchemaTableName currentTableName, QualifiedObjectName newTableName) voidTracingMetadata.renameView(Session session, QualifiedObjectName existingViewName, QualifiedObjectName newViewName) TracingMetadata.resolveIndex(Session session, TableHandle tableHandle, Set<ColumnHandle> indexableColumns, Set<ColumnHandle> outputColumns, TupleDomain<ColumnHandle> tupleDomain) voidTracingMetadata.revokeEntityPrivileges(Session session, EntityKindAndName entity, Set<EntityPrivilege> privileges, TrinoPrincipal grantee, boolean grantOption) voidTracingMetadata.revokeRoles(Session session, Set<String> roles, Set<TrinoPrincipal> grantees, boolean adminOption, Optional<TrinoPrincipal> grantor, Optional<String> catalog) voidTracingMetadata.revokeSchemaPrivileges(Session session, CatalogSchemaName schemaName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) voidTracingMetadata.revokeTablePrivileges(Session session, QualifiedObjectName tableName, Set<Privilege> privileges, TrinoPrincipal grantee, boolean grantOption) booleanTracingMetadata.roleExists(Session session, String role, Optional<String> catalog) booleanTracingMetadata.schemaExists(Session session, CatalogSchemaName schema) voidTracingMetadata.setColumnComment(Session session, TableHandle tableHandle, ColumnHandle column, Optional<String> comment) voidTracingMetadata.setColumnType(Session session, TableHandle tableHandle, ColumnHandle column, Type type) voidTracingMetadata.setFieldType(Session session, TableHandle tableHandle, List<String> fieldPath, Type type) voidTracingMetadata.setMaterializedViewColumnComment(Session session, QualifiedObjectName viewName, String columnName, Optional<String> comment) voidTracingMetadata.setMaterializedViewProperties(Session session, QualifiedObjectName viewName, Map<String, Optional<Object>> properties) voidTracingMetadata.setSchemaAuthorization(Session session, CatalogSchemaName source, TrinoPrincipal principal) voidTracingMetadata.setTableAuthorization(Session session, CatalogSchemaTableName table, TrinoPrincipal principal) voidTracingMetadata.setTableComment(Session session, TableHandle tableHandle, Optional<String> comment) voidTracingMetadata.setTableProperties(Session session, TableHandle tableHandle, Map<String, Optional<Object>> properties) voidTracingMetadata.setViewAuthorization(Session session, CatalogSchemaTableName view, TrinoPrincipal principal) voidTracingMetadata.setViewColumnComment(Session session, QualifiedObjectName viewName, String columnName, Optional<String> comment) voidTracingMetadata.setViewComment(Session session, QualifiedObjectName viewName, Optional<String> comment) booleanTracingMetadata.supportsMissingColumnsOnInsert(Session session, TableHandle tableHandle) voidTracingMetadata.truncateTable(Session session, TableHandle tableHandle) voidTracingMetadata.validateScan(Session session, TableHandle table)