Class MockTableMetadata


  • @Immutable
    public abstract class MockTableMetadata
    extends java.lang.Object
    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 ManifestEntrys for Snapshot.addedDataFiles(FileIO) and Snapshot.removedDeleteFiles(FileIO).

    • Constructor Detail

      • MockTableMetadata

        public MockTableMetadata()
    • Method Detail

      • jsonNode

        @Lazy
        public com.fasterxml.jackson.databind.JsonNode jsonNode()
      • snapshots

        public abstract java.util.List<MockSnapshot> snapshots()
      • schemas

        @Default
        public java.util.List<MockSchema> schemas()
      • sortOrders

        @Default
        public java.util.List<MockSortOrder> sortOrders()
      • partitionSpecs

        @Default
        public java.util.List<MockPartitionSpec> 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

        public abstract java.lang.String location()
      • tableUuid

        @Default
        public java.lang.String tableUuid()
      • schema

        public MockSchema schema​(int schemaId)