Package org.apache.iceberg.view
Interface ViewMetadata
-
- All Superinterfaces:
java.io.Serializable
@Immutable(builder=false) public interface ViewMetadata extends java.io.Serializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ViewMetadata.Builder
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_VIEW_FORMAT_VERSION
static org.slf4j.Logger
LOG
static int
SUPPORTED_VIEW_FORMAT_VERSION
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ViewMetadata.Builder
builder()
static ViewMetadata.Builder
buildFrom(ViewMetadata base)
java.util.List<MetadataUpdate>
changes()
default void
check()
default java.lang.Integer
currentSchemaId()
default ViewVersion
currentVersion()
int
currentVersionId()
int
formatVersion()
java.util.List<ViewHistoryEntry>
history()
java.lang.String
location()
java.lang.String
metadataFileLocation()
java.util.Map<java.lang.String,java.lang.String>
properties()
default Schema
schema()
java.util.List<Schema>
schemas()
default java.util.Map<java.lang.Integer,Schema>
schemasById()
java.lang.String
uuid()
default ViewVersion
version(int versionId)
java.util.List<ViewVersion>
versions()
default java.util.Map<java.lang.Integer,ViewVersion>
versionsById()
-
-
-
Field Detail
-
LOG
static final org.slf4j.Logger LOG
-
SUPPORTED_VIEW_FORMAT_VERSION
static final int SUPPORTED_VIEW_FORMAT_VERSION
- See Also:
- Constant Field Values
-
DEFAULT_VIEW_FORMAT_VERSION
static final int DEFAULT_VIEW_FORMAT_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
uuid
java.lang.String uuid()
-
formatVersion
int formatVersion()
-
location
java.lang.String location()
-
currentSchemaId
default java.lang.Integer currentSchemaId()
-
schemas
java.util.List<Schema> schemas()
-
currentVersionId
int currentVersionId()
-
versions
java.util.List<ViewVersion> versions()
-
history
java.util.List<ViewHistoryEntry> history()
-
properties
java.util.Map<java.lang.String,java.lang.String> properties()
-
changes
java.util.List<MetadataUpdate> changes()
-
metadataFileLocation
@Nullable java.lang.String metadataFileLocation()
-
version
default ViewVersion version(int versionId)
-
currentVersion
default ViewVersion currentVersion()
-
versionsById
@Derived default java.util.Map<java.lang.Integer,ViewVersion> versionsById()
-
schemasById
@Derived default java.util.Map<java.lang.Integer,Schema> schemasById()
-
schema
default Schema schema()
-
check
@Check default void check()
-
builder
static ViewMetadata.Builder builder()
-
buildFrom
static ViewMetadata.Builder buildFrom(ViewMetadata base)
-
-