Class HierarchyBuilder<HB extends HierarchyBuilder<HB>>

  • All Implemented Interfaces:
    Cloneable
    Direct Known Subclasses:
    BookHierarchyBuilder, CounterpartyHierarchyBuilder, LegalEntityHierarchyBuilder

    public abstract class HierarchyBuilder<HB extends HierarchyBuilder<HB>>
    extends Object
    implements Cloneable
    The HierarchyBuilder is an abstract class that provides a way to make tuples to be stored in a hierarchy based datastore. It follows a standard builder pattern for making objects. This builder will map various fields into a tuple that can be later stored in the Hierarchy datastore. It will convert booleans into "Y" or "N" strings for certain fields. It is expected that builders that extend this class will keep track of the nodes level and store its ancestors in each level above it in the levels part of the tuples. Provides a clone method for this hierarchy builder.
    Author:
    ActiveViam
    • Constructor Detail

      • HierarchyBuilder

        public HierarchyBuilder​(LocalDate asOf,
                                int levels)
    • Method Detail

      • withLeaf

        public HB withLeaf​(String leaf)
      • withLevel

        public HB withLevel​(String name)
      • build

        public abstract Object[] build()