public interface View
Modifier and Type | Method and Description |
---|---|
ViewVersion |
currentVersion()
Get the current version for this view, or null if there are no versions.
|
java.util.List<ViewHistoryEntry> |
history()
Get the version history of this table.
|
default java.lang.String |
location()
Return the view's base location.
|
java.lang.String |
name() |
java.util.Map<java.lang.String,java.lang.String> |
properties()
Return a map of string properties for this view.
|
default ReplaceViewVersion |
replaceVersion()
Create a new
ReplaceViewVersion to replace the view's current version. |
Schema |
schema()
Return the
schema for this view. |
java.util.Map<java.lang.Integer,Schema> |
schemas()
Return a map of
schema for this view. |
default SQLViewRepresentation |
sqlFor(java.lang.String dialect)
Returns the view representation for the given SQL dialect
|
default UpdateLocation |
updateLocation()
Create a new
UpdateLocation to set the view's location. |
UpdateViewProperties |
updateProperties()
Create a new
UpdateViewProperties to update view properties. |
default java.util.UUID |
uuid()
Returns the view's UUID
|
ViewVersion |
version(int versionId)
Get a version in this view by ID.
|
java.lang.Iterable<ViewVersion> |
versions()
Get the versions of this view.
|
java.lang.String name()
java.util.Map<java.lang.Integer,Schema> schemas()
schema
for this view.ViewVersion currentVersion()
java.lang.Iterable<ViewVersion> versions()
ViewVersion version(int versionId)
versionId
- version IDjava.util.List<ViewHistoryEntry> history()
ViewHistoryEntry
java.util.Map<java.lang.String,java.lang.String> properties()
default java.lang.String location()
UpdateViewProperties updateProperties()
UpdateViewProperties
to update view properties.UpdateViewProperties
default ReplaceViewVersion replaceVersion()
ReplaceViewVersion
to replace the view's current version.ReplaceViewVersion
default UpdateLocation updateLocation()
UpdateLocation
to set the view's location.UpdateLocation
default java.util.UUID uuid()
default SQLViewRepresentation sqlFor(java.lang.String dialect)