public class KeyValuePersistenceSettings extends Object implements Serializable
Constructor and Description |
---|
KeyValuePersistenceSettings(File settingsFile)
Constructs Ignite cache key/value persistence settings.
|
KeyValuePersistenceSettings(org.springframework.core.io.Resource settingsRsrc)
Constructs Ignite cache key/value persistence settings.
|
KeyValuePersistenceSettings(String settings)
Constructs Ignite cache key/value persistence settings.
|
Modifier and Type | Method and Description |
---|---|
List<PojoField> |
getFields()
Returns list of POJO fields to be mapped to Cassandra table columns.
|
List<String> |
getIndexDDLStatements(String table)
Returns DDL statements to create Cassandra table secondary indexes.
|
List<PojoField> |
getKeyFields()
Returns list of Ignite cache key POJO fields to be mapped to Cassandra table columns.
|
KeyPersistenceSettings |
getKeyPersistenceSettings()
Returns persistence settings for Ignite cache keys.
|
String |
getKeyspace()
Returns Cassandra keyspace to use.
|
String |
getKeyspaceDDLStatement()
Returns DDL statement to create Cassandra keyspace.
|
String |
getTable()
Returns Cassandra table to use.
|
List<String> |
getTableColumns()
Returns column names for Cassandra table.
|
String |
getTableDDLStatement(String table)
Returns DDL statement to create Cassandra table.
|
Integer |
getTTL()
Returns ttl to use for while inserting new rows into Cassandra table.
|
List<PojoField> |
getValueFields()
Returns list of Ignite cache value POJO fields to be mapped to Cassandra table columns.
|
ValuePersistenceSettings |
getValuePersistenceSettings()
Returns persistence settings for Ignite cache values.
|
public KeyValuePersistenceSettings(String settings)
settings
- string containing xml with persistence settings for Ignite cache key/valuepublic KeyValuePersistenceSettings(File settingsFile)
settingsFile
- xml file with persistence settings for Ignite cache key/valuepublic KeyValuePersistenceSettings(org.springframework.core.io.Resource settingsRsrc)
settingsRsrc
- resource containing xml with persistence settings for Ignite cache key/valuepublic Integer getTTL()
public String getKeyspace()
public String getTable()
public KeyPersistenceSettings getKeyPersistenceSettings()
public ValuePersistenceSettings getValuePersistenceSettings()
public List<PojoField> getFields()
public List<PojoField> getKeyFields()
public List<PojoField> getValueFields()
public String getKeyspaceDDLStatement()
public List<String> getTableColumns()
public String getTableDDLStatement(String table)
table
- Table name.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019