Search in sources :

Example 1 with SchemaUnknownException

use of io.crate.exceptions.SchemaUnknownException in project crate by crate.

the class Schemas method getSchemaInfo.

private SchemaInfo getSchemaInfo(TableIdent ident) {
    String schemaName = firstNonNull(ident.schema(), DEFAULT_SCHEMA_NAME);
    SchemaInfo schemaInfo = schemas.get(schemaName);
    if (schemaInfo == null) {
        throw new SchemaUnknownException(schemaName);
    }
    return schemaInfo;
}
Also used : SchemaUnknownException(io.crate.exceptions.SchemaUnknownException) BlobSchemaInfo(io.crate.metadata.blob.BlobSchemaInfo) SysSchemaInfo(io.crate.metadata.sys.SysSchemaInfo) SchemaInfo(io.crate.metadata.table.SchemaInfo) InformationSchemaInfo(io.crate.metadata.information.InformationSchemaInfo)

Aggregations

SchemaUnknownException (io.crate.exceptions.SchemaUnknownException)1 BlobSchemaInfo (io.crate.metadata.blob.BlobSchemaInfo)1 InformationSchemaInfo (io.crate.metadata.information.InformationSchemaInfo)1 SysSchemaInfo (io.crate.metadata.sys.SysSchemaInfo)1 SchemaInfo (io.crate.metadata.table.SchemaInfo)1