Search in sources :

Example 11 with ClientSideMetadataProviderException

use of herddb.client.ClientSideMetadataProviderException in project herddb by diennea.

the class HerdDBStatement method executeQuery.

@Override
public ResultSet executeQuery(String sql) throws SQLException {
    try {
        parent.discoverTableSpace(sql);
        ScanResultSet scanResult = this.parent.getConnection().executeScan(parent.getTableSpace(), sql, false, Collections.emptyList(), parent.ensureTransaction(), maxRows, fetchSize, parent.isKeepReadLocks());
        parent.bindToTransaction(scanResult.transactionId);
        return lastResultSet = new HerdDBResultSet(scanResult, this);
    } catch (ClientSideMetadataProviderException | HDBException | InterruptedException ex) {
        throw SQLExceptionUtils.wrapException(ex);
    }
}
Also used : EmptyScanResultSet(herddb.client.impl.EmptyScanResultSet) SingletonScanResultSet(herddb.client.impl.SingletonScanResultSet) ScanResultSet(herddb.client.ScanResultSet) ClientSideMetadataProviderException(herddb.client.ClientSideMetadataProviderException) HDBException(herddb.client.HDBException)

Aggregations

ClientSideMetadataProviderException (herddb.client.ClientSideMetadataProviderException)11 ScanResultSet (herddb.client.ScanResultSet)7 ClientConfiguration (herddb.client.ClientConfiguration)6 HDBClient (herddb.client.HDBClient)6 HDBConnection (herddb.client.HDBConnection)6 HDBException (herddb.client.HDBException)6 Table (herddb.model.Table)6 CreateTableStatement (herddb.model.commands.CreateTableStatement)6 HashSet (java.util.HashSet)6 TableSpaceManager (herddb.core.TableSpaceManager)5 GetResult (herddb.model.GetResult)4 AlterTableSpaceStatement (herddb.model.commands.AlterTableSpaceStatement)4 GetStatement (herddb.model.commands.GetStatement)4 InsertStatement (herddb.model.commands.InsertStatement)4 DMLResult (herddb.client.DMLResult)3 LeaderChangedException (herddb.client.impl.LeaderChangedException)3 Test (org.junit.Test)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 SuppressFBWarnings (edu.umd.cs.findbugs.annotations.SuppressFBWarnings)1 DumpedLogEntry (herddb.backup.DumpedLogEntry)1