Class ShardedSchemaAdapter

  • All Implemented Interfaces:
    ISchemaAdapter

    public class ShardedSchemaAdapter
    extends FhirSchemaAdapter
    Adapter implementation used to build the distributed variant of the IBM FHIR Server RDBMS schema. This schema adds a distribution key column to every table identified as distributed. This column is also added to every index and FK relationship as needed. We use a smallint (2 bytes) which represents a signed integer holding values in the range [-32768, 32767]. This provides sufficient spread, assuming we won't be using a database with thousands of nodes.