Class SequenceStructureHandler

java.lang.Object
org.gridgain.internal.snapshots.structure.SequenceStructureHandler
All Implemented Interfaces:
StructureHandler

public class SequenceStructureHandler extends Object implements StructureHandler
Implementation of StructureHandler for sequences.
  • Constructor Details

    • SequenceStructureHandler

      public SequenceStructureHandler()
  • Method Details

    • getStructures

      public Set<Structure> getStructures(org.apache.ignite.internal.catalog.Catalog catalog)
      Description copied from interface: StructureHandler
      Retrieves all structures from the given catalog.
      Specified by:
      getStructures in interface StructureHandler
    • getStructure

      @Nullable public @Nullable Structure getStructure(org.apache.ignite.internal.catalog.Catalog catalog, org.apache.ignite.internal.catalog.descriptors.CatalogSchemaDescriptor schema, String structureName)
      Description copied from interface: StructureHandler
      Retrieves structure by name from the given schema.
      Specified by:
      getStructure in interface StructureHandler
    • tryRestoreStructure

      public boolean tryRestoreStructure(org.apache.ignite.internal.catalog.UpdateContext updateContext, CommandState commandState, StructureView view, int schemaId, int tableId, AtomicInteger nextGeneratedStructureId)
      Description copied from interface: StructureHandler
      If given view matches the handler, adds commands to command state to restore the given structure and returns true.
      Specified by:
      tryRestoreStructure in interface StructureHandler
    • tryDropStructure

      public boolean tryDropStructure(org.apache.ignite.internal.catalog.UpdateContext updateContext, CommandState commandState, StructureView view)
      Description copied from interface: StructureHandler
      If given view matches the handler, adds commands to command state to drop corresponding structure and returns true.
      Specified by:
      tryDropStructure in interface StructureHandler
    • createStructureDescriptors

      public Set<StructureView> createStructureDescriptors(org.apache.ignite.internal.catalog.Catalog catalog, Set<Integer> structureIds)
      Description copied from interface: StructureHandler
      Creates descriptors for the given structure IDs.
      Specified by:
      createStructureDescriptors in interface StructureHandler
    • dependenciesForTables

      public Set<Structure> dependenciesForTables(org.apache.ignite.internal.catalog.Catalog catalog, Collection<org.apache.ignite.internal.catalog.descriptors.CatalogTableDescriptor> tables)
      Description copied from interface: StructureHandler
      Retrieves structures required for the given tables.
      Specified by:
      dependenciesForTables in interface StructureHandler