walterddr commented on code in PR #9711: URL: https://github.com/apache/pinot/pull/9711#discussion_r1014148282
########## pinot-common/src/main/java/org/apache/pinot/common/datablock/MetadataBlock.java: ########## @@ -18,28 +18,118 @@ */ package org.apache.pinot.common.datablock; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.google.common.annotations.VisibleForTesting; import java.io.IOException; import java.nio.ByteBuffer; -import org.apache.pinot.common.utils.DataSchema; /** - * Wrapper for row-wise data table. It stores data in row-major format. + * A block type to indicate some metadata about the current processing state. + * For the different types of metadata blocks see {@link MetadataBlockType}. */ public class MetadataBlock extends BaseDataBlock { - private static final int VERSION = 1; - public MetadataBlock() { - super(0, null, new String[0], new byte[]{0}, new byte[]{0}); + private static final ObjectMapper JSON = new ObjectMapper(); + + @VisibleForTesting + static final int VERSION = 1; + + public enum MetadataBlockType { Review Comment: this is a good design, next we can have different metadata block types added! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org