Class SchemaAnnotationsAccess

java.lang.Object
com.darkcollective.relix.semantic.internal.SchemaAnnotationsAccess

public final class SchemaAnnotationsAccess extends Object
How the analyser records a node's schema in a SchemaAnnotations.

SchemaAnnotations is published and a caller only reads it, so its writer is not public there. The analyser lives in this package, so the published class hands its writer over when it loads and the analyser writes through here. The jar does not export this package, so the writer stays the engine's.

  • Method Details

    • install

      public static void install(SchemaAnnotationsAccess.Writer w)
      Called once, by SchemaAnnotations as it loads.
      Parameters:
      w - the writer
    • put

      public static void put(SchemaAnnotations annotations, RelNode node, Schema schema)
      Records schema as node's schema.
      Parameters:
      annotations - the annotations to write into; loading its class installed the writer
      node - the node
      schema - its schema