Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.trino.execution;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.google.errorprone.annotations.Immutable;
import io.trino.SessionRepresentation;
import io.trino.client.NodeVersion;
import io.trino.operator.RetryPolicy;
import io.trino.spi.ErrorCode;
import io.trino.spi.ErrorType;
import io.trino.spi.QueryId;
import io.trino.spi.TrinoWarning;
import io.trino.spi.eventlistener.RoutineInfo;
import io.trino.spi.eventlistener.TableInfo;
import io.trino.spi.resourcegroups.QueryType;
import io.trino.spi.resourcegroups.ResourceGroupId;
import io.trino.spi.security.SelectedRole;
import io.trino.sql.analyzer.Output;
import io.trino.transaction.TransactionId;
import jakarta.annotation.Nullable;
import java.net.URI;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.OptionalDouble;
import java.util.Set;
import static com.google.common.base.MoreObjects.toStringHelper;
import static com.google.common.base.Preconditions.checkArgument;
import static java.util.Objects.requireNonNull;
@Immutable
public class QueryInfo
{
private final QueryId queryId;
private final SessionRepresentation session;
private final QueryState state;
private final URI self;
private final List fieldNames;
private final String query;
private final Optional preparedQuery;
private final QueryStats queryStats;
private final Optional setCatalog;
private final Optional setSchema;
private final Optional setPath;
private final Optional setAuthorizationUser;
private final boolean resetAuthorizationUser;
private final Map setSessionProperties;
private final Set resetSessionProperties;
private final Map setRoles;
private final Map addedPreparedStatements;
private final Set deallocatedPreparedStatements;
private final Optional startedTransactionId;
private final boolean clearTransactionId;
private final String updateType;
private final Optional outputStage;
private final List referencedTables;
private final List routines;
private final ExecutionFailureInfo failureInfo;
private final ErrorType errorType;
private final ErrorCode errorCode;
private final List warnings;
private final Set inputs;
private final Optional