| Package | Description |
|---|---|
| org.apache.hadoop.hdfs.server.federation.store |
The federation state store tracks persistent values that are shared between
multiple routers.
|
| org.apache.hadoop.hdfs.server.federation.store.driver |
The state store uses modular data storage classes derived from
StateStoreDriver to handle querying, updating and deleting data records.
|
| org.apache.hadoop.hdfs.server.federation.store.driver.impl |
Implementations of state store data providers/drivers.
|
| org.apache.hadoop.hdfs.server.federation.store.records |
Contains the abstract definitions of the state store data records.
|
| org.apache.hadoop.hdfs.server.federation.store.records.impl.pb |
The protobuf implementations of state store data records defined in the
org.apache.hadoop.hdfs.server.federation.store.records package.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
CachedRecordStore<R extends BaseRecord> |
Record store that takes care of caching the records in memory.
|
class |
RecordStore<R extends BaseRecord> |
Store records in the State Store.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T extends BaseRecord> |
StateStoreUtils.filterMultiple(Query<T> query,
java.lang.Iterable<T> records) |
Filters a list of records to find all records matching the query.
|
static <T extends BaseRecord> |
StateStoreUtils.getRecordClass(java.lang.Class<T> clazz) |
Get the base class for a record class.
|
static <T extends BaseRecord> |
StateStoreUtils.getRecordClass(T record) |
Get the base class for a record.
|
static <T extends BaseRecord> |
StateStoreUtils.getRecordName(java.lang.Class<T> clazz) |
Get the base class name for a record.
|
<T extends RecordStore<? extends BaseRecord>> |
StateStoreService.getRecordStores() |
Get the list of all RecordStores.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T extends BaseRecord> |
StateStoreUtils.getRecordClass(java.lang.Class<T> clazz) |
Get the base class for a record class.
|
static <T extends BaseRecord> |
StateStoreUtils.getRecordClass(T record) |
Get the base class for a record.
|
java.util.Collection<java.lang.Class<? extends BaseRecord>> |
StateStoreService.getSupportedRecords() |
List of records supported by this State Store.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract <T extends BaseRecord> |
StateStoreSerializer.deserialize(byte[] byteArray,
java.lang.Class<T> clazz) |
Deserialize a bytes array into a record.
|
abstract <T extends BaseRecord> |
StateStoreSerializer.deserialize(java.lang.String data,
java.lang.Class<T> clazz) |
Deserialize a string into a record.
|
<T extends BaseRecord> |
StateStoreRecordOperations.get(java.lang.Class<T> clazz) |
Get all records of the requested record class from the data store.
|
<T extends BaseRecord> |
StateStoreRecordOperations.get(java.lang.Class<T> clazz,
Query<T> query) |
Get a single record from the store that matches the query.
|
<T extends BaseRecord> |
StateStoreRecordOperations.getMultiple(java.lang.Class<T> clazz,
Query<T> query) |
Get multiple records from the store that match a query.
|
abstract <T extends BaseRecord> |
StateStoreDriver.initRecordStorage(java.lang.String className,
java.lang.Class<T> clazz) |
Initialize storage for a single record class.
|
<T extends BaseRecord> |
StateStoreRecordOperations.put(T record,
boolean allowUpdate,
boolean errorIfExists) |
Creates a single record.
|
<T extends BaseRecord> |
StateStoreRecordOperations.putAll(java.util.List<T> records,
boolean allowUpdate,
boolean errorIfExists) |
Creates multiple records.
|
<T extends BaseRecord> |
StateStoreRecordOperations.remove(java.lang.Class<T> clazz,
Query<T> query) |
Remove multiple records of a specific class that match a query.
|
<T extends BaseRecord> |
StateStoreRecordOperations.remove(T record) |
Remove a single record.
|
<T extends BaseRecord> |
StateStoreRecordOperations.removeAll(java.lang.Class<T> clazz) |
Remove all records of this class from the store.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract byte[] |
StateStoreSerializer.serialize(BaseRecord record) |
Serialize a record into a byte array.
|
abstract java.lang.String |
StateStoreSerializer.serializeString(BaseRecord record) |
Serialize a record into a string.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
StateStoreDriver.init(org.apache.hadoop.conf.Configuration config,
java.lang.String id,
java.util.Collection<java.lang.Class<? extends BaseRecord>> records,
StateStoreMetrics stateStoreMetrics) |
Initialize the state store connection.
|
| Modifier and Type | Method | Description |
|---|---|---|
<T extends BaseRecord> |
StateStoreSerializerPBImpl.deserialize(byte[] byteArray,
java.lang.Class<T> clazz) |
|
<T extends BaseRecord> |
StateStoreSerializerPBImpl.deserialize(java.lang.String data,
java.lang.Class<T> clazz) |
|
<T extends BaseRecord> |
StateStoreBaseImpl.get(java.lang.Class<T> clazz,
Query<T> query) |
|
<T extends BaseRecord> |
StateStoreFileBaseImpl.get(java.lang.Class<T> clazz) |
|
<T extends BaseRecord> |
StateStoreMySQLImpl.get(java.lang.Class<T> clazz) |
|
<T extends BaseRecord> |
StateStoreZooKeeperImpl.get(java.lang.Class<T> clazz) |
|
<T extends BaseRecord> |
StateStoreBaseImpl.getMultiple(java.lang.Class<T> clazz,
Query<T> query) |
|
protected abstract <T extends BaseRecord> |
StateStoreFileBaseImpl.getReader(java.lang.String path) |
Get the reader of a record for the file system.
|
protected <T extends BaseRecord> |
StateStoreFileImpl.getReader(java.lang.String filename) |
|
protected <T extends BaseRecord> |
StateStoreFileSystemImpl.getReader(java.lang.String pathName) |
|
abstract <T extends BaseRecord> |
StateStoreFileBaseImpl.getWriter(java.lang.String path) |
Get the writer of a record for the file system.
|
<T extends BaseRecord> |
StateStoreFileImpl.getWriter(java.lang.String filename) |
|
<T extends BaseRecord> |
StateStoreFileSystemImpl.getWriter(java.lang.String pathName) |
|
<T extends BaseRecord> |
StateStoreFileBaseImpl.initRecordStorage(java.lang.String className,
java.lang.Class<T> recordClass) |
|
<T extends BaseRecord> |
StateStoreMySQLImpl.initRecordStorage(java.lang.String className,
java.lang.Class<T> clazz) |
|
<T extends BaseRecord> |
StateStoreZooKeeperImpl.initRecordStorage(java.lang.String className,
java.lang.Class<T> clazz) |
|
protected <T extends BaseRecord> |
StateStoreSerializableImpl.newRecord(java.lang.String data,
java.lang.Class<T> clazz,
boolean includeDates) |
Creates a record from an input data string.
|
<T extends BaseRecord> |
StateStoreBaseImpl.put(T record,
boolean allowUpdate,
boolean errorIfExists) |
|
<T extends BaseRecord> |
StateStoreFileBaseImpl.putAll(java.util.List<T> records,
boolean allowUpdate,
boolean errorIfExists) |
|
<T extends BaseRecord> |
StateStoreMySQLImpl.putAll(java.util.List<T> records,
boolean allowUpdate,
boolean errorIfExists) |
|
<T extends BaseRecord> |
StateStoreZooKeeperImpl.putAll(java.util.List<T> records,
boolean update,
boolean error) |
|
<T extends BaseRecord> |
StateStoreBaseImpl.remove(T record) |
|
<T extends BaseRecord> |
StateStoreFileBaseImpl.remove(java.lang.Class<T> clazz,
Query<T> query) |
|
<T extends BaseRecord> |
StateStoreMySQLImpl.remove(java.lang.Class<T> clazz,
Query<T> query) |
|
<T extends BaseRecord> |
StateStoreZooKeeperImpl.remove(java.lang.Class<T> clazz,
Query<T> query) |
|
<T extends BaseRecord> |
StateStoreFileBaseImpl.removeAll(java.lang.Class<T> clazz) |
|
<T extends BaseRecord> |
StateStoreMySQLImpl.removeAll(java.lang.Class<T> clazz) |
|
<T extends BaseRecord> |
StateStoreZooKeeperImpl.removeAll(java.lang.Class<T> clazz) |
|
protected <T extends BaseRecord> |
StateStoreSerializableImpl.serialize(T record) |
Serialize a record using the serializer.
|
protected <T extends BaseRecord> |
StateStoreSerializableImpl.serializeString(T record) |
Serialize a record using the serializer.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected static java.lang.String |
StateStoreSerializableImpl.getPrimaryKey(BaseRecord record) |
Get the primary key for a record.
|
byte[] |
StateStoreSerializerPBImpl.serialize(BaseRecord record) |
|
java.lang.String |
StateStoreSerializerPBImpl.serializeString(BaseRecord record) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
StateStoreSerializableImpl.init(org.apache.hadoop.conf.Configuration config,
java.lang.String id,
java.util.Collection<java.lang.Class<? extends BaseRecord>> records,
StateStoreMetrics metrics) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
Query<T extends BaseRecord> |
Check if a record matches a query.
|
class |
QueryResult<T extends BaseRecord> |
Encapsulates a state store query result that includes a set of records and a
time stamp for the result.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
DisabledNameservice |
Data record indicating a specific name service ID has been disabled and
is no longer valid.
|
class |
MembershipState |
Data schema for storing NN registration information in the
StateStoreService. |
class |
MembershipStats |
Data schema for storing NN stats in the
StateStoreService. |
class |
MountTable |
Data schema for
MountTableStore data stored in the StateStoreService. |
class |
RouterState |
Entry to log the state of a
Router in the
StateStoreService. |
class |
StateStoreVersion |
Entry to track the version of the State Store data stored in the State Store
by a Router.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
BaseRecord.compareTo(BaseRecord record) |
|
int |
MembershipState.compareTo(BaseRecord record) |
First use the comparator of the BaseRecord to compare the date modified.
|
int |
RouterState.compareTo(BaseRecord other) |
|
boolean |
BaseRecord.like(BaseRecord other) |
Check if this record matches a partial record.
|
boolean |
MembershipState.like(BaseRecord o) |
|
boolean |
MountTable.like(BaseRecord o) |
|
boolean |
RouterState.like(BaseRecord o) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
DisabledNameservicePBImpl |
Protobuf implementation of the
DisabledNameservice record. |
class |
MembershipStatePBImpl |
Protobuf implementation of the MembershipState record.
|
class |
MembershipStatsPBImpl |
Protobuf implementation of the MembershipStats record.
|
class |
MountTablePBImpl |
Protobuf implementation of the MountTable record.
|
class |
RouterStatePBImpl |
Protobuf implementation of the RouterState record.
|
class |
StateStoreVersionPBImpl |
Protobuf implementation of the StateStoreVersion record.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.