Class MockTableMetadata
java.lang.Object
org.projectnessie.gc.iceberg.mocks.MockTableMetadata
Generates mocked Iceberg table metadata objects based on a bunch of parameters.
Parameters define the number of snapshots and the number of ManifestContent.DATA and
ManifestContent.DELETES manifests for each snapshot, using Snapshot.manifestListLocation().
Also generates the appropriate org.apache.iceberg.ManifestEntry<F extends org.apache.iceberg.ContentFile<F>>s for Snapshot.addedDataFiles(FileIO) and Snapshot.removedDeleteFiles(FileIO).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintlongintintstatic MockTableMetadataempty()com.fasterxml.jackson.databind.JsonNodejsonNode()intintintlongabstract Stringlocation()partitionSpec(int partitionSpecId) schema(int schemaId) schemas()abstract List<MockSnapshot>
-
Field Details
-
FORMAT_VERSION
public static final int FORMAT_VERSION- See Also:
-
-
Constructor Details
-
MockTableMetadata
public MockTableMetadata()
-
-
Method Details
-
empty
-
jsonNode
@Lazy public com.fasterxml.jackson.databind.JsonNode jsonNode() -
snapshots
-
schemas
-
sortOrders
-
partitionSpecs
-
currentSnapshotId
@Default public long currentSnapshotId() -
defaultSortOrderId
@Default public int defaultSortOrderId() -
lastPartitionId
@Default public int lastPartitionId() -
defaultSpecId
@Default public int defaultSpecId() -
currentSchemaId
@Default public int currentSchemaId() -
lastColumnId
@Default public int lastColumnId() -
lastUpdatedMs
@Default public long lastUpdatedMs() -
lastSequenceNumber
@Default public int lastSequenceNumber() -
location
-
tableUuid
-
partitionSpec
-
schema
-