public interface GridCacheSqlMetadata extends Externalizable
Metadata describes objects stored in the cache and can be used to gather information about what can be queried using Ignite cache queries feature.
| Modifier and Type | Method and Description |
|---|---|
String |
cacheName()
Cache name.
|
Map<String,Map<String,String>> |
fields() |
@Nullable Map<String,String> |
fields(String type)
Gets fields and their class names for provided type.
|
Map<String,Collection<GridCacheSqlIndexMetadata>> |
indexes() |
Collection<GridCacheSqlIndexMetadata> |
indexes(String type)
Gets descriptors of indexes created for provided type.
|
@Nullable String |
keyClass(String type)
Gets key class name for provided type.
|
Map<String,String> |
keyClasses() |
Collection<String> |
notNullFields(String type)
Gets not null fields.
|
Collection<String> |
types()
Gets the collection of types stored in cache.
|
Map<String,String> |
valClasses() |
@Nullable String |
valueClass(String type)
Gets value class name for provided type.
|
readExternal, writeExternalString cacheName()
Collection<String> types()
By default, type name is equal to simple class name
of stored object, but it can depend on implementation
of IndexingSpi.
@Nullable @Nullable String keyClass(String type)
Use types() method to get available types.
type - Type name.null if type name is unknown.@Nullable @Nullable String valueClass(String type)
Use types() method to get available types.
type - Type name.null if type name is unknown.@Nullable @Nullable Map<String,String> fields(String type)
type - Type name.null if type name is unknown.Collection<String> notNullFields(String type)
type - Type name.null if type name is unknown.Map<String,Collection<GridCacheSqlIndexMetadata>> indexes()
Collection<GridCacheSqlIndexMetadata> indexes(String type)
GridCacheSqlIndexMetadata javadoc for more information.type - Type name.GridCacheSqlIndexMetadata
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020