Uses of Class
org.apache.hadoop.hdfs.server.federation.store.records.BaseRecord
Packages that use BaseRecord
Package
Description
The federation state store tracks persistent values that are shared between
multiple routers.
The state store uses modular data storage classes derived from
StateStoreDriver to handle querying, updating and deleting data records.
Implementations of state store data providers/drivers.
Contains the abstract definitions of the state store data records.
The protobuf implementations of state store data records defined in the
org.apache.hadoop.hdfs.server.federation.store.records package.
-
Uses of BaseRecord in org.apache.hadoop.hdfs.server.federation.store
Classes in org.apache.hadoop.hdfs.server.federation.store with type parameters of type BaseRecordModifier and TypeClassDescriptionclassCachedRecordStore<R extends BaseRecord>Record store that takes care of caching the records in memory.classRecordStore<R extends BaseRecord>Store records in the State Store.Methods in org.apache.hadoop.hdfs.server.federation.store with type parameters of type BaseRecordModifier and TypeMethodDescriptionstatic <T extends BaseRecord>
List<T>StateStoreUtils.filterMultiple(Query<T> query, Iterable<T> records) Filters a list of records to find all records matching the query.static <T extends BaseRecord>
Class<? extends BaseRecord>StateStoreUtils.getRecordClass(Class<T> clazz) Get the base class for a record class.static <T extends BaseRecord>
Class<? extends BaseRecord>StateStoreUtils.getRecordClass(T record) Get the base class for a record.static <T extends BaseRecord>
StringStateStoreUtils.getRecordName(Class<T> clazz) Get the base class name for a record.<T extends RecordStore<? extends BaseRecord>>
List<T>StateStoreService.getRecordStores()Get the list of all RecordStores.Methods in org.apache.hadoop.hdfs.server.federation.store that return types with arguments of type BaseRecordModifier and TypeMethodDescriptionstatic <T extends BaseRecord>
Class<? extends BaseRecord>StateStoreUtils.getRecordClass(Class<T> clazz) Get the base class for a record class.static <T extends BaseRecord>
Class<? extends BaseRecord>StateStoreUtils.getRecordClass(T record) Get the base class for a record.Collection<Class<? extends BaseRecord>>StateStoreService.getSupportedRecords()List of records supported by this State Store. -
Uses of BaseRecord in org.apache.hadoop.hdfs.server.federation.store.driver
Methods in org.apache.hadoop.hdfs.server.federation.store.driver with type parameters of type BaseRecordModifier and TypeMethodDescriptionabstract <T extends BaseRecord>
TStateStoreSerializer.deserialize(byte[] byteArray, Class<T> clazz) Deserialize a bytes array into a record.abstract <T extends BaseRecord>
TStateStoreSerializer.deserialize(String data, Class<T> clazz) Deserialize a string into a record.<T extends BaseRecord>
QueryResult<T>Get all records of the requested record class from the data store.<T extends BaseRecord>
TGet a single record from the store that matches the query.<T extends BaseRecord>
List<T>StateStoreRecordOperations.getMultiple(Class<T> clazz, Query<T> query) Get multiple records from the store that match a query.<R extends BaseRecord>
List<R>StateStoreDriver.handleOverwriteAndDelete(List<R> commitRecords, List<R> deleteRecords) Try to overwrite records in commitRecords and remove records in deleteRecords.abstract <T extends BaseRecord>
booleanStateStoreDriver.initRecordStorage(String className, Class<T> clazz) Initialize storage for a single record class.<T extends BaseRecord>
booleanStateStoreRecordOperations.put(T record, boolean allowUpdate, boolean errorIfExists) Creates a single record.<T extends BaseRecord>
StateStoreOperationResultCreates multiple records.<T extends BaseRecord>
Map<Query<T>,Integer> Remove all records of a specific class that match any query in a list of queries.<T extends BaseRecord>
intRemove multiple records of a specific class that match a query.<T extends BaseRecord>
booleanStateStoreRecordOperations.remove(T record) Remove a single record.<T extends BaseRecord>
booleanRemove all records of this class from the store.<T extends BaseRecord>
Map<T,Boolean> StateStoreRecordOperations.removeMultiple(List<T> records) Remove multiple records.Methods in org.apache.hadoop.hdfs.server.federation.store.driver with parameters of type BaseRecordModifier and TypeMethodDescriptionabstract byte[]StateStoreSerializer.serialize(BaseRecord record) Serialize a record into a byte array.abstract StringStateStoreSerializer.serializeString(BaseRecord record) Serialize a record into a string.Method parameters in org.apache.hadoop.hdfs.server.federation.store.driver with type arguments of type BaseRecordModifier and TypeMethodDescriptionbooleanStateStoreDriver.init(org.apache.hadoop.conf.Configuration config, String id, Collection<Class<? extends BaseRecord>> records, StateStoreMetrics stateStoreMetrics) Initialize the state store connection. -
Uses of BaseRecord in org.apache.hadoop.hdfs.server.federation.store.driver.impl
Methods in org.apache.hadoop.hdfs.server.federation.store.driver.impl with type parameters of type BaseRecordModifier and TypeMethodDescription<T extends BaseRecord>
TStateStoreSerializerPBImpl.deserialize(byte[] byteArray, Class<T> clazz) <T extends BaseRecord>
TStateStoreSerializerPBImpl.deserialize(String data, Class<T> clazz) <T extends BaseRecord>
T<T extends BaseRecord>
QueryResult<T><T extends BaseRecord>
QueryResult<T><T extends BaseRecord>
QueryResult<T><T extends BaseRecord>
List<T>StateStoreBaseImpl.getMultiple(Class<T> clazz, Query<T> query) protected abstract <T extends BaseRecord>
BufferedReaderGet the reader of a record for the file system.protected <T extends BaseRecord>
BufferedReaderprotected <T extends BaseRecord>
BufferedReaderabstract <T extends BaseRecord>
BufferedWriterGet the writer of a record for the file system.<T extends BaseRecord>
BufferedWriter<T extends BaseRecord>
BufferedWriter<T extends BaseRecord>
booleanStateStoreFileBaseImpl.initRecordStorage(String className, Class<T> recordClass) <T extends BaseRecord>
booleanStateStoreMySQLImpl.initRecordStorage(String className, Class<T> clazz) <T extends BaseRecord>
booleanStateStoreZooKeeperImpl.initRecordStorage(String className, Class<T> clazz) protected <T extends BaseRecord>
TCreates a record from an input data string.<T extends BaseRecord>
booleanStateStoreBaseImpl.put(T record, boolean allowUpdate, boolean errorIfExists) <T extends BaseRecord>
StateStoreOperationResult<T extends BaseRecord>
StateStoreOperationResult<T extends BaseRecord>
StateStoreOperationResult<T extends BaseRecord>
Map<Query<T>,Integer> <T extends BaseRecord>
booleanStateStoreBaseImpl.remove(T record) <T extends BaseRecord>
int<T extends BaseRecord>
int<T extends BaseRecord>
Map<Query<T>,Integer> <T extends BaseRecord>
int<T extends BaseRecord>
boolean<T extends BaseRecord>
boolean<T extends BaseRecord>
boolean<T extends BaseRecord>
Map<T,Boolean> StateStoreBaseImpl.removeMultiple(List<T> records) protected <T extends BaseRecord>
byte[]StateStoreSerializableImpl.serialize(T record) Serialize a record using the serializer.protected <T extends BaseRecord>
StringStateStoreSerializableImpl.serializeString(T record) Serialize a record using the serializer.Methods in org.apache.hadoop.hdfs.server.federation.store.driver.impl with parameters of type BaseRecordModifier and TypeMethodDescriptionprotected static StringStateStoreSerializableImpl.getPrimaryKey(BaseRecord record) Get the primary key for a record.byte[]StateStoreSerializerPBImpl.serialize(BaseRecord record) StateStoreSerializerPBImpl.serializeString(BaseRecord record) Method parameters in org.apache.hadoop.hdfs.server.federation.store.driver.impl with type arguments of type BaseRecordModifier and TypeMethodDescriptionbooleanStateStoreSerializableImpl.init(org.apache.hadoop.conf.Configuration config, String id, Collection<Class<? extends BaseRecord>> records, StateStoreMetrics metrics) -
Uses of BaseRecord in org.apache.hadoop.hdfs.server.federation.store.records
Classes in org.apache.hadoop.hdfs.server.federation.store.records with type parameters of type BaseRecordModifier and TypeClassDescriptionclassQuery<T extends BaseRecord>Check if a record matches a query.classQueryResult<T extends BaseRecord>Encapsulates a state store query result that includes a set of records and a time stamp for the result.Subclasses of BaseRecord in org.apache.hadoop.hdfs.server.federation.store.recordsModifier and TypeClassDescriptionclassData record indicating a specific name service ID has been disabled and is no longer valid.classData schema for storing NN registration information in theStateStoreService.classData schema for storing NN stats in theStateStoreService.classData schema forMountTableStoredata stored in theStateStoreService.classEntry to log the state of aRouterin theStateStoreService.classEntry to track the version of the State Store data stored in the State Store by a Router.Methods in org.apache.hadoop.hdfs.server.federation.store.records with parameters of type BaseRecordModifier and TypeMethodDescriptionintBaseRecord.compareTo(BaseRecord record) intMembershipState.compareTo(BaseRecord record) First use the comparator of the BaseRecord to compare the date modified.intRouterState.compareTo(BaseRecord other) booleanBaseRecord.like(BaseRecord other) Check if this record matches a partial record.booleanMembershipState.like(BaseRecord o) booleanMountTable.like(BaseRecord o) booleanRouterState.like(BaseRecord o) -
Uses of BaseRecord in org.apache.hadoop.hdfs.server.federation.store.records.impl.pb
Subclasses of BaseRecord in org.apache.hadoop.hdfs.server.federation.store.records.impl.pbModifier and TypeClassDescriptionclassProtobuf implementation of theDisabledNameservicerecord.classProtobuf implementation of the MembershipState record.classProtobuf implementation of the MembershipStats record.classProtobuf implementation of the MountTable record.classProtobuf implementation of the RouterState record.classProtobuf implementation of the StateStoreVersion record.