Package org.apache.iceberg.view
Class BaseView
- java.lang.Object
- 
- org.apache.iceberg.view.BaseView
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- View
 
 public class BaseView extends java.lang.Object implements View, java.io.Serializable - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description BaseView(ViewOperations ops, java.lang.String name)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ViewVersioncurrentVersion()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.java.lang.Stringlocation()Return the view's base location.java.lang.Stringname()ViewOperationsoperations()java.util.Map<java.lang.String,java.lang.String>properties()Return a map of string properties for this view.ReplaceViewVersionreplaceVersion()Create a newReplaceViewVersionto replace the view's current version.Schemaschema()Return theschemafor this view.java.util.Map<java.lang.Integer,Schema>schemas()Return a map ofschemafor this view.SQLViewRepresentationsqlFor(java.lang.String dialect)This implementation of sqlFor will resolve what is considered the "closest" dialect.UpdateLocationupdateLocation()Create a newUpdateLocationto set the view's location.UpdateViewPropertiesupdateProperties()Create a newUpdateViewPropertiesto update view properties.java.util.UUIDuuid()Returns the view's UUIDViewVersionversion(int versionId)Get a version in this view by ID.java.lang.Iterable<ViewVersion>versions()Get the versions of this view.
 
- 
- 
- 
Constructor Detail- 
BaseViewpublic BaseView(ViewOperations ops, java.lang.String name) 
 
- 
 - 
Method Detail- 
operationspublic ViewOperations operations() 
 - 
schemapublic Schema schema() Description copied from interface:ViewReturn theschemafor this view.
 - 
schemaspublic java.util.Map<java.lang.Integer,Schema> schemas() Description copied from interface:ViewReturn a map ofschemafor this view.
 - 
currentVersionpublic ViewVersion currentVersion() Description copied from interface:ViewGet the current version for this view, or null if there are no versions.- Specified by:
- currentVersionin interface- View
- Returns:
- the current view version.
 
 - 
versionspublic java.lang.Iterable<ViewVersion> versions() Description copied from interface:ViewGet the versions of this view.
 - 
versionpublic ViewVersion version(int versionId) Description copied from interface:ViewGet a version in this view by ID.
 - 
historypublic java.util.List<ViewHistoryEntry> history() Description copied from interface:ViewGet the version history of this table.- Specified by:
- historyin interface- View
- Returns:
- a list of ViewHistoryEntry
 
 - 
propertiespublic java.util.Map<java.lang.String,java.lang.String> properties() Description copied from interface:ViewReturn a map of string properties for this view.- Specified by:
- propertiesin interface- View
- Returns:
- this view's properties map
 
 - 
locationpublic java.lang.String location() Description copied from interface:ViewReturn the view's base location.
 - 
updatePropertiespublic UpdateViewProperties updateProperties() Description copied from interface:ViewCreate a newUpdateViewPropertiesto update view properties.- Specified by:
- updatePropertiesin interface- View
- Returns:
- a new UpdateViewProperties
 
 - 
replaceVersionpublic ReplaceViewVersion replaceVersion() Description copied from interface:ViewCreate a newReplaceViewVersionto replace the view's current version.- Specified by:
- replaceVersionin interface- View
- Returns:
- a new ReplaceViewVersion
 
 - 
updateLocationpublic UpdateLocation updateLocation() Description copied from interface:ViewCreate a newUpdateLocationto set the view's location.- Specified by:
- updateLocationin interface- View
- Returns:
- a new UpdateLocation
 
 - 
uuidpublic java.util.UUID uuid() Description copied from interface:ViewReturns the view's UUID
 - 
sqlForpublic SQLViewRepresentation sqlFor(java.lang.String dialect) This implementation of sqlFor will resolve what is considered the "closest" dialect. If an exact match is found, then that is returned. Otherwise, the first representation would be returned. If no SQL representation is found, null is returned.
 
- 
 
-