Class SequenceStructureHandler
java.lang.Object
org.gridgain.internal.snapshots.structure.SequenceStructureHandler
- All Implemented Interfaces:
StructureHandler
Implementation of
StructureHandler for sequences.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.gridgain.internal.snapshots.structure.StructureHandler
StructureHandler.StructureHandlersHolder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateStructureDescriptors(org.apache.ignite.internal.catalog.Catalog catalog, Set<Integer> structureIds) Creates descriptors for the given structure IDs.dependenciesForTables(org.apache.ignite.internal.catalog.Catalog catalog, Collection<org.apache.ignite.internal.catalog.descriptors.CatalogTableDescriptor> tables) Retrieves structures required for the given tables.@Nullable StructuregetStructure(org.apache.ignite.internal.catalog.Catalog catalog, org.apache.ignite.internal.catalog.descriptors.CatalogSchemaDescriptor schema, String structureName) Retrieves structure by name from the given schema.getStructures(org.apache.ignite.internal.catalog.Catalog catalog) Retrieves all structures from the given catalog.booleantryDropStructure(org.apache.ignite.internal.catalog.UpdateContext updateContext, CommandState commandState, StructureView view) If given view matches the handler, adds commands to command state to drop corresponding structure and returnstrue.booleantryRestoreStructure(org.apache.ignite.internal.catalog.UpdateContext updateContext, CommandState commandState, StructureView view, int schemaId, int tableId, AtomicInteger nextGeneratedStructureId) If given view matches the handler, adds commands to command state to restore the given structure and returnstrue.
-
Constructor Details
-
SequenceStructureHandler
public SequenceStructureHandler()
-
-
Method Details
-
getStructures
Description copied from interface:StructureHandlerRetrieves all structures from the given catalog.- Specified by:
getStructuresin interfaceStructureHandler
-
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:StructureHandlerRetrieves structure by name from the given schema.- Specified by:
getStructurein interfaceStructureHandler
-
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:StructureHandlerIf given view matches the handler, adds commands to command state to restore the given structure and returnstrue.- Specified by:
tryRestoreStructurein interfaceStructureHandler
-
tryDropStructure
public boolean tryDropStructure(org.apache.ignite.internal.catalog.UpdateContext updateContext, CommandState commandState, StructureView view) Description copied from interface:StructureHandlerIf given view matches the handler, adds commands to command state to drop corresponding structure and returnstrue.- Specified by:
tryDropStructurein interfaceStructureHandler
-
createStructureDescriptors
public Set<StructureView> createStructureDescriptors(org.apache.ignite.internal.catalog.Catalog catalog, Set<Integer> structureIds) Description copied from interface:StructureHandlerCreates descriptors for the given structure IDs.- Specified by:
createStructureDescriptorsin interfaceStructureHandler
-
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:StructureHandlerRetrieves structures required for the given tables.- Specified by:
dependenciesForTablesin interfaceStructureHandler
-