All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cz.proto.DataLayout Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: file_meta_data.proto

package cz.proto;

/**
 * Protobuf type {@code cz.proto.DataLayout}
 */
public final class DataLayout extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:cz.proto.DataLayout)
    DataLayoutOrBuilder {
private static final long serialVersionUID = 0L;
  // Use DataLayout.newBuilder() to construct.
  private DataLayout(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private DataLayout() {
    blocks_ = java.util.Collections.emptyList();
    buckets_ = java.util.Collections.emptyList();
    valueInfo_ = java.util.Collections.emptyList();
    blockRowCounts_ = emptyLongList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new DataLayout();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private DataLayout(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            cz.proto.BlockInfo.Builder subBuilder = null;
            if (footer_ != null) {
              subBuilder = footer_.toBuilder();
            }
            footer_ = input.readMessage(cz.proto.BlockInfo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(footer_);
              footer_ = subBuilder.buildPartial();
            }

            break;
          }
          case 18: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              blocks_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            blocks_.add(
                input.readMessage(cz.proto.BlockInfo.parser(), extensionRegistry));
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              buckets_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            buckets_.add(
                input.readMessage(cz.proto.BucketInfoOuterClass.BucketInfo.parser(), extensionRegistry));
            break;
          }
          case 34: {
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              valueInfo_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000004;
            }
            valueInfo_.add(
                input.readMessage(cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.parser(), extensionRegistry));
            break;
          }
          case 40: {
            bitField0_ |= 0x00000002;
            rowIndexStride_ = input.readInt32();
            break;
          }
          case 48: {
            if (!((mutable_bitField0_ & 0x00000020) != 0)) {
              blockRowCounts_ = newLongList();
              mutable_bitField0_ |= 0x00000020;
            }
            blockRowCounts_.addLong(input.readInt64());
            break;
          }
          case 50: {
            int length = input.readRawVarint32();
            int limit = input.pushLimit(length);
            if (!((mutable_bitField0_ & 0x00000020) != 0) && input.getBytesUntilLimit() > 0) {
              blockRowCounts_ = newLongList();
              mutable_bitField0_ |= 0x00000020;
            }
            while (input.getBytesUntilLimit() > 0) {
              blockRowCounts_.addLong(input.readInt64());
            }
            input.popLimit(limit);
            break;
          }
          case 64: {
            bitField0_ |= 0x00000001;
            originalVirtualValueCount_ = input.readUInt32();
            break;
          }
          case 72: {
            bitField0_ |= 0x00000004;
            dataSealed_ = input.readBool();
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        blocks_ = java.util.Collections.unmodifiableList(blocks_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        buckets_ = java.util.Collections.unmodifiableList(buckets_);
      }
      if (((mutable_bitField0_ & 0x00000004) != 0)) {
        valueInfo_ = java.util.Collections.unmodifiableList(valueInfo_);
      }
      if (((mutable_bitField0_ & 0x00000020) != 0)) {
        blockRowCounts_.makeImmutable(); // C
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return cz.proto.FileMetaDataProto.internal_static_cz_proto_DataLayout_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return cz.proto.FileMetaDataProto.internal_static_cz_proto_DataLayout_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            cz.proto.DataLayout.class, cz.proto.DataLayout.Builder.class);
  }

  private int bitField0_;
  public static final int FOOTER_FIELD_NUMBER = 1;
  private cz.proto.BlockInfo footer_;
  /**
   * 
   * footer offset range
   * 
* * .cz.proto.BlockInfo footer = 1; * @return Whether the footer field is set. */ @java.lang.Override public boolean hasFooter() { return footer_ != null; } /** *
   * footer offset range
   * 
* * .cz.proto.BlockInfo footer = 1; * @return The footer. */ @java.lang.Override public cz.proto.BlockInfo getFooter() { return footer_ == null ? cz.proto.BlockInfo.getDefaultInstance() : footer_; } /** *
   * footer offset range
   * 
* * .cz.proto.BlockInfo footer = 1; */ @java.lang.Override public cz.proto.BlockInfoOrBuilder getFooterOrBuilder() { return getFooter(); } public static final int BLOCKS_FIELD_NUMBER = 2; private java.util.List blocks_; /** *
   * block (parquet row group or orc stripe) offset range
   * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ @java.lang.Override public java.util.List getBlocksList() { return blocks_; } /** *
   * block (parquet row group or orc stripe) offset range
   * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ @java.lang.Override public java.util.List getBlocksOrBuilderList() { return blocks_; } /** *
   * block (parquet row group or orc stripe) offset range
   * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ @java.lang.Override public int getBlocksCount() { return blocks_.size(); } /** *
   * block (parquet row group or orc stripe) offset range
   * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ @java.lang.Override public cz.proto.BlockInfo getBlocks(int index) { return blocks_.get(index); } /** *
   * block (parquet row group or orc stripe) offset range
   * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ @java.lang.Override public cz.proto.BlockInfoOrBuilder getBlocksOrBuilder( int index) { return blocks_.get(index); } public static final int BUCKETS_FIELD_NUMBER = 3; private java.util.List buckets_; /** *
   * bucket:[blocks]
   * For a partitioned table, there might be multiple buckets
   * with same bucket_id, but fall into different partitions.
   * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ @java.lang.Override public java.util.List getBucketsList() { return buckets_; } /** *
   * bucket:[blocks]
   * For a partitioned table, there might be multiple buckets
   * with same bucket_id, but fall into different partitions.
   * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ @java.lang.Override public java.util.List getBucketsOrBuilderList() { return buckets_; } /** *
   * bucket:[blocks]
   * For a partitioned table, there might be multiple buckets
   * with same bucket_id, but fall into different partitions.
   * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ @java.lang.Override public int getBucketsCount() { return buckets_.size(); } /** *
   * bucket:[blocks]
   * For a partitioned table, there might be multiple buckets
   * with same bucket_id, but fall into different partitions.
   * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ @java.lang.Override public cz.proto.BucketInfoOuterClass.BucketInfo getBuckets(int index) { return buckets_.get(index); } /** *
   * bucket:[blocks]
   * For a partitioned table, there might be multiple buckets
   * with same bucket_id, but fall into different partitions.
   * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ @java.lang.Override public cz.proto.BucketInfoOuterClass.BucketInfoOrBuilder getBucketsOrBuilder( int index) { return buckets_.get(index); } public static final int VALUE_INFO_FIELD_NUMBER = 4; private java.util.List valueInfo_; /** *
   * A set of values of virtual columns in the file.
   * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ @java.lang.Override public java.util.List getValueInfoList() { return valueInfo_; } /** *
   * A set of values of virtual columns in the file.
   * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ @java.lang.Override public java.util.List getValueInfoOrBuilderList() { return valueInfo_; } /** *
   * A set of values of virtual columns in the file.
   * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ @java.lang.Override public int getValueInfoCount() { return valueInfo_.size(); } /** *
   * A set of values of virtual columns in the file.
   * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ @java.lang.Override public cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo getValueInfo(int index) { return valueInfo_.get(index); } /** *
   * A set of values of virtual columns in the file.
   * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ @java.lang.Override public cz.proto.VirtualValueInfoOuterClass.VirtualValueInfoOrBuilder getValueInfoOrBuilder( int index) { return valueInfo_.get(index); } public static final int ORIGINAL_VIRTUAL_VALUE_COUNT_FIELD_NUMBER = 8; private int originalVirtualValueCount_; /** *
   * Number of values of virtual columns in the original file data.
   * 
* * optional uint32 original_virtual_value_count = 8; * @return Whether the originalVirtualValueCount field is set. */ @java.lang.Override public boolean hasOriginalVirtualValueCount() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Number of values of virtual columns in the original file data.
   * 
* * optional uint32 original_virtual_value_count = 8; * @return The originalVirtualValueCount. */ @java.lang.Override public int getOriginalVirtualValueCount() { return originalVirtualValueCount_; } public static final int ROW_INDEX_STRIDE_FIELD_NUMBER = 5; private int rowIndexStride_; /** *
   * Number of rows to limit a parquet page or orc row group.
   * 
* * optional int32 row_index_stride = 5; * @return Whether the rowIndexStride field is set. */ @java.lang.Override public boolean hasRowIndexStride() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Number of rows to limit a parquet page or orc row group.
   * 
* * optional int32 row_index_stride = 5; * @return The rowIndexStride. */ @java.lang.Override public int getRowIndexStride() { return rowIndexStride_; } public static final int BLOCK_ROW_COUNTS_FIELD_NUMBER = 6; private com.google.protobuf.Internal.LongList blockRowCounts_; /** *
   * Number of rows per block (parquet row group or orc stripe)
   * 
* * repeated int64 block_row_counts = 6; * @return A list containing the blockRowCounts. */ @java.lang.Override public java.util.List getBlockRowCountsList() { return blockRowCounts_; } /** *
   * Number of rows per block (parquet row group or orc stripe)
   * 
* * repeated int64 block_row_counts = 6; * @return The count of blockRowCounts. */ public int getBlockRowCountsCount() { return blockRowCounts_.size(); } /** *
   * Number of rows per block (parquet row group or orc stripe)
   * 
* * repeated int64 block_row_counts = 6; * @param index The index of the element to return. * @return The blockRowCounts at the given index. */ public long getBlockRowCounts(int index) { return blockRowCounts_.getLong(index); } private int blockRowCountsMemoizedSerializedSize = -1; public static final int DATA_SEALED_FIELD_NUMBER = 9; private boolean dataSealed_; /** *
   * Indicates whether the file is sealed or not.
   * 
* * optional bool data_sealed = 9; * @return Whether the dataSealed field is set. */ @java.lang.Override public boolean hasDataSealed() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Indicates whether the file is sealed or not.
   * 
* * optional bool data_sealed = 9; * @return The dataSealed. */ @java.lang.Override public boolean getDataSealed() { return dataSealed_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (footer_ != null) { output.writeMessage(1, getFooter()); } for (int i = 0; i < blocks_.size(); i++) { output.writeMessage(2, blocks_.get(i)); } for (int i = 0; i < buckets_.size(); i++) { output.writeMessage(3, buckets_.get(i)); } for (int i = 0; i < valueInfo_.size(); i++) { output.writeMessage(4, valueInfo_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(5, rowIndexStride_); } if (getBlockRowCountsList().size() > 0) { output.writeUInt32NoTag(50); output.writeUInt32NoTag(blockRowCountsMemoizedSerializedSize); } for (int i = 0; i < blockRowCounts_.size(); i++) { output.writeInt64NoTag(blockRowCounts_.getLong(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(8, originalVirtualValueCount_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(9, dataSealed_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (footer_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getFooter()); } for (int i = 0; i < blocks_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, blocks_.get(i)); } for (int i = 0; i < buckets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, buckets_.get(i)); } for (int i = 0; i < valueInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, valueInfo_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, rowIndexStride_); } { int dataSize = 0; for (int i = 0; i < blockRowCounts_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(blockRowCounts_.getLong(i)); } size += dataSize; if (!getBlockRowCountsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } blockRowCountsMemoizedSerializedSize = dataSize; } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, originalVirtualValueCount_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, dataSealed_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof cz.proto.DataLayout)) { return super.equals(obj); } cz.proto.DataLayout other = (cz.proto.DataLayout) obj; if (hasFooter() != other.hasFooter()) return false; if (hasFooter()) { if (!getFooter() .equals(other.getFooter())) return false; } if (!getBlocksList() .equals(other.getBlocksList())) return false; if (!getBucketsList() .equals(other.getBucketsList())) return false; if (!getValueInfoList() .equals(other.getValueInfoList())) return false; if (hasOriginalVirtualValueCount() != other.hasOriginalVirtualValueCount()) return false; if (hasOriginalVirtualValueCount()) { if (getOriginalVirtualValueCount() != other.getOriginalVirtualValueCount()) return false; } if (hasRowIndexStride() != other.hasRowIndexStride()) return false; if (hasRowIndexStride()) { if (getRowIndexStride() != other.getRowIndexStride()) return false; } if (!getBlockRowCountsList() .equals(other.getBlockRowCountsList())) return false; if (hasDataSealed() != other.hasDataSealed()) return false; if (hasDataSealed()) { if (getDataSealed() != other.getDataSealed()) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasFooter()) { hash = (37 * hash) + FOOTER_FIELD_NUMBER; hash = (53 * hash) + getFooter().hashCode(); } if (getBlocksCount() > 0) { hash = (37 * hash) + BLOCKS_FIELD_NUMBER; hash = (53 * hash) + getBlocksList().hashCode(); } if (getBucketsCount() > 0) { hash = (37 * hash) + BUCKETS_FIELD_NUMBER; hash = (53 * hash) + getBucketsList().hashCode(); } if (getValueInfoCount() > 0) { hash = (37 * hash) + VALUE_INFO_FIELD_NUMBER; hash = (53 * hash) + getValueInfoList().hashCode(); } if (hasOriginalVirtualValueCount()) { hash = (37 * hash) + ORIGINAL_VIRTUAL_VALUE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getOriginalVirtualValueCount(); } if (hasRowIndexStride()) { hash = (37 * hash) + ROW_INDEX_STRIDE_FIELD_NUMBER; hash = (53 * hash) + getRowIndexStride(); } if (getBlockRowCountsCount() > 0) { hash = (37 * hash) + BLOCK_ROW_COUNTS_FIELD_NUMBER; hash = (53 * hash) + getBlockRowCountsList().hashCode(); } if (hasDataSealed()) { hash = (37 * hash) + DATA_SEALED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDataSealed()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static cz.proto.DataLayout parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.DataLayout parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cz.proto.DataLayout parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.DataLayout parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cz.proto.DataLayout parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static cz.proto.DataLayout parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static cz.proto.DataLayout parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cz.proto.DataLayout parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static cz.proto.DataLayout parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static cz.proto.DataLayout parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static cz.proto.DataLayout parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static cz.proto.DataLayout parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(cz.proto.DataLayout prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code cz.proto.DataLayout} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:cz.proto.DataLayout) cz.proto.DataLayoutOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return cz.proto.FileMetaDataProto.internal_static_cz_proto_DataLayout_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return cz.proto.FileMetaDataProto.internal_static_cz_proto_DataLayout_fieldAccessorTable .ensureFieldAccessorsInitialized( cz.proto.DataLayout.class, cz.proto.DataLayout.Builder.class); } // Construct using cz.proto.DataLayout.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getBlocksFieldBuilder(); getBucketsFieldBuilder(); getValueInfoFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (footerBuilder_ == null) { footer_ = null; } else { footer_ = null; footerBuilder_ = null; } if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { blocksBuilder_.clear(); } if (bucketsBuilder_ == null) { buckets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { bucketsBuilder_.clear(); } if (valueInfoBuilder_ == null) { valueInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); } else { valueInfoBuilder_.clear(); } originalVirtualValueCount_ = 0; bitField0_ = (bitField0_ & ~0x00000008); rowIndexStride_ = 0; bitField0_ = (bitField0_ & ~0x00000010); blockRowCounts_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000020); dataSealed_ = false; bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return cz.proto.FileMetaDataProto.internal_static_cz_proto_DataLayout_descriptor; } @java.lang.Override public cz.proto.DataLayout getDefaultInstanceForType() { return cz.proto.DataLayout.getDefaultInstance(); } @java.lang.Override public cz.proto.DataLayout build() { cz.proto.DataLayout result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public cz.proto.DataLayout buildPartial() { cz.proto.DataLayout result = new cz.proto.DataLayout(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (footerBuilder_ == null) { result.footer_ = footer_; } else { result.footer_ = footerBuilder_.build(); } if (blocksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { blocks_ = java.util.Collections.unmodifiableList(blocks_); bitField0_ = (bitField0_ & ~0x00000001); } result.blocks_ = blocks_; } else { result.blocks_ = blocksBuilder_.build(); } if (bucketsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { buckets_ = java.util.Collections.unmodifiableList(buckets_); bitField0_ = (bitField0_ & ~0x00000002); } result.buckets_ = buckets_; } else { result.buckets_ = bucketsBuilder_.build(); } if (valueInfoBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { valueInfo_ = java.util.Collections.unmodifiableList(valueInfo_); bitField0_ = (bitField0_ & ~0x00000004); } result.valueInfo_ = valueInfo_; } else { result.valueInfo_ = valueInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.originalVirtualValueCount_ = originalVirtualValueCount_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.rowIndexStride_ = rowIndexStride_; to_bitField0_ |= 0x00000002; } if (((bitField0_ & 0x00000020) != 0)) { blockRowCounts_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000020); } result.blockRowCounts_ = blockRowCounts_; if (((from_bitField0_ & 0x00000040) != 0)) { result.dataSealed_ = dataSealed_; to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof cz.proto.DataLayout) { return mergeFrom((cz.proto.DataLayout)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(cz.proto.DataLayout other) { if (other == cz.proto.DataLayout.getDefaultInstance()) return this; if (other.hasFooter()) { mergeFooter(other.getFooter()); } if (blocksBuilder_ == null) { if (!other.blocks_.isEmpty()) { if (blocks_.isEmpty()) { blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureBlocksIsMutable(); blocks_.addAll(other.blocks_); } onChanged(); } } else { if (!other.blocks_.isEmpty()) { if (blocksBuilder_.isEmpty()) { blocksBuilder_.dispose(); blocksBuilder_ = null; blocks_ = other.blocks_; bitField0_ = (bitField0_ & ~0x00000001); blocksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBlocksFieldBuilder() : null; } else { blocksBuilder_.addAllMessages(other.blocks_); } } } if (bucketsBuilder_ == null) { if (!other.buckets_.isEmpty()) { if (buckets_.isEmpty()) { buckets_ = other.buckets_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureBucketsIsMutable(); buckets_.addAll(other.buckets_); } onChanged(); } } else { if (!other.buckets_.isEmpty()) { if (bucketsBuilder_.isEmpty()) { bucketsBuilder_.dispose(); bucketsBuilder_ = null; buckets_ = other.buckets_; bitField0_ = (bitField0_ & ~0x00000002); bucketsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBucketsFieldBuilder() : null; } else { bucketsBuilder_.addAllMessages(other.buckets_); } } } if (valueInfoBuilder_ == null) { if (!other.valueInfo_.isEmpty()) { if (valueInfo_.isEmpty()) { valueInfo_ = other.valueInfo_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureValueInfoIsMutable(); valueInfo_.addAll(other.valueInfo_); } onChanged(); } } else { if (!other.valueInfo_.isEmpty()) { if (valueInfoBuilder_.isEmpty()) { valueInfoBuilder_.dispose(); valueInfoBuilder_ = null; valueInfo_ = other.valueInfo_; bitField0_ = (bitField0_ & ~0x00000004); valueInfoBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValueInfoFieldBuilder() : null; } else { valueInfoBuilder_.addAllMessages(other.valueInfo_); } } } if (other.hasOriginalVirtualValueCount()) { setOriginalVirtualValueCount(other.getOriginalVirtualValueCount()); } if (other.hasRowIndexStride()) { setRowIndexStride(other.getRowIndexStride()); } if (!other.blockRowCounts_.isEmpty()) { if (blockRowCounts_.isEmpty()) { blockRowCounts_ = other.blockRowCounts_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureBlockRowCountsIsMutable(); blockRowCounts_.addAll(other.blockRowCounts_); } onChanged(); } if (other.hasDataSealed()) { setDataSealed(other.getDataSealed()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { cz.proto.DataLayout parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (cz.proto.DataLayout) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private cz.proto.BlockInfo footer_; private com.google.protobuf.SingleFieldBuilderV3< cz.proto.BlockInfo, cz.proto.BlockInfo.Builder, cz.proto.BlockInfoOrBuilder> footerBuilder_; /** *
     * footer offset range
     * 
* * .cz.proto.BlockInfo footer = 1; * @return Whether the footer field is set. */ public boolean hasFooter() { return footerBuilder_ != null || footer_ != null; } /** *
     * footer offset range
     * 
* * .cz.proto.BlockInfo footer = 1; * @return The footer. */ public cz.proto.BlockInfo getFooter() { if (footerBuilder_ == null) { return footer_ == null ? cz.proto.BlockInfo.getDefaultInstance() : footer_; } else { return footerBuilder_.getMessage(); } } /** *
     * footer offset range
     * 
* * .cz.proto.BlockInfo footer = 1; */ public Builder setFooter(cz.proto.BlockInfo value) { if (footerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } footer_ = value; onChanged(); } else { footerBuilder_.setMessage(value); } return this; } /** *
     * footer offset range
     * 
* * .cz.proto.BlockInfo footer = 1; */ public Builder setFooter( cz.proto.BlockInfo.Builder builderForValue) { if (footerBuilder_ == null) { footer_ = builderForValue.build(); onChanged(); } else { footerBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * footer offset range
     * 
* * .cz.proto.BlockInfo footer = 1; */ public Builder mergeFooter(cz.proto.BlockInfo value) { if (footerBuilder_ == null) { if (footer_ != null) { footer_ = cz.proto.BlockInfo.newBuilder(footer_).mergeFrom(value).buildPartial(); } else { footer_ = value; } onChanged(); } else { footerBuilder_.mergeFrom(value); } return this; } /** *
     * footer offset range
     * 
* * .cz.proto.BlockInfo footer = 1; */ public Builder clearFooter() { if (footerBuilder_ == null) { footer_ = null; onChanged(); } else { footer_ = null; footerBuilder_ = null; } return this; } /** *
     * footer offset range
     * 
* * .cz.proto.BlockInfo footer = 1; */ public cz.proto.BlockInfo.Builder getFooterBuilder() { onChanged(); return getFooterFieldBuilder().getBuilder(); } /** *
     * footer offset range
     * 
* * .cz.proto.BlockInfo footer = 1; */ public cz.proto.BlockInfoOrBuilder getFooterOrBuilder() { if (footerBuilder_ != null) { return footerBuilder_.getMessageOrBuilder(); } else { return footer_ == null ? cz.proto.BlockInfo.getDefaultInstance() : footer_; } } /** *
     * footer offset range
     * 
* * .cz.proto.BlockInfo footer = 1; */ private com.google.protobuf.SingleFieldBuilderV3< cz.proto.BlockInfo, cz.proto.BlockInfo.Builder, cz.proto.BlockInfoOrBuilder> getFooterFieldBuilder() { if (footerBuilder_ == null) { footerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< cz.proto.BlockInfo, cz.proto.BlockInfo.Builder, cz.proto.BlockInfoOrBuilder>( getFooter(), getParentForChildren(), isClean()); footer_ = null; } return footerBuilder_; } private java.util.List blocks_ = java.util.Collections.emptyList(); private void ensureBlocksIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blocks_ = new java.util.ArrayList(blocks_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< cz.proto.BlockInfo, cz.proto.BlockInfo.Builder, cz.proto.BlockInfoOrBuilder> blocksBuilder_; /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public java.util.List getBlocksList() { if (blocksBuilder_ == null) { return java.util.Collections.unmodifiableList(blocks_); } else { return blocksBuilder_.getMessageList(); } } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public int getBlocksCount() { if (blocksBuilder_ == null) { return blocks_.size(); } else { return blocksBuilder_.getCount(); } } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public cz.proto.BlockInfo getBlocks(int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessage(index); } } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public Builder setBlocks( int index, cz.proto.BlockInfo value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.set(index, value); onChanged(); } else { blocksBuilder_.setMessage(index, value); } return this; } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public Builder setBlocks( int index, cz.proto.BlockInfo.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.set(index, builderForValue.build()); onChanged(); } else { blocksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public Builder addBlocks(cz.proto.BlockInfo value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.add(value); onChanged(); } else { blocksBuilder_.addMessage(value); } return this; } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public Builder addBlocks( int index, cz.proto.BlockInfo value) { if (blocksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBlocksIsMutable(); blocks_.add(index, value); onChanged(); } else { blocksBuilder_.addMessage(index, value); } return this; } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public Builder addBlocks( cz.proto.BlockInfo.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(builderForValue.build()); onChanged(); } else { blocksBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public Builder addBlocks( int index, cz.proto.BlockInfo.Builder builderForValue) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.add(index, builderForValue.build()); onChanged(); } else { blocksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public Builder addAllBlocks( java.lang.Iterable values) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, blocks_); onChanged(); } else { blocksBuilder_.addAllMessages(values); } return this; } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public Builder clearBlocks() { if (blocksBuilder_ == null) { blocks_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { blocksBuilder_.clear(); } return this; } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public Builder removeBlocks(int index) { if (blocksBuilder_ == null) { ensureBlocksIsMutable(); blocks_.remove(index); onChanged(); } else { blocksBuilder_.remove(index); } return this; } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public cz.proto.BlockInfo.Builder getBlocksBuilder( int index) { return getBlocksFieldBuilder().getBuilder(index); } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public cz.proto.BlockInfoOrBuilder getBlocksOrBuilder( int index) { if (blocksBuilder_ == null) { return blocks_.get(index); } else { return blocksBuilder_.getMessageOrBuilder(index); } } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public java.util.List getBlocksOrBuilderList() { if (blocksBuilder_ != null) { return blocksBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(blocks_); } } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public cz.proto.BlockInfo.Builder addBlocksBuilder() { return getBlocksFieldBuilder().addBuilder( cz.proto.BlockInfo.getDefaultInstance()); } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public cz.proto.BlockInfo.Builder addBlocksBuilder( int index) { return getBlocksFieldBuilder().addBuilder( index, cz.proto.BlockInfo.getDefaultInstance()); } /** *
     * block (parquet row group or orc stripe) offset range
     * 
* * repeated .cz.proto.BlockInfo blocks = 2; */ public java.util.List getBlocksBuilderList() { return getBlocksFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cz.proto.BlockInfo, cz.proto.BlockInfo.Builder, cz.proto.BlockInfoOrBuilder> getBlocksFieldBuilder() { if (blocksBuilder_ == null) { blocksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cz.proto.BlockInfo, cz.proto.BlockInfo.Builder, cz.proto.BlockInfoOrBuilder>( blocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); blocks_ = null; } return blocksBuilder_; } private java.util.List buckets_ = java.util.Collections.emptyList(); private void ensureBucketsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { buckets_ = new java.util.ArrayList(buckets_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< cz.proto.BucketInfoOuterClass.BucketInfo, cz.proto.BucketInfoOuterClass.BucketInfo.Builder, cz.proto.BucketInfoOuterClass.BucketInfoOrBuilder> bucketsBuilder_; /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public java.util.List getBucketsList() { if (bucketsBuilder_ == null) { return java.util.Collections.unmodifiableList(buckets_); } else { return bucketsBuilder_.getMessageList(); } } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public int getBucketsCount() { if (bucketsBuilder_ == null) { return buckets_.size(); } else { return bucketsBuilder_.getCount(); } } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public cz.proto.BucketInfoOuterClass.BucketInfo getBuckets(int index) { if (bucketsBuilder_ == null) { return buckets_.get(index); } else { return bucketsBuilder_.getMessage(index); } } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public Builder setBuckets( int index, cz.proto.BucketInfoOuterClass.BucketInfo value) { if (bucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBucketsIsMutable(); buckets_.set(index, value); onChanged(); } else { bucketsBuilder_.setMessage(index, value); } return this; } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public Builder setBuckets( int index, cz.proto.BucketInfoOuterClass.BucketInfo.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.set(index, builderForValue.build()); onChanged(); } else { bucketsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public Builder addBuckets(cz.proto.BucketInfoOuterClass.BucketInfo value) { if (bucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBucketsIsMutable(); buckets_.add(value); onChanged(); } else { bucketsBuilder_.addMessage(value); } return this; } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public Builder addBuckets( int index, cz.proto.BucketInfoOuterClass.BucketInfo value) { if (bucketsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBucketsIsMutable(); buckets_.add(index, value); onChanged(); } else { bucketsBuilder_.addMessage(index, value); } return this; } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public Builder addBuckets( cz.proto.BucketInfoOuterClass.BucketInfo.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.add(builderForValue.build()); onChanged(); } else { bucketsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public Builder addBuckets( int index, cz.proto.BucketInfoOuterClass.BucketInfo.Builder builderForValue) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.add(index, builderForValue.build()); onChanged(); } else { bucketsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public Builder addAllBuckets( java.lang.Iterable values) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, buckets_); onChanged(); } else { bucketsBuilder_.addAllMessages(values); } return this; } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public Builder clearBuckets() { if (bucketsBuilder_ == null) { buckets_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { bucketsBuilder_.clear(); } return this; } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public Builder removeBuckets(int index) { if (bucketsBuilder_ == null) { ensureBucketsIsMutable(); buckets_.remove(index); onChanged(); } else { bucketsBuilder_.remove(index); } return this; } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public cz.proto.BucketInfoOuterClass.BucketInfo.Builder getBucketsBuilder( int index) { return getBucketsFieldBuilder().getBuilder(index); } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public cz.proto.BucketInfoOuterClass.BucketInfoOrBuilder getBucketsOrBuilder( int index) { if (bucketsBuilder_ == null) { return buckets_.get(index); } else { return bucketsBuilder_.getMessageOrBuilder(index); } } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public java.util.List getBucketsOrBuilderList() { if (bucketsBuilder_ != null) { return bucketsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(buckets_); } } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public cz.proto.BucketInfoOuterClass.BucketInfo.Builder addBucketsBuilder() { return getBucketsFieldBuilder().addBuilder( cz.proto.BucketInfoOuterClass.BucketInfo.getDefaultInstance()); } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public cz.proto.BucketInfoOuterClass.BucketInfo.Builder addBucketsBuilder( int index) { return getBucketsFieldBuilder().addBuilder( index, cz.proto.BucketInfoOuterClass.BucketInfo.getDefaultInstance()); } /** *
     * bucket:[blocks]
     * For a partitioned table, there might be multiple buckets
     * with same bucket_id, but fall into different partitions.
     * 
* * repeated .cz.proto.BucketInfo buckets = 3; */ public java.util.List getBucketsBuilderList() { return getBucketsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cz.proto.BucketInfoOuterClass.BucketInfo, cz.proto.BucketInfoOuterClass.BucketInfo.Builder, cz.proto.BucketInfoOuterClass.BucketInfoOrBuilder> getBucketsFieldBuilder() { if (bucketsBuilder_ == null) { bucketsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cz.proto.BucketInfoOuterClass.BucketInfo, cz.proto.BucketInfoOuterClass.BucketInfo.Builder, cz.proto.BucketInfoOuterClass.BucketInfoOrBuilder>( buckets_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); buckets_ = null; } return bucketsBuilder_; } private java.util.List valueInfo_ = java.util.Collections.emptyList(); private void ensureValueInfoIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { valueInfo_ = new java.util.ArrayList(valueInfo_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfoOrBuilder> valueInfoBuilder_; /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public java.util.List getValueInfoList() { if (valueInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(valueInfo_); } else { return valueInfoBuilder_.getMessageList(); } } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public int getValueInfoCount() { if (valueInfoBuilder_ == null) { return valueInfo_.size(); } else { return valueInfoBuilder_.getCount(); } } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo getValueInfo(int index) { if (valueInfoBuilder_ == null) { return valueInfo_.get(index); } else { return valueInfoBuilder_.getMessage(index); } } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public Builder setValueInfo( int index, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo value) { if (valueInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueInfoIsMutable(); valueInfo_.set(index, value); onChanged(); } else { valueInfoBuilder_.setMessage(index, value); } return this; } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public Builder setValueInfo( int index, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder builderForValue) { if (valueInfoBuilder_ == null) { ensureValueInfoIsMutable(); valueInfo_.set(index, builderForValue.build()); onChanged(); } else { valueInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public Builder addValueInfo(cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo value) { if (valueInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueInfoIsMutable(); valueInfo_.add(value); onChanged(); } else { valueInfoBuilder_.addMessage(value); } return this; } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public Builder addValueInfo( int index, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo value) { if (valueInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureValueInfoIsMutable(); valueInfo_.add(index, value); onChanged(); } else { valueInfoBuilder_.addMessage(index, value); } return this; } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public Builder addValueInfo( cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder builderForValue) { if (valueInfoBuilder_ == null) { ensureValueInfoIsMutable(); valueInfo_.add(builderForValue.build()); onChanged(); } else { valueInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public Builder addValueInfo( int index, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder builderForValue) { if (valueInfoBuilder_ == null) { ensureValueInfoIsMutable(); valueInfo_.add(index, builderForValue.build()); onChanged(); } else { valueInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public Builder addAllValueInfo( java.lang.Iterable values) { if (valueInfoBuilder_ == null) { ensureValueInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, valueInfo_); onChanged(); } else { valueInfoBuilder_.addAllMessages(values); } return this; } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public Builder clearValueInfo() { if (valueInfoBuilder_ == null) { valueInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { valueInfoBuilder_.clear(); } return this; } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public Builder removeValueInfo(int index) { if (valueInfoBuilder_ == null) { ensureValueInfoIsMutable(); valueInfo_.remove(index); onChanged(); } else { valueInfoBuilder_.remove(index); } return this; } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder getValueInfoBuilder( int index) { return getValueInfoFieldBuilder().getBuilder(index); } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public cz.proto.VirtualValueInfoOuterClass.VirtualValueInfoOrBuilder getValueInfoOrBuilder( int index) { if (valueInfoBuilder_ == null) { return valueInfo_.get(index); } else { return valueInfoBuilder_.getMessageOrBuilder(index); } } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public java.util.List getValueInfoOrBuilderList() { if (valueInfoBuilder_ != null) { return valueInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(valueInfo_); } } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder addValueInfoBuilder() { return getValueInfoFieldBuilder().addBuilder( cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.getDefaultInstance()); } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder addValueInfoBuilder( int index) { return getValueInfoFieldBuilder().addBuilder( index, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.getDefaultInstance()); } /** *
     * A set of values of virtual columns in the file.
     * 
* * repeated .cz.proto.VirtualValueInfo value_info = 4; */ public java.util.List getValueInfoBuilderList() { return getValueInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfoOrBuilder> getValueInfoFieldBuilder() { if (valueInfoBuilder_ == null) { valueInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfo.Builder, cz.proto.VirtualValueInfoOuterClass.VirtualValueInfoOrBuilder>( valueInfo_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); valueInfo_ = null; } return valueInfoBuilder_; } private int originalVirtualValueCount_ ; /** *
     * Number of values of virtual columns in the original file data.
     * 
* * optional uint32 original_virtual_value_count = 8; * @return Whether the originalVirtualValueCount field is set. */ @java.lang.Override public boolean hasOriginalVirtualValueCount() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Number of values of virtual columns in the original file data.
     * 
* * optional uint32 original_virtual_value_count = 8; * @return The originalVirtualValueCount. */ @java.lang.Override public int getOriginalVirtualValueCount() { return originalVirtualValueCount_; } /** *
     * Number of values of virtual columns in the original file data.
     * 
* * optional uint32 original_virtual_value_count = 8; * @param value The originalVirtualValueCount to set. * @return This builder for chaining. */ public Builder setOriginalVirtualValueCount(int value) { bitField0_ |= 0x00000008; originalVirtualValueCount_ = value; onChanged(); return this; } /** *
     * Number of values of virtual columns in the original file data.
     * 
* * optional uint32 original_virtual_value_count = 8; * @return This builder for chaining. */ public Builder clearOriginalVirtualValueCount() { bitField0_ = (bitField0_ & ~0x00000008); originalVirtualValueCount_ = 0; onChanged(); return this; } private int rowIndexStride_ ; /** *
     * Number of rows to limit a parquet page or orc row group.
     * 
* * optional int32 row_index_stride = 5; * @return Whether the rowIndexStride field is set. */ @java.lang.Override public boolean hasRowIndexStride() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Number of rows to limit a parquet page or orc row group.
     * 
* * optional int32 row_index_stride = 5; * @return The rowIndexStride. */ @java.lang.Override public int getRowIndexStride() { return rowIndexStride_; } /** *
     * Number of rows to limit a parquet page or orc row group.
     * 
* * optional int32 row_index_stride = 5; * @param value The rowIndexStride to set. * @return This builder for chaining. */ public Builder setRowIndexStride(int value) { bitField0_ |= 0x00000010; rowIndexStride_ = value; onChanged(); return this; } /** *
     * Number of rows to limit a parquet page or orc row group.
     * 
* * optional int32 row_index_stride = 5; * @return This builder for chaining. */ public Builder clearRowIndexStride() { bitField0_ = (bitField0_ & ~0x00000010); rowIndexStride_ = 0; onChanged(); return this; } private com.google.protobuf.Internal.LongList blockRowCounts_ = emptyLongList(); private void ensureBlockRowCountsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { blockRowCounts_ = mutableCopy(blockRowCounts_); bitField0_ |= 0x00000020; } } /** *
     * Number of rows per block (parquet row group or orc stripe)
     * 
* * repeated int64 block_row_counts = 6; * @return A list containing the blockRowCounts. */ public java.util.List getBlockRowCountsList() { return ((bitField0_ & 0x00000020) != 0) ? java.util.Collections.unmodifiableList(blockRowCounts_) : blockRowCounts_; } /** *
     * Number of rows per block (parquet row group or orc stripe)
     * 
* * repeated int64 block_row_counts = 6; * @return The count of blockRowCounts. */ public int getBlockRowCountsCount() { return blockRowCounts_.size(); } /** *
     * Number of rows per block (parquet row group or orc stripe)
     * 
* * repeated int64 block_row_counts = 6; * @param index The index of the element to return. * @return The blockRowCounts at the given index. */ public long getBlockRowCounts(int index) { return blockRowCounts_.getLong(index); } /** *
     * Number of rows per block (parquet row group or orc stripe)
     * 
* * repeated int64 block_row_counts = 6; * @param index The index to set the value at. * @param value The blockRowCounts to set. * @return This builder for chaining. */ public Builder setBlockRowCounts( int index, long value) { ensureBlockRowCountsIsMutable(); blockRowCounts_.setLong(index, value); onChanged(); return this; } /** *
     * Number of rows per block (parquet row group or orc stripe)
     * 
* * repeated int64 block_row_counts = 6; * @param value The blockRowCounts to add. * @return This builder for chaining. */ public Builder addBlockRowCounts(long value) { ensureBlockRowCountsIsMutable(); blockRowCounts_.addLong(value); onChanged(); return this; } /** *
     * Number of rows per block (parquet row group or orc stripe)
     * 
* * repeated int64 block_row_counts = 6; * @param values The blockRowCounts to add. * @return This builder for chaining. */ public Builder addAllBlockRowCounts( java.lang.Iterable values) { ensureBlockRowCountsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, blockRowCounts_); onChanged(); return this; } /** *
     * Number of rows per block (parquet row group or orc stripe)
     * 
* * repeated int64 block_row_counts = 6; * @return This builder for chaining. */ public Builder clearBlockRowCounts() { blockRowCounts_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private boolean dataSealed_ ; /** *
     * Indicates whether the file is sealed or not.
     * 
* * optional bool data_sealed = 9; * @return Whether the dataSealed field is set. */ @java.lang.Override public boolean hasDataSealed() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Indicates whether the file is sealed or not.
     * 
* * optional bool data_sealed = 9; * @return The dataSealed. */ @java.lang.Override public boolean getDataSealed() { return dataSealed_; } /** *
     * Indicates whether the file is sealed or not.
     * 
* * optional bool data_sealed = 9; * @param value The dataSealed to set. * @return This builder for chaining. */ public Builder setDataSealed(boolean value) { bitField0_ |= 0x00000040; dataSealed_ = value; onChanged(); return this; } /** *
     * Indicates whether the file is sealed or not.
     * 
* * optional bool data_sealed = 9; * @return This builder for chaining. */ public Builder clearDataSealed() { bitField0_ = (bitField0_ & ~0x00000040); dataSealed_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:cz.proto.DataLayout) } // @@protoc_insertion_point(class_scope:cz.proto.DataLayout) private static final cz.proto.DataLayout DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new cz.proto.DataLayout(); } public static cz.proto.DataLayout getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DataLayout parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DataLayout(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public cz.proto.DataLayout getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy