Package org.apache.iceberg
Class TableMetadata
java.lang.Object
org.apache.iceberg.TableMetadata
- All Implemented Interfaces:
- Serializable
Metadata for a table.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class
- 
Method SummaryModifier and TypeMethodDescriptionaddPartitionSpec(PartitionSpec newPartitionSpec) static TableMetadata.BuilderbuildFrom(TableMetadata base) static TableMetadata.Builderstatic TableMetadata.BuilderbuildFromEmpty(int formatVersion) buildReplacement(Schema updatedSchema, PartitionSpec updatedPartitionSpec, SortOrder updatedSortOrder, String newLocation, Map<String, String> updatedProperties) changes()intintintintintintlonglonglocation()static TableMetadatanewTableMetadata(Schema schema, PartitionSpec spec, String location, Map<String, String> properties) static TableMetadatanewTableMetadata(Schema schema, PartitionSpec spec, SortOrder sortOrder, String location, Map<String, String> properties) longlongbooleanpropertyAsBoolean(String property, boolean defaultValue) intpropertyAsInt(String property, int defaultValue) longpropertyAsLong(String property, long defaultValue) intpropertyTryAsInt(String property, int defaultValue) refs()removeSnapshotsIf(Predicate<Snapshot> removeIf) replaceProperties(Map<String, String> rawProperties) replaceSortOrder(SortOrder newOrder) schema()schemas()snapshot(long snapshotId) spec()spec(int id) specs()updateLocation(String newLocation) updatePartitionSpec(PartitionSpec newPartitionSpec) updateSchema(Schema newSchema) Updates the schemaupgradeToFormatVersion(int newFormatVersion) uuid()withUUID()
- 
Method Details- 
newTableMetadatapublic static TableMetadata newTableMetadata(Schema schema, PartitionSpec spec, SortOrder sortOrder, String location, Map<String, String> properties) 
- 
newTableMetadatapublic static TableMetadata newTableMetadata(Schema schema, PartitionSpec spec, String location, Map<String, String> properties) 
- 
formatVersionpublic int formatVersion()
- 
metadataFileLocation
- 
uuid
- 
lastSequenceNumberpublic long lastSequenceNumber()
- 
nextSequenceNumberpublic long nextSequenceNumber()
- 
lastUpdatedMillispublic long lastUpdatedMillis()
- 
lastColumnIdpublic int lastColumnId()
- 
schema
- 
schemas
- 
schemasById
- 
currentSchemaIdpublic int currentSchemaId()
- 
spec
- 
spec
- 
specs
- 
specsById
- 
lastAssignedPartitionIdpublic int lastAssignedPartitionId()
- 
defaultSpecIdpublic int defaultSpecId()
- 
defaultSortOrderIdpublic int defaultSortOrderId()
- 
sortOrder
- 
sortOrders
- 
sortOrdersById
- 
location
- 
properties
- 
property
- 
propertyAsBoolean
- 
propertyAsInt
- 
propertyTryAsInt
- 
propertyAsLong
- 
snapshot
- 
currentSnapshot
- 
snapshots
- 
ref
- 
refs
- 
statisticsFiles
- 
partitionStatisticsFiles
- 
snapshotLog
- 
previousFiles
- 
changes
- 
withUUID
- 
nextRowIdpublic long nextRowId()
- 
encryptionKeys
- 
updateSchemaUpdates the schema
- 
updatePartitionSpec
- 
addPartitionSpec
- 
replaceSortOrder
- 
removeSnapshotsIf
- 
replaceProperties
- 
buildReplacementpublic TableMetadata buildReplacement(Schema updatedSchema, PartitionSpec updatedPartitionSpec, SortOrder updatedSortOrder, String newLocation, Map<String, String> updatedProperties) 
- 
updateLocation
- 
upgradeToFormatVersion
- 
buildFrom
- 
buildFromEmpty
- 
buildFromEmpty
 
-