use of org.apache.hadoop.hdds.utils.db.cache.TableCache.CacheType in project ozone by apache.
the class OmMetadataManagerImpl method initializeOmTables.
/**
* Initialize OM Tables.
*
* @throws IOException
*/
protected void initializeOmTables() throws IOException {
userTable = this.store.getTable(USER_TABLE, String.class, PersistedUserVolumeInfo.class);
checkTableStatus(userTable, USER_TABLE);
CacheType cacheType = CacheType.FULL_CACHE;
volumeTable = this.store.getTable(VOLUME_TABLE, String.class, OmVolumeArgs.class, cacheType);
checkTableStatus(volumeTable, VOLUME_TABLE);
bucketTable = this.store.getTable(BUCKET_TABLE, String.class, OmBucketInfo.class, cacheType);
checkTableStatus(bucketTable, BUCKET_TABLE);
keyTable = this.store.getTable(KEY_TABLE, String.class, OmKeyInfo.class);
checkTableStatus(keyTable, KEY_TABLE);
deletedTable = this.store.getTable(DELETED_TABLE, String.class, RepeatedOmKeyInfo.class);
checkTableStatus(deletedTable, DELETED_TABLE);
openKeyTable = this.store.getTable(OPEN_KEY_TABLE, String.class, OmKeyInfo.class);
checkTableStatus(openKeyTable, OPEN_KEY_TABLE);
multipartInfoTable = this.store.getTable(MULTIPARTINFO_TABLE, String.class, OmMultipartKeyInfo.class);
checkTableStatus(multipartInfoTable, MULTIPARTINFO_TABLE);
dTokenTable = this.store.getTable(DELEGATION_TOKEN_TABLE, OzoneTokenIdentifier.class, Long.class);
checkTableStatus(dTokenTable, DELEGATION_TOKEN_TABLE);
s3SecretTable = this.store.getTable(S3_SECRET_TABLE, String.class, S3SecretValue.class);
checkTableStatus(s3SecretTable, S3_SECRET_TABLE);
prefixTable = this.store.getTable(PREFIX_TABLE, String.class, OmPrefixInfo.class);
checkTableStatus(prefixTable, PREFIX_TABLE);
dirTable = this.store.getTable(DIRECTORY_TABLE, String.class, OmDirectoryInfo.class);
checkTableStatus(dirTable, DIRECTORY_TABLE);
fileTable = this.store.getTable(FILE_TABLE, String.class, OmKeyInfo.class);
checkTableStatus(fileTable, FILE_TABLE);
openFileTable = this.store.getTable(OPEN_FILE_TABLE, String.class, OmKeyInfo.class);
checkTableStatus(openFileTable, OPEN_FILE_TABLE);
deletedDirTable = this.store.getTable(DELETED_DIR_TABLE, String.class, OmKeyInfo.class);
checkTableStatus(deletedDirTable, DELETED_DIR_TABLE);
transactionInfoTable = this.store.getTable(TRANSACTION_INFO_TABLE, String.class, TransactionInfo.class);
checkTableStatus(transactionInfoTable, TRANSACTION_INFO_TABLE);
metaTable = this.store.getTable(META_TABLE, String.class, String.class);
checkTableStatus(metaTable, META_TABLE);
}
Aggregations