Package org.apache.iceberg.view
Class ViewMetadata.Builder
- java.lang.Object
-
- org.apache.iceberg.view.ViewMetadata.Builder
-
- Enclosing interface:
- ViewMetadata
public static class ViewMetadata.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ViewMetadata.Builder
addSchema(Schema schema)
ViewMetadata.Builder
addVersion(ViewVersion version)
ViewMetadata.Builder
assignUUID(java.lang.String newUUID)
ViewMetadata
build()
ViewMetadata.Builder
removeProperties(java.util.Set<java.lang.String> propertiesToRemove)
ViewMetadata.Builder
setCurrentVersion(ViewVersion version, Schema schema)
ViewMetadata.Builder
setCurrentVersionId(int newVersionId)
ViewMetadata.Builder
setLocation(java.lang.String newLocation)
ViewMetadata.Builder
setMetadataLocation(java.lang.String newMetadataLocation)
ViewMetadata.Builder
setProperties(java.util.Map<java.lang.String,java.lang.String> updated)
ViewMetadata.Builder
upgradeFormatVersion(int newFormatVersion)
-
-
-
Method Detail
-
upgradeFormatVersion
public ViewMetadata.Builder upgradeFormatVersion(int newFormatVersion)
-
setLocation
public ViewMetadata.Builder setLocation(java.lang.String newLocation)
-
setMetadataLocation
public ViewMetadata.Builder setMetadataLocation(java.lang.String newMetadataLocation)
-
setCurrentVersionId
public ViewMetadata.Builder setCurrentVersionId(int newVersionId)
-
setCurrentVersion
public ViewMetadata.Builder setCurrentVersion(ViewVersion version, Schema schema)
-
addVersion
public ViewMetadata.Builder addVersion(ViewVersion version)
-
addSchema
public ViewMetadata.Builder addSchema(Schema schema)
-
setProperties
public ViewMetadata.Builder setProperties(java.util.Map<java.lang.String,java.lang.String> updated)
-
removeProperties
public ViewMetadata.Builder removeProperties(java.util.Set<java.lang.String> propertiesToRemove)
-
assignUUID
public ViewMetadata.Builder assignUUID(java.lang.String newUUID)
-
build
public ViewMetadata build()
-
-