ShardedTableInfo Class

  • java.lang.Object
    • TableInfo
      • com.microsoft.azure.elasticdb.shard.schema.ShardedTableInfo

public class ShardedTableInfo extends TableInfo

Represents information about a single sharded table.

Constructor Summary

Constructor Description
ShardedTableInfo()
ShardedTableInfo(String tableName, String columnName)

Initializes a new instance of the ShardedTableInfo class.

ShardedTableInfo(String schemaName, String tableName, String columnName)

Initializes a new instance of the ShardedTableInfo class.

Method Summary

Modifier and Type Method and Description
boolean equals(Object obj)

Overrides the Equals() method of Object class. Determines whether the specified object is equal to the current object.

final boolean equals(ShardedTableInfo other)

Determines whether the specified ShardedTableInfo object is equal to the current object.

final String getKeyColumnName()
int hashCode()

Calculates the hash code for this instance.

Inherited Members

Constructor Details

ShardedTableInfo

public ShardedTableInfo()

ShardedTableInfo

public ShardedTableInfo(String tableName, String columnName)

Initializes a new instance of the ShardedTableInfo class.

Parameters:

tableName - Sharded table name.
columnName - Shard key column name.

ShardedTableInfo

public ShardedTableInfo(String schemaName, String tableName, String columnName)

Initializes a new instance of the ShardedTableInfo class.

Parameters:

schemaName - Schema name of the sharded table.
tableName - Sharded table name.
columnName - Shard key column name.

Method Details

equals

public boolean equals(Object obj)

Overrides the Equals() method of Object class. Determines whether the specified object is equal to the current object.

Parameters:

obj - The object to compare with the current ShardedTableInfo object.

Returns:

true if the specified object is equal to the current ShardedTableInfo object; otherwise, false.

equals

public final boolean equals(ShardedTableInfo other)

Determines whether the specified ShardedTableInfo object is equal to the current object.

Parameters:

other - The ShardedTableInfo object to compare with the current object.

Returns:

true if the specified ShardedTableInfo object is equal to the current object; otherwise, false.

getKeyColumnName

public final String getKeyColumnName()

hashCode

public int hashCode()

Calculates the hash code for this instance.

Returns:

Hash code for the object.

Applies to