public static class ShardingMetadata.SubKeyMetadata extends Object implements Comparable<ShardingMetadata.SubKeyMetadata>
| Constructor and Description | 
|---|
SubKeyMetadata(int index, SQLType dataType, int charSet)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compareTo(ShardingMetadata.SubKeyMetadata o)
Method used to defined natural ordering for the sub key column info based on the column index. 
 | 
public SubKeyMetadata(int index,
                      SQLType dataType,
                      int charSet)
index - column index of the subkeydataType - type of the subkey to be constructedcharSet - character set of the subkey in the databasepublic int compareTo(ShardingMetadata.SubKeyMetadata o)
compareTo in interface Comparable<ShardingMetadata.SubKeyMetadata>o - SubKeyMetadata to which this object is to be compared.Comparable.compareTo(java.lang.Object)