SchemaInfo Class
- java.
lang. Object - Serializable
- com.
microsoft. azure. elasticdb. shard. schema. SchemaInfo
- com.
public class SchemaInfo
Represents information identifying the list of sharded tables and the list of reference tables associated with a sharding scheme. Reference tables are replicated across shards. This class is thread safe.
Constructor Summary
Constructor | Description |
---|---|
SchemaInfo() |
Initializes a new instance of the SchemaInfo class. |
SchemaInfo(ResultSet reader, int offset) |
Initializes a new instance of the SchemaInfo class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
final void |
add(ReferenceTableInfo referenceTableInfo)
Adds information about a reference table. |
final void |
add(ShardedTableInfo shardedTableInfo)
Adds information about a sharded table. |
void |
afterUnmarshal(Unmarshaller unmarshaller, Object parent)
Initialize any non-DataMember objects post deserialization. |
boolean | equals(Object o) |
final HashSet<Reference |
getReferenceTables()
Read-only list of information concerning all reference tables. |
final HashSet<Sharded |
getShardedTables()
Read-only list of information concerning all sharded tables. |
final boolean |
remove(ReferenceTableInfo referenceTableInfo)
Removes information about a reference table. |
final boolean |
remove(ShardedTableInfo shardedTableInfo)
Removes information about a sharded table. |
Constructor Details
SchemaInfo
public SchemaInfo()
Initializes a new instance of the SchemaInfo class.
SchemaInfo
public SchemaInfo(ResultSet reader, int offset)
Initializes a new instance of the SchemaInfo class.
Parameters:
Method Details
add
public final void add(ReferenceTableInfo referenceTableInfo)
Adds information about a reference table.
Parameters:
add
public final void add(ShardedTableInfo shardedTableInfo)
Adds information about a sharded table.
Parameters:
afterUnmarshal
public void afterUnmarshal(Unmarshaller unmarshaller, Object parent)
Initialize any non-DataMember objects post deserialization.
Parameters:
equals
public boolean equals(Object o)
Parameters:
getReferenceTables
public final HashSet
Read-only list of information concerning all reference tables.
getShardedTables
public final HashSet
Read-only list of information concerning all sharded tables.
remove
public final boolean remove(ReferenceTableInfo referenceTableInfo)
Removes information about a reference table.
Parameters:
remove
public final boolean remove(ShardedTableInfo shardedTableInfo)
Removes information about a sharded table.
Parameters:
Applies to
Azure SDK for Java