io.trino.transaction.NoOpTransactionManager Maven / Gradle / Ivy
/*
* 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.transaction;
import com.google.common.util.concurrent.ListenableFuture;
import io.trino.metadata.CatalogInfo;
import io.trino.metadata.CatalogMetadata;
import io.trino.spi.connector.CatalogHandle;
import io.trino.spi.connector.ConnectorTransactionHandle;
import io.trino.spi.transaction.IsolationLevel;
import java.util.List;
import java.util.Optional;
import java.util.Set;
/**
* Used on workers.
*/
public class NoOpTransactionManager
implements TransactionManager
{
@Override
public boolean transactionExists(TransactionId transactionId)
{
throw new UnsupportedOperationException();
}
@Override
public TransactionInfo getTransactionInfo(TransactionId transactionId)
{
throw new UnsupportedOperationException();
}
@Override
public Optional getTransactionInfoIfExist(TransactionId transactionId)
{
throw new UnsupportedOperationException();
}
@Override
public List getAllTransactionInfos()
{
throw new UnsupportedOperationException();
}
@Override
public Set getTransactionsUsingCatalog(CatalogHandle catalogHandle)
{
throw new UnsupportedOperationException();
}
@Override
public TransactionId beginTransaction(boolean autoCommitContext)
{
throw new UnsupportedOperationException();
}
@Override
public TransactionId beginTransaction(IsolationLevel isolationLevel, boolean readOnly, boolean autoCommitContext)
{
throw new UnsupportedOperationException();
}
@Override
public List getCatalogs(TransactionId transactionId)
{
throw new UnsupportedOperationException();
}
@Override
public List getActiveCatalogs(TransactionId transactionId)
{
throw new UnsupportedOperationException();
}
@Override
public Optional getCatalogHandle(TransactionId transactionId, String catalogName)
{
throw new UnsupportedOperationException();
}
@Override
public Optional getOptionalCatalogMetadata(TransactionId transactionId, String catalogName)
{
throw new UnsupportedOperationException();
}
@Override
public CatalogMetadata getCatalogMetadata(TransactionId transactionId, CatalogHandle catalogHandle)
{
throw new UnsupportedOperationException();
}
@Override
public CatalogMetadata getCatalogMetadataForWrite(TransactionId transactionId, CatalogHandle catalogHandle)
{
throw new UnsupportedOperationException();
}
@Override
public CatalogMetadata getCatalogMetadataForWrite(TransactionId transactionId, String catalogName)
{
throw new UnsupportedOperationException();
}
@Override
public ConnectorTransactionHandle getConnectorTransaction(TransactionId transactionId, String catalogName)
{
throw new UnsupportedOperationException();
}
@Override
public ConnectorTransactionHandle getConnectorTransaction(TransactionId transactionId, CatalogHandle catalogHandle)
{
throw new UnsupportedOperationException();
}
@Override
public void checkAndSetActive(TransactionId transactionId)
{
throw new UnsupportedOperationException();
}
@Override
public void trySetActive(TransactionId transactionId)
{
throw new UnsupportedOperationException();
}
@Override
public void trySetInactive(TransactionId transactionId)
{
throw new UnsupportedOperationException();
}
@Override
public ListenableFuture asyncCommit(TransactionId transactionId)
{
throw new UnsupportedOperationException();
}
@Override
public ListenableFuture asyncAbort(TransactionId transactionId)
{
throw new UnsupportedOperationException();
}
@Override
public void blockCommit(TransactionId transactionId, String reason)
{
throw new UnsupportedOperationException();
}
@Override
public void fail(TransactionId transactionId)
{
throw new UnsupportedOperationException();
}
}