public final class StateStoreUtils
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static <T extends BaseRecord> |
filterMultiple(Query<T> query,
java.lang.Iterable<T> records) |
Filters a list of records to find all records matching the query.
|
static java.lang.String |
getHostPortString(java.net.InetSocketAddress address) |
Returns address in form of host:port, empty string if address is null.
|
static <T extends BaseRecord> |
getRecordClass(java.lang.Class<T> clazz) |
Get the base class for a record class.
|
static <T extends BaseRecord> |
getRecordClass(T record) |
Get the base class for a record.
|
static <T extends BaseRecord> |
getRecordName(java.lang.Class<T> clazz) |
Get the base class name for a record.
|
public static <T extends BaseRecord> java.lang.Class<? extends BaseRecord> getRecordClass(java.lang.Class<T> clazz)
T - Type of the class of the data record to check.clazz - Class of the data record to check.public static <T extends BaseRecord> java.lang.Class<? extends BaseRecord> getRecordClass(T record)
T - Type of the class of the data record.record - Record to check its main class.public static <T extends BaseRecord> java.lang.String getRecordName(java.lang.Class<T> clazz)
T - Type of the class of the data record.clazz - Class of the data record to check.public static <T extends BaseRecord> java.util.List<T> filterMultiple(Query<T> query, java.lang.Iterable<T> records)
T - Type of the class of the data record.query - Map of field names and objects to use to filter results.records - List of data records to filter.public static java.lang.String getHostPortString(java.net.InetSocketAddress address)
address - addressCopyright © 2008–2025 Apache Software Foundation. All rights reserved.