Search in sources :

Example 1 with DiskBasedDMSchemaStorageProvider

use of org.apache.carbondata.core.metadata.schema.table.DiskBasedDMSchemaStorageProvider in project carbondata by apache.

the class DataMapStoreManager method getAllDataMapSchemas.

public List<DataMapSchema> getAllDataMapSchemas() {
    DataMapSchemaStorageProvider provider = new DiskBasedDMSchemaStorageProvider(CarbonProperties.getInstance().getSystemFolderLocation());
    List<DataMapSchema> dataMapSchemas;
    try {
        dataMapSchemas = provider.retrieveAllSchemas();
    } catch (IOException e) {
        throw new RuntimeException(e);
    }
    return dataMapSchemas;
}
Also used : DiskBasedDMSchemaStorageProvider(org.apache.carbondata.core.metadata.schema.table.DiskBasedDMSchemaStorageProvider) DataMapSchema(org.apache.carbondata.core.metadata.schema.table.DataMapSchema) IOException(java.io.IOException) DataMapSchemaStorageProvider(org.apache.carbondata.core.metadata.schema.table.DataMapSchemaStorageProvider)

Aggregations

IOException (java.io.IOException)1 DataMapSchema (org.apache.carbondata.core.metadata.schema.table.DataMapSchema)1 DataMapSchemaStorageProvider (org.apache.carbondata.core.metadata.schema.table.DataMapSchemaStorageProvider)1 DiskBasedDMSchemaStorageProvider (org.apache.carbondata.core.metadata.schema.table.DiskBasedDMSchemaStorageProvider)1