Class DefaultColumnFamilyNameConverter
java.lang.Object
org.openspaces.persistency.cassandra.meta.conversion.DefaultColumnFamilyNameConverter
- All Implemented Interfaces:
ColumnFamilyNameConverter
A
ColumnFamilyNameConverter implementation that works as follows: If the type names
length does not exceed a 48 characters length, the dots in the type name will be replaced by
underscores. Otherwise, the type simple name (without the packages prefix) will be used with the
first 6 chars of the string representation of the given type name MD5 hash to avoid name
collisions. If the above also exceeds a 48 characters length, the simple name will be truncated
to its first 42 characters and concatenated with the MD5 suffix mentioned above.- Since:
- 9.1.1
- Author:
- Dan Kilman
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultColumnFamilyNameConverter
public DefaultColumnFamilyNameConverter()
-
-
Method Details
-
toColumnFamilyName
- Specified by:
toColumnFamilyNamein interfaceColumnFamilyNameConverter- Parameters:
typeName- The type name matching the column family name.- Returns:
- The column family name as it will exist on Cassandra.
-