public abstract class MigrationQuery extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
keyspaceName |
| Modifier | Constructor and Description |
|---|---|
protected |
MigrationQuery(String keyspaceName) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
addsReferenceTo(String udtName)
Whether the query will introduce a new column/field that uses the given UDT.
|
abstract io.stargate.bridge.proto.QueryOuterClass.Query |
build() |
protected abstract boolean |
dropsReferenceTo(String udtName)
Whether the query will remove a column/field that was using the given UDT.
|
abstract String |
getDescription() |
abstract boolean |
mustRunBefore(MigrationQuery that) |
protected boolean |
references(io.stargate.bridge.proto.QueryOuterClass.TypeSpec type,
String udtName) |
protected boolean |
references(String udtName,
io.stargate.bridge.proto.QueryOuterClass.TypeSpec.Udt type) |
protected boolean |
references(String udtName,
io.stargate.bridge.proto.Schema.CqlTable table) |
protected String keyspaceName
protected MigrationQuery(String keyspaceName)
public abstract io.stargate.bridge.proto.QueryOuterClass.Query build()
public abstract String getDescription()
public abstract boolean mustRunBefore(MigrationQuery that)
protected abstract boolean addsReferenceTo(String udtName)
protected abstract boolean dropsReferenceTo(String udtName)
protected boolean references(io.stargate.bridge.proto.QueryOuterClass.TypeSpec type,
String udtName)
protected boolean references(String udtName, io.stargate.bridge.proto.Schema.CqlTable table)
protected boolean references(String udtName, io.stargate.bridge.proto.QueryOuterClass.TypeSpec.Udt type)
Copyright © 2022. All rights reserved.