Examples of SchemaNotFoundException


Examples of com.cloudera.cdk.data.SchemaNotFoundException

        return entityMappers.get(resultVersion).mapToEntity(result);
      } else {
        String msg = "Could not find schema for " + tableName + ", "
            + entityName + ", with version " + resultVersion;
        LOG.error(msg);
        throw new SchemaNotFoundException(msg);
      }
    }
  }
View Full Code Here

Examples of com.cloudera.cdk.data.SchemaNotFoundException

    if (greatestVersionedSchema == null) {
      String msg = "No schema versions for " + managedSchema.getTable() + ", "
          + managedSchema.getName();
      LOG.error(msg);
      throw new SchemaNotFoundException(msg);
    }

    return greatestVersionedSchema;
  }
View Full Code Here

Examples of com.cloudera.cdk.data.SchemaNotFoundException

      return schemaParser.parseEntitySchema(schema);
    } else {
      String msg = "Could not find managed schema for " + tableName + ", "
          + entityName + ", and version " + Integer.toString(version);
      LOG.error(msg);
      throw new SchemaNotFoundException(msg);
    }
  }
View Full Code Here

Examples of com.cloudera.cdk.data.SchemaNotFoundException

      refreshManagedSchemaCache(tableName, entityName);
      managedSchema = getManagedSchemaFromSchemaMap(tableName, entityName);
      if (managedSchema == null) {
        String msg = "Could not find managed schemas for " + tableName + ", "
            + entityName;
        throw new SchemaNotFoundException(msg);
      }
    }
    return managedSchema;
  }
View Full Code Here

Examples of com.facebook.presto.spi.SchemaNotFoundException

        }

        if (schema.equals(TEST_SCHEMA)) {
            return ImmutableList.of(TEST_TABLE);
        }
        throw new SchemaNotFoundException(schema);
    }
View Full Code Here

Examples of com.facebook.presto.spi.SchemaNotFoundException

        if (throwException) {
            throw new IllegalStateException();
        }

        if (!schema.equals(TEST_SCHEMA)) {
            throw new SchemaNotFoundException(schema);
        }
    }
View Full Code Here

Examples of com.facebook.presto.spi.SchemaNotFoundException

    {
        try {
            return metastore.getDatabase(database);
        }
        catch (NoSuchObjectException e) {
            throw new SchemaNotFoundException(database);
        }
    }
View Full Code Here

Examples of com.facebook.presto.spi.SchemaNotFoundException

            {
                return session.getCluster().getMetadata().getKeyspace(schema);
            }
        });
        if (keyspaceMetadata == null) {
            throw new SchemaNotFoundException(schema);
        }
        return keyspaceMetadata;
    }
View Full Code Here

Examples of com.facebook.presto.spi.SchemaNotFoundException

    private KeyspaceMetadata getCheckedKeyspaceMetadata(String schema)
            throws SchemaNotFoundException
    {
        KeyspaceMetadata meta = session.getCluster().getMetadata().getKeyspace(schema);
        if (meta == null) {
            throw new SchemaNotFoundException(schema);
        }
        return meta;
    }
View Full Code Here

Examples of com.facebook.presto.spi.SchemaNotFoundException

    {
        try {
            return metastore.getDatabase(database);
        }
        catch (NoSuchObjectException e) {
            throw new SchemaNotFoundException(database);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.