docs.intersystems.com
InterSystems IRIS Data Platform 2019.2  /  Class Definition Reference

Class Definition Reference
Abstract
Next section
InterSystems: The power behind what matters   
Search:  


Specifies that an index is abstract.
Usage
To specify that an index is abstract, use the following syntax:
Index MyIndex [ Abstract ];
Note:
When you create a sharded table, an abstract shard key index is generated automatically and there is no need to define one.
Details
Abstract indices are intended for use only with sharded tables. They contain no data and thus have no storage (no index global). A sharded table has exactly one abstract index, called the shard key index. The purpose of a shard key index is to serve as the key that determines the shard in which a row resides.
If an index is defined as abstract, the index is not accessible or usable via methods or via SQL. If you also try to mark this index as unique or try to use it within a primary key, those constraints are ignored.
You cannot define an IdKey index as abstract. If you attempt to do so, a class compilation error will result.
You can use this keyword on an existing index to make it abstract. This will not delete any existing data in the index.
Default
The default for the Abstract keyword is false.
See Also


Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-08-19 05:43:38