public interface SchemaTransformation
Modifier and Type | Interface and Description |
---|---|
static class |
SchemaTransformation.SchemaTransformationResult
The result of applying (on this node) a given schema transformation.
|
Modifier and Type | Method and Description |
---|---|
Keyspaces |
apply(Keyspaces schema)
Apply a statement transformation to a schema snapshot.
|
default java.util.Optional<java.lang.Long> |
fixedTimestampMicros()
If the transformation should be applied with a certain timestamp, this method should be overriden.
|
Keyspaces apply(Keyspaces schema)
Implementing methods should be side-effect free (outside of throwing exceptions if the transformation cannot be successfully applied to the provided schema).
schema
- Keyspaces to base the transformation ondefault java.util.Optional<java.lang.Long> fixedTimestampMicros()
SchemaTransformations.updateSystemKeyspace(KeyspaceMetadata, long)
when we need to set the fixed
timestamp in order to preserve user settings.Copyright © 2009- The Apache Software Foundation