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() |
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.
|
String |
keyClass(String type)
Gets key class name for provided type.
|
Map<String,String> |
keyClasses() |
Collection<String> |
types()
Gets the collection of types stored in cache.
|
Map<String,String> |
valClasses() |
String |
valueClass(String type)
Gets value class name for provided type.
|
readExternal, writeExternal
String 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 String keyClass(String type)
Use types()
method to get available types.
type
- Type name.null
if type name is unknown.@Nullable String valueClass(String type)
Use types()
method to get available types.
type
- Type name.null
if type name is unknown.@Nullable Map<String,String> fields(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 Fabric : ver. 2.0.0 Release Date : April 30 2017