25.01.2015 Views

Using Caché Multi-Dimensional Storage - InterSystems ...

Using Caché Multi-Dimensional Storage - InterSystems ...

Using Caché Multi-Dimensional Storage - InterSystems ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table of Contents<br />

1 Introduction ..................................................................................................................... 1<br />

1.1 Features .................................................................................................................... 1<br />

1.2 Examples .................................................................................................................. 3<br />

1.3 Use in Applications .................................................................................................. 4<br />

2 Global Structure .............................................................................................................. 5<br />

2.1 Logical Structure of Globals .................................................................................... 5<br />

2.1.1 Global Naming Conventions .......................................................................... 5<br />

2.1.2 Subscript Naming Conventions and Limits .................................................... 6<br />

2.1.3 Global Data ..................................................................................................... 7<br />

2.1.4 Global Subscripts ........................................................................................... 8<br />

2.1.5 Collation ......................................................................................................... 8<br />

2.2 Physical Structure of Globals ................................................................................... 8<br />

2.2.1 How Globals Are Stored ................................................................................. 9<br />

2.3 Referencing Globals ............................................................................................... 10<br />

2.3.1 Setting Global Mapping ............................................................................... 10<br />

2.3.2 Extended Global References ........................................................................ 11<br />

3 <strong>Using</strong> <strong>Multi</strong>dimensional <strong>Storage</strong> (Globals) ................................................................. 15<br />

3.1 Storing Data in Globals .......................................................................................... 15<br />

3.1.1 Creating Globals ........................................................................................... 15<br />

3.1.2 Storing Data in Global Nodes ...................................................................... 16<br />

3.1.3 Storing Structured Data in Global Nodes ..................................................... 17<br />

3.2 Deleting Global Nodes ........................................................................................... 18<br />

3.3 Testing the Existence of a Global Node ................................................................. 19<br />

3.4 Retrieving the Value of a Global Node .................................................................. 19<br />

3.4.1 The $GET Function ...................................................................................... 20<br />

3.4.2 The WRITE, ZWRITE, and ZZDUMP Commands ..................................... 20<br />

3.5 Traversing Data within a Global ............................................................................ 20<br />

3.5.1 The $ORDER (Next / Previous) Function .................................................... 20<br />

3.5.2 Looping Over a Global ................................................................................. 22<br />

3.5.3 The $QUERY Function ................................................................................ 23<br />

3.6 Copying Data within Globals ................................................................................. 24<br />

3.7 Maintaining Shared Counters within Globals ........................................................ 24<br />

3.8 Temporary Globals ................................................................................................. 25<br />

<strong>Using</strong> <strong>Caché</strong> <strong>Multi</strong>-<strong>Dimensional</strong> <strong>Storage</strong><br />

iii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!