次の方法で共有


SchemaInfo Class

  • java.lang.Object
    • Serializable
      • com.microsoft.azure.elasticdb.shard.schema.SchemaInfo

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<ReferenceTableInfo> getReferenceTables()

Read-only list of information concerning all reference tables.

final HashSet<ShardedTableInfo> 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:

reader
offset

Method Details

add

public final void add(ReferenceTableInfo referenceTableInfo)

Adds information about a reference table.

Parameters:

referenceTableInfo - Reference table info.

add

public final void add(ShardedTableInfo shardedTableInfo)

Adds information about a sharded table.

Parameters:

shardedTableInfo - Sharded table info.

afterUnmarshal

public void afterUnmarshal(Unmarshaller unmarshaller, Object parent)

Initialize any non-DataMember objects post deserialization.

Parameters:

unmarshaller
parent

equals

public boolean equals(Object o)

Parameters:

o

getReferenceTables

public final HashSet getReferenceTables()

Read-only list of information concerning all reference tables.

getShardedTables

public final HashSet getShardedTables()

Read-only list of information concerning all sharded tables.

remove

public final boolean remove(ReferenceTableInfo referenceTableInfo)

Removes information about a reference table.

Parameters:

referenceTableInfo - Reference table info.

remove

public final boolean remove(ShardedTableInfo shardedTableInfo)

Removes information about a sharded table.

Parameters:

shardedTableInfo - Sharded table info.

Applies to