public class IcebergMetadata extends Object
See Iceberg spec.
Modifier and Type | Field and Description |
---|---|
static int |
CURRENT_FORMAT_VERSION |
Constructor and Description |
---|
IcebergMetadata(int formatVersion,
String tableUuid,
String location,
long lastSequenceNumber,
long lastUpdatedMs,
int lastColumnId,
List<IcebergSchema> schemas,
int currentSchemaId,
List<IcebergPartitionSpec> partitionSpecs,
int defaultSpecId,
int lastPartitionId,
List<IcebergSortOrder> sortOrders,
int defaultSortOrderId,
List<IcebergSnapshot> snapshots,
int currentSnapshotId,
Map<String,String> properties) |
IcebergMetadata(String tableUuid,
String location,
long lastSequenceNumber,
int lastColumnId,
List<IcebergSchema> schemas,
int currentSchemaId,
List<IcebergPartitionSpec> partitionSpecs,
int lastPartitionId,
List<IcebergSnapshot> snapshots,
int currentSnapshotId) |
Modifier and Type | Method and Description |
---|---|
int |
currentSchemaId() |
IcebergSnapshot |
currentSnapshot() |
int |
currentSnapshotId() |
int |
defaultSortOrderId() |
int |
defaultSpecId() |
boolean |
equals(Object o) |
int |
formatVersion() |
static IcebergMetadata |
fromJson(String json) |
static IcebergMetadata |
fromPath(FileIO fileIO,
Path path) |
int |
hashCode() |
int |
lastColumnId() |
int |
lastPartitionId() |
long |
lastSequenceNumber() |
long |
lastUpdatedMs() |
String |
location() |
List<IcebergPartitionSpec> |
partitionSpecs() |
Map<String,String> |
properties() |
List<IcebergSchema> |
schemas() |
List<IcebergSnapshot> |
snapshots() |
List<IcebergSortOrder> |
sortOrders() |
String |
tableUuid() |
String |
toJson() |
public static final int CURRENT_FORMAT_VERSION
public IcebergMetadata(String tableUuid, String location, long lastSequenceNumber, int lastColumnId, List<IcebergSchema> schemas, int currentSchemaId, List<IcebergPartitionSpec> partitionSpecs, int lastPartitionId, List<IcebergSnapshot> snapshots, int currentSnapshotId)
public IcebergMetadata(int formatVersion, String tableUuid, String location, long lastSequenceNumber, long lastUpdatedMs, int lastColumnId, List<IcebergSchema> schemas, int currentSchemaId, List<IcebergPartitionSpec> partitionSpecs, int defaultSpecId, int lastPartitionId, List<IcebergSortOrder> sortOrders, int defaultSortOrderId, List<IcebergSnapshot> snapshots, int currentSnapshotId, @Nullable Map<String,String> properties)
public int formatVersion()
public String tableUuid()
public String location()
public long lastSequenceNumber()
public long lastUpdatedMs()
public int lastColumnId()
public List<IcebergSchema> schemas()
public int currentSchemaId()
public List<IcebergPartitionSpec> partitionSpecs()
public int defaultSpecId()
public int lastPartitionId()
public List<IcebergSortOrder> sortOrders()
public int defaultSortOrderId()
public List<IcebergSnapshot> snapshots()
public int currentSnapshotId()
public IcebergSnapshot currentSnapshot()
public String toJson()
public static IcebergMetadata fromJson(String json)
public static IcebergMetadata fromPath(FileIO fileIO, Path path)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.