Interface SchemaTransformation

    • Method Detail

      • apply

        Keyspaces apply​(Keyspaces schema)
        Apply a statement transformation to a schema snapshot.

        Implementing methods should be side-effect free (outside of throwing exceptions if the transformation cannot be successfully applied to the provided schema).

        Parameters:
        schema - Keyspaces to base the transformation on
        Returns:
        Keyspaces transformed by the statement
      • fixedTimestampMicros

        default java.util.Optional<java.lang.Long> fixedTimestampMicros()
        If the transformation should be applied with a certain timestamp, this method should be overriden. This is used by SchemaTransformations.updateSystemKeyspace(KeyspaceMetadata, long) when we need to set the fixed timestamp in order to preserve user settings.