Class CacheStarSchemaExample


  • public class CacheStarSchemaExample
    extends java.lang.Object
    Snowflake Schema is a logical arrangement of data in which data is split into dimensions and facts. Dimensions can be referenced or joined by other dimensions or facts, however, facts are generally not referenced by other facts. You can view dimensions as your master or reference data, while facts are usually large data sets of events or other objects that continuously come into the system and may change frequently. In Ignite such architecture is supported via cross-cache queries. By storing dimensions in REPLICATED caches and facts in much larger PARTITIONED caches you can freely execute distributed joins across your whole in-memory data ignite cluster, thus querying your in memory data without any limitations.

    In this example we have two dimensions, DimProduct and DimStore and one fact - FactPurchase. Queries are executed by joining dimensions and facts in various ways.

    Remote nodes can be started with ExampleNodeStartup in another JVM which will start node with examples/config/example-ignite.xml configuration.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Executes example.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CacheStarSchemaExample

        public CacheStarSchemaExample()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
        Executes example.
        Parameters:
        args - Command line arguments, none required.