com.facebook.presto.orc.proto.DwrfProto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of orc-protobuf Show documentation
Show all versions of orc-protobuf Show documentation
Compiled ORC protobuf definitions
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: dwrf_proto.proto
package com.facebook.presto.orc.proto;
public final class DwrfProto {
private DwrfProto() {}
public static void registerAllExtensions(
com.facebook.presto.orc.protobuf.ExtensionRegistry registry) {
}
/**
* Protobuf enum {@code com.facebook.hive.orc.CompressionKind}
*/
public enum CompressionKind
implements com.facebook.presto.orc.protobuf.ProtocolMessageEnum {
/**
* NONE = 0;
*/
NONE(0, 0),
/**
* ZLIB = 1;
*/
ZLIB(1, 1),
/**
* SNAPPY = 2;
*/
SNAPPY(2, 2),
/**
* LZO = 3;
*/
LZO(3, 3),
;
/**
* NONE = 0;
*/
public static final int NONE_VALUE = 0;
/**
* ZLIB = 1;
*/
public static final int ZLIB_VALUE = 1;
/**
* SNAPPY = 2;
*/
public static final int SNAPPY_VALUE = 2;
/**
* LZO = 3;
*/
public static final int LZO_VALUE = 3;
public final int getNumber() { return value; }
public static CompressionKind valueOf(int value) {
switch (value) {
case 0: return NONE;
case 1: return ZLIB;
case 2: return SNAPPY;
case 3: return LZO;
default: return null;
}
}
public static com.facebook.presto.orc.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.facebook.presto.orc.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.facebook.presto.orc.protobuf.Internal.EnumLiteMap() {
public CompressionKind findValueByNumber(int number) {
return CompressionKind.valueOf(number);
}
};
public final com.facebook.presto.orc.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.facebook.presto.orc.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.facebook.presto.orc.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.getDescriptor().getEnumTypes().get(0);
}
private static final CompressionKind[] VALUES = values();
public static CompressionKind valueOf(
com.facebook.presto.orc.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private CompressionKind(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.facebook.hive.orc.CompressionKind)
}
public interface IntegerStatisticsOrBuilder
extends com.facebook.presto.orc.protobuf.MessageOrBuilder {
// optional sint64 minimum = 1;
/**
* optional sint64 minimum = 1;
*/
boolean hasMinimum();
/**
* optional sint64 minimum = 1;
*/
long getMinimum();
// optional sint64 maximum = 2;
/**
* optional sint64 maximum = 2;
*/
boolean hasMaximum();
/**
* optional sint64 maximum = 2;
*/
long getMaximum();
// optional sint64 sum = 3;
/**
* optional sint64 sum = 3;
*/
boolean hasSum();
/**
* optional sint64 sum = 3;
*/
long getSum();
}
/**
* Protobuf type {@code com.facebook.hive.orc.IntegerStatistics}
*/
public static final class IntegerStatistics extends
com.facebook.presto.orc.protobuf.GeneratedMessage
implements IntegerStatisticsOrBuilder {
// Use IntegerStatistics.newBuilder() to construct.
private IntegerStatistics(com.facebook.presto.orc.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private IntegerStatistics(boolean noInit) { this.unknownFields = com.facebook.presto.orc.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final IntegerStatistics defaultInstance;
public static IntegerStatistics getDefaultInstance() {
return defaultInstance;
}
public IntegerStatistics getDefaultInstanceForType() {
return defaultInstance;
}
private final com.facebook.presto.orc.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.facebook.presto.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IntegerStatistics(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.facebook.presto.orc.protobuf.UnknownFieldSet.Builder unknownFields =
com.facebook.presto.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
minimum_ = input.readSInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
maximum_ = input.readSInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
sum_ = input.readSInt64();
break;
}
}
}
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.facebook.presto.orc.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_IntegerStatistics_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_IntegerStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.class, com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.Builder.class);
}
public static com.facebook.presto.orc.protobuf.Parser PARSER =
new com.facebook.presto.orc.protobuf.AbstractParser() {
public IntegerStatistics parsePartialFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return new IntegerStatistics(input, extensionRegistry);
}
};
@java.lang.Override
public com.facebook.presto.orc.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional sint64 minimum = 1;
public static final int MINIMUM_FIELD_NUMBER = 1;
private long minimum_;
/**
* optional sint64 minimum = 1;
*/
public boolean hasMinimum() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional sint64 minimum = 1;
*/
public long getMinimum() {
return minimum_;
}
// optional sint64 maximum = 2;
public static final int MAXIMUM_FIELD_NUMBER = 2;
private long maximum_;
/**
* optional sint64 maximum = 2;
*/
public boolean hasMaximum() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional sint64 maximum = 2;
*/
public long getMaximum() {
return maximum_;
}
// optional sint64 sum = 3;
public static final int SUM_FIELD_NUMBER = 3;
private long sum_;
/**
* optional sint64 sum = 3;
*/
public boolean hasSum() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional sint64 sum = 3;
*/
public long getSum() {
return sum_;
}
private void initFields() {
minimum_ = 0L;
maximum_ = 0L;
sum_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.facebook.presto.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeSInt64(1, minimum_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeSInt64(2, maximum_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeSInt64(3, sum_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeSInt64Size(1, minimum_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeSInt64Size(2, maximum_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeSInt64Size(3, sum_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics parseFrom(
com.facebook.presto.orc.protobuf.ByteString data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics parseFrom(
com.facebook.presto.orc.protobuf.ByteString data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics parseFrom(byte[] data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics parseFrom(
byte[] data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics parseFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics parseDelimitedFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.facebook.hive.orc.IntegerStatistics}
*/
public static final class Builder extends
com.facebook.presto.orc.protobuf.GeneratedMessage.Builder
implements com.facebook.presto.orc.proto.DwrfProto.IntegerStatisticsOrBuilder {
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_IntegerStatistics_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_IntegerStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.class, com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.Builder.class);
}
// Construct using com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
minimum_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
maximum_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
sum_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_IntegerStatistics_descriptor;
}
public com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics getDefaultInstanceForType() {
return com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.getDefaultInstance();
}
public com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics build() {
com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics buildPartial() {
com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics result = new com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.minimum_ = minimum_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.maximum_ = maximum_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.sum_ = sum_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.facebook.presto.orc.protobuf.Message other) {
if (other instanceof com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics) {
return mergeFrom((com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics other) {
if (other == com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.getDefaultInstance()) return this;
if (other.hasMinimum()) {
setMinimum(other.getMinimum());
}
if (other.hasMaximum()) {
setMaximum(other.getMaximum());
}
if (other.hasSum()) {
setSum(other.getSum());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional sint64 minimum = 1;
private long minimum_ ;
/**
* optional sint64 minimum = 1;
*/
public boolean hasMinimum() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional sint64 minimum = 1;
*/
public long getMinimum() {
return minimum_;
}
/**
* optional sint64 minimum = 1;
*/
public Builder setMinimum(long value) {
bitField0_ |= 0x00000001;
minimum_ = value;
onChanged();
return this;
}
/**
* optional sint64 minimum = 1;
*/
public Builder clearMinimum() {
bitField0_ = (bitField0_ & ~0x00000001);
minimum_ = 0L;
onChanged();
return this;
}
// optional sint64 maximum = 2;
private long maximum_ ;
/**
* optional sint64 maximum = 2;
*/
public boolean hasMaximum() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional sint64 maximum = 2;
*/
public long getMaximum() {
return maximum_;
}
/**
* optional sint64 maximum = 2;
*/
public Builder setMaximum(long value) {
bitField0_ |= 0x00000002;
maximum_ = value;
onChanged();
return this;
}
/**
* optional sint64 maximum = 2;
*/
public Builder clearMaximum() {
bitField0_ = (bitField0_ & ~0x00000002);
maximum_ = 0L;
onChanged();
return this;
}
// optional sint64 sum = 3;
private long sum_ ;
/**
* optional sint64 sum = 3;
*/
public boolean hasSum() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional sint64 sum = 3;
*/
public long getSum() {
return sum_;
}
/**
* optional sint64 sum = 3;
*/
public Builder setSum(long value) {
bitField0_ |= 0x00000004;
sum_ = value;
onChanged();
return this;
}
/**
* optional sint64 sum = 3;
*/
public Builder clearSum() {
bitField0_ = (bitField0_ & ~0x00000004);
sum_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.facebook.hive.orc.IntegerStatistics)
}
static {
defaultInstance = new IntegerStatistics(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.facebook.hive.orc.IntegerStatistics)
}
public interface DoubleStatisticsOrBuilder
extends com.facebook.presto.orc.protobuf.MessageOrBuilder {
// optional double minimum = 1;
/**
* optional double minimum = 1;
*/
boolean hasMinimum();
/**
* optional double minimum = 1;
*/
double getMinimum();
// optional double maximum = 2;
/**
* optional double maximum = 2;
*/
boolean hasMaximum();
/**
* optional double maximum = 2;
*/
double getMaximum();
// optional double sum = 3;
/**
* optional double sum = 3;
*/
boolean hasSum();
/**
* optional double sum = 3;
*/
double getSum();
}
/**
* Protobuf type {@code com.facebook.hive.orc.DoubleStatistics}
*/
public static final class DoubleStatistics extends
com.facebook.presto.orc.protobuf.GeneratedMessage
implements DoubleStatisticsOrBuilder {
// Use DoubleStatistics.newBuilder() to construct.
private DoubleStatistics(com.facebook.presto.orc.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private DoubleStatistics(boolean noInit) { this.unknownFields = com.facebook.presto.orc.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final DoubleStatistics defaultInstance;
public static DoubleStatistics getDefaultInstance() {
return defaultInstance;
}
public DoubleStatistics getDefaultInstanceForType() {
return defaultInstance;
}
private final com.facebook.presto.orc.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.facebook.presto.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DoubleStatistics(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.facebook.presto.orc.protobuf.UnknownFieldSet.Builder unknownFields =
com.facebook.presto.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 9: {
bitField0_ |= 0x00000001;
minimum_ = input.readDouble();
break;
}
case 17: {
bitField0_ |= 0x00000002;
maximum_ = input.readDouble();
break;
}
case 25: {
bitField0_ |= 0x00000004;
sum_ = input.readDouble();
break;
}
}
}
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.facebook.presto.orc.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_DoubleStatistics_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_DoubleStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.class, com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.Builder.class);
}
public static com.facebook.presto.orc.protobuf.Parser PARSER =
new com.facebook.presto.orc.protobuf.AbstractParser() {
public DoubleStatistics parsePartialFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return new DoubleStatistics(input, extensionRegistry);
}
};
@java.lang.Override
public com.facebook.presto.orc.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional double minimum = 1;
public static final int MINIMUM_FIELD_NUMBER = 1;
private double minimum_;
/**
* optional double minimum = 1;
*/
public boolean hasMinimum() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional double minimum = 1;
*/
public double getMinimum() {
return minimum_;
}
// optional double maximum = 2;
public static final int MAXIMUM_FIELD_NUMBER = 2;
private double maximum_;
/**
* optional double maximum = 2;
*/
public boolean hasMaximum() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional double maximum = 2;
*/
public double getMaximum() {
return maximum_;
}
// optional double sum = 3;
public static final int SUM_FIELD_NUMBER = 3;
private double sum_;
/**
* optional double sum = 3;
*/
public boolean hasSum() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional double sum = 3;
*/
public double getSum() {
return sum_;
}
private void initFields() {
minimum_ = 0D;
maximum_ = 0D;
sum_ = 0D;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.facebook.presto.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeDouble(1, minimum_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeDouble(2, maximum_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeDouble(3, sum_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeDoubleSize(1, minimum_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeDoubleSize(2, maximum_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeDoubleSize(3, sum_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics parseFrom(
com.facebook.presto.orc.protobuf.ByteString data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics parseFrom(
com.facebook.presto.orc.protobuf.ByteString data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics parseFrom(byte[] data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics parseFrom(
byte[] data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics parseFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics parseDelimitedFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.facebook.hive.orc.DoubleStatistics}
*/
public static final class Builder extends
com.facebook.presto.orc.protobuf.GeneratedMessage.Builder
implements com.facebook.presto.orc.proto.DwrfProto.DoubleStatisticsOrBuilder {
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_DoubleStatistics_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_DoubleStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.class, com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.Builder.class);
}
// Construct using com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
minimum_ = 0D;
bitField0_ = (bitField0_ & ~0x00000001);
maximum_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
sum_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_DoubleStatistics_descriptor;
}
public com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics getDefaultInstanceForType() {
return com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.getDefaultInstance();
}
public com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics build() {
com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics buildPartial() {
com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics result = new com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.minimum_ = minimum_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.maximum_ = maximum_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.sum_ = sum_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.facebook.presto.orc.protobuf.Message other) {
if (other instanceof com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics) {
return mergeFrom((com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics other) {
if (other == com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.getDefaultInstance()) return this;
if (other.hasMinimum()) {
setMinimum(other.getMinimum());
}
if (other.hasMaximum()) {
setMaximum(other.getMaximum());
}
if (other.hasSum()) {
setSum(other.getSum());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional double minimum = 1;
private double minimum_ ;
/**
* optional double minimum = 1;
*/
public boolean hasMinimum() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional double minimum = 1;
*/
public double getMinimum() {
return minimum_;
}
/**
* optional double minimum = 1;
*/
public Builder setMinimum(double value) {
bitField0_ |= 0x00000001;
minimum_ = value;
onChanged();
return this;
}
/**
* optional double minimum = 1;
*/
public Builder clearMinimum() {
bitField0_ = (bitField0_ & ~0x00000001);
minimum_ = 0D;
onChanged();
return this;
}
// optional double maximum = 2;
private double maximum_ ;
/**
* optional double maximum = 2;
*/
public boolean hasMaximum() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional double maximum = 2;
*/
public double getMaximum() {
return maximum_;
}
/**
* optional double maximum = 2;
*/
public Builder setMaximum(double value) {
bitField0_ |= 0x00000002;
maximum_ = value;
onChanged();
return this;
}
/**
* optional double maximum = 2;
*/
public Builder clearMaximum() {
bitField0_ = (bitField0_ & ~0x00000002);
maximum_ = 0D;
onChanged();
return this;
}
// optional double sum = 3;
private double sum_ ;
/**
* optional double sum = 3;
*/
public boolean hasSum() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional double sum = 3;
*/
public double getSum() {
return sum_;
}
/**
* optional double sum = 3;
*/
public Builder setSum(double value) {
bitField0_ |= 0x00000004;
sum_ = value;
onChanged();
return this;
}
/**
* optional double sum = 3;
*/
public Builder clearSum() {
bitField0_ = (bitField0_ & ~0x00000004);
sum_ = 0D;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.facebook.hive.orc.DoubleStatistics)
}
static {
defaultInstance = new DoubleStatistics(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.facebook.hive.orc.DoubleStatistics)
}
public interface StringStatisticsOrBuilder
extends com.facebook.presto.orc.protobuf.MessageOrBuilder {
// optional string minimum = 1;
/**
* optional string minimum = 1;
*/
boolean hasMinimum();
/**
* optional string minimum = 1;
*/
java.lang.String getMinimum();
/**
* optional string minimum = 1;
*/
com.facebook.presto.orc.protobuf.ByteString
getMinimumBytes();
// optional string maximum = 2;
/**
* optional string maximum = 2;
*/
boolean hasMaximum();
/**
* optional string maximum = 2;
*/
java.lang.String getMaximum();
/**
* optional string maximum = 2;
*/
com.facebook.presto.orc.protobuf.ByteString
getMaximumBytes();
}
/**
* Protobuf type {@code com.facebook.hive.orc.StringStatistics}
*/
public static final class StringStatistics extends
com.facebook.presto.orc.protobuf.GeneratedMessage
implements StringStatisticsOrBuilder {
// Use StringStatistics.newBuilder() to construct.
private StringStatistics(com.facebook.presto.orc.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StringStatistics(boolean noInit) { this.unknownFields = com.facebook.presto.orc.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StringStatistics defaultInstance;
public static StringStatistics getDefaultInstance() {
return defaultInstance;
}
public StringStatistics getDefaultInstanceForType() {
return defaultInstance;
}
private final com.facebook.presto.orc.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.facebook.presto.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StringStatistics(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.facebook.presto.orc.protobuf.UnknownFieldSet.Builder unknownFields =
com.facebook.presto.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
minimum_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
maximum_ = input.readBytes();
break;
}
}
}
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.facebook.presto.orc.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StringStatistics_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StringStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.StringStatistics.class, com.facebook.presto.orc.proto.DwrfProto.StringStatistics.Builder.class);
}
public static com.facebook.presto.orc.protobuf.Parser PARSER =
new com.facebook.presto.orc.protobuf.AbstractParser() {
public StringStatistics parsePartialFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return new StringStatistics(input, extensionRegistry);
}
};
@java.lang.Override
public com.facebook.presto.orc.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional string minimum = 1;
public static final int MINIMUM_FIELD_NUMBER = 1;
private java.lang.Object minimum_;
/**
* optional string minimum = 1;
*/
public boolean hasMinimum() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string minimum = 1;
*/
public java.lang.String getMinimum() {
java.lang.Object ref = minimum_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.facebook.presto.orc.protobuf.ByteString bs =
(com.facebook.presto.orc.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
minimum_ = s;
}
return s;
}
}
/**
* optional string minimum = 1;
*/
public com.facebook.presto.orc.protobuf.ByteString
getMinimumBytes() {
java.lang.Object ref = minimum_;
if (ref instanceof java.lang.String) {
com.facebook.presto.orc.protobuf.ByteString b =
com.facebook.presto.orc.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
minimum_ = b;
return b;
} else {
return (com.facebook.presto.orc.protobuf.ByteString) ref;
}
}
// optional string maximum = 2;
public static final int MAXIMUM_FIELD_NUMBER = 2;
private java.lang.Object maximum_;
/**
* optional string maximum = 2;
*/
public boolean hasMaximum() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string maximum = 2;
*/
public java.lang.String getMaximum() {
java.lang.Object ref = maximum_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.facebook.presto.orc.protobuf.ByteString bs =
(com.facebook.presto.orc.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
maximum_ = s;
}
return s;
}
}
/**
* optional string maximum = 2;
*/
public com.facebook.presto.orc.protobuf.ByteString
getMaximumBytes() {
java.lang.Object ref = maximum_;
if (ref instanceof java.lang.String) {
com.facebook.presto.orc.protobuf.ByteString b =
com.facebook.presto.orc.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
maximum_ = b;
return b;
} else {
return (com.facebook.presto.orc.protobuf.ByteString) ref;
}
}
private void initFields() {
minimum_ = "";
maximum_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.facebook.presto.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getMinimumBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getMaximumBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeBytesSize(1, getMinimumBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeBytesSize(2, getMaximumBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.facebook.presto.orc.proto.DwrfProto.StringStatistics parseFrom(
com.facebook.presto.orc.protobuf.ByteString data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.StringStatistics parseFrom(
com.facebook.presto.orc.protobuf.ByteString data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.StringStatistics parseFrom(byte[] data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.StringStatistics parseFrom(
byte[] data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.StringStatistics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.StringStatistics parseFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.StringStatistics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.StringStatistics parseDelimitedFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.StringStatistics parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.StringStatistics parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.facebook.presto.orc.proto.DwrfProto.StringStatistics prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.facebook.hive.orc.StringStatistics}
*/
public static final class Builder extends
com.facebook.presto.orc.protobuf.GeneratedMessage.Builder
implements com.facebook.presto.orc.proto.DwrfProto.StringStatisticsOrBuilder {
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StringStatistics_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StringStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.StringStatistics.class, com.facebook.presto.orc.proto.DwrfProto.StringStatistics.Builder.class);
}
// Construct using com.facebook.presto.orc.proto.DwrfProto.StringStatistics.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
minimum_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
maximum_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StringStatistics_descriptor;
}
public com.facebook.presto.orc.proto.DwrfProto.StringStatistics getDefaultInstanceForType() {
return com.facebook.presto.orc.proto.DwrfProto.StringStatistics.getDefaultInstance();
}
public com.facebook.presto.orc.proto.DwrfProto.StringStatistics build() {
com.facebook.presto.orc.proto.DwrfProto.StringStatistics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.facebook.presto.orc.proto.DwrfProto.StringStatistics buildPartial() {
com.facebook.presto.orc.proto.DwrfProto.StringStatistics result = new com.facebook.presto.orc.proto.DwrfProto.StringStatistics(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.minimum_ = minimum_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.maximum_ = maximum_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.facebook.presto.orc.protobuf.Message other) {
if (other instanceof com.facebook.presto.orc.proto.DwrfProto.StringStatistics) {
return mergeFrom((com.facebook.presto.orc.proto.DwrfProto.StringStatistics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.facebook.presto.orc.proto.DwrfProto.StringStatistics other) {
if (other == com.facebook.presto.orc.proto.DwrfProto.StringStatistics.getDefaultInstance()) return this;
if (other.hasMinimum()) {
bitField0_ |= 0x00000001;
minimum_ = other.minimum_;
onChanged();
}
if (other.hasMaximum()) {
bitField0_ |= 0x00000002;
maximum_ = other.maximum_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.facebook.presto.orc.proto.DwrfProto.StringStatistics parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.facebook.presto.orc.proto.DwrfProto.StringStatistics) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional string minimum = 1;
private java.lang.Object minimum_ = "";
/**
* optional string minimum = 1;
*/
public boolean hasMinimum() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string minimum = 1;
*/
public java.lang.String getMinimum() {
java.lang.Object ref = minimum_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.facebook.presto.orc.protobuf.ByteString) ref)
.toStringUtf8();
minimum_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string minimum = 1;
*/
public com.facebook.presto.orc.protobuf.ByteString
getMinimumBytes() {
java.lang.Object ref = minimum_;
if (ref instanceof String) {
com.facebook.presto.orc.protobuf.ByteString b =
com.facebook.presto.orc.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
minimum_ = b;
return b;
} else {
return (com.facebook.presto.orc.protobuf.ByteString) ref;
}
}
/**
* optional string minimum = 1;
*/
public Builder setMinimum(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
minimum_ = value;
onChanged();
return this;
}
/**
* optional string minimum = 1;
*/
public Builder clearMinimum() {
bitField0_ = (bitField0_ & ~0x00000001);
minimum_ = getDefaultInstance().getMinimum();
onChanged();
return this;
}
/**
* optional string minimum = 1;
*/
public Builder setMinimumBytes(
com.facebook.presto.orc.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
minimum_ = value;
onChanged();
return this;
}
// optional string maximum = 2;
private java.lang.Object maximum_ = "";
/**
* optional string maximum = 2;
*/
public boolean hasMaximum() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string maximum = 2;
*/
public java.lang.String getMaximum() {
java.lang.Object ref = maximum_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.facebook.presto.orc.protobuf.ByteString) ref)
.toStringUtf8();
maximum_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string maximum = 2;
*/
public com.facebook.presto.orc.protobuf.ByteString
getMaximumBytes() {
java.lang.Object ref = maximum_;
if (ref instanceof String) {
com.facebook.presto.orc.protobuf.ByteString b =
com.facebook.presto.orc.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
maximum_ = b;
return b;
} else {
return (com.facebook.presto.orc.protobuf.ByteString) ref;
}
}
/**
* optional string maximum = 2;
*/
public Builder setMaximum(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
maximum_ = value;
onChanged();
return this;
}
/**
* optional string maximum = 2;
*/
public Builder clearMaximum() {
bitField0_ = (bitField0_ & ~0x00000002);
maximum_ = getDefaultInstance().getMaximum();
onChanged();
return this;
}
/**
* optional string maximum = 2;
*/
public Builder setMaximumBytes(
com.facebook.presto.orc.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
maximum_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.facebook.hive.orc.StringStatistics)
}
static {
defaultInstance = new StringStatistics(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.facebook.hive.orc.StringStatistics)
}
public interface BucketStatisticsOrBuilder
extends com.facebook.presto.orc.protobuf.MessageOrBuilder {
// repeated uint64 count = 1 [packed = true];
/**
* repeated uint64 count = 1 [packed = true];
*/
java.util.List getCountList();
/**
* repeated uint64 count = 1 [packed = true];
*/
int getCountCount();
/**
* repeated uint64 count = 1 [packed = true];
*/
long getCount(int index);
}
/**
* Protobuf type {@code com.facebook.hive.orc.BucketStatistics}
*/
public static final class BucketStatistics extends
com.facebook.presto.orc.protobuf.GeneratedMessage
implements BucketStatisticsOrBuilder {
// Use BucketStatistics.newBuilder() to construct.
private BucketStatistics(com.facebook.presto.orc.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private BucketStatistics(boolean noInit) { this.unknownFields = com.facebook.presto.orc.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final BucketStatistics defaultInstance;
public static BucketStatistics getDefaultInstance() {
return defaultInstance;
}
public BucketStatistics getDefaultInstanceForType() {
return defaultInstance;
}
private final com.facebook.presto.orc.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.facebook.presto.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BucketStatistics(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.facebook.presto.orc.protobuf.UnknownFieldSet.Builder unknownFields =
com.facebook.presto.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
count_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
count_.add(input.readUInt64());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
count_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
count_.add(input.readUInt64());
}
input.popLimit(limit);
break;
}
}
}
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.facebook.presto.orc.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
count_ = java.util.Collections.unmodifiableList(count_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_BucketStatistics_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_BucketStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.class, com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.Builder.class);
}
public static com.facebook.presto.orc.protobuf.Parser PARSER =
new com.facebook.presto.orc.protobuf.AbstractParser() {
public BucketStatistics parsePartialFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return new BucketStatistics(input, extensionRegistry);
}
};
@java.lang.Override
public com.facebook.presto.orc.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated uint64 count = 1 [packed = true];
public static final int COUNT_FIELD_NUMBER = 1;
private java.util.List count_;
/**
* repeated uint64 count = 1 [packed = true];
*/
public java.util.List
getCountList() {
return count_;
}
/**
* repeated uint64 count = 1 [packed = true];
*/
public int getCountCount() {
return count_.size();
}
/**
* repeated uint64 count = 1 [packed = true];
*/
public long getCount(int index) {
return count_.get(index);
}
private int countMemoizedSerializedSize = -1;
private void initFields() {
count_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.facebook.presto.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getCountList().size() > 0) {
output.writeRawVarint32(10);
output.writeRawVarint32(countMemoizedSerializedSize);
}
for (int i = 0; i < count_.size(); i++) {
output.writeUInt64NoTag(count_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < count_.size(); i++) {
dataSize += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(count_.get(i));
}
size += dataSize;
if (!getCountList().isEmpty()) {
size += 1;
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
countMemoizedSerializedSize = dataSize;
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.facebook.presto.orc.proto.DwrfProto.BucketStatistics parseFrom(
com.facebook.presto.orc.protobuf.ByteString data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.BucketStatistics parseFrom(
com.facebook.presto.orc.protobuf.ByteString data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.BucketStatistics parseFrom(byte[] data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.BucketStatistics parseFrom(
byte[] data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.BucketStatistics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.BucketStatistics parseFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.BucketStatistics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.BucketStatistics parseDelimitedFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.BucketStatistics parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.BucketStatistics parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.facebook.presto.orc.proto.DwrfProto.BucketStatistics prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.facebook.hive.orc.BucketStatistics}
*/
public static final class Builder extends
com.facebook.presto.orc.protobuf.GeneratedMessage.Builder
implements com.facebook.presto.orc.proto.DwrfProto.BucketStatisticsOrBuilder {
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_BucketStatistics_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_BucketStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.class, com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.Builder.class);
}
// Construct using com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
count_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_BucketStatistics_descriptor;
}
public com.facebook.presto.orc.proto.DwrfProto.BucketStatistics getDefaultInstanceForType() {
return com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.getDefaultInstance();
}
public com.facebook.presto.orc.proto.DwrfProto.BucketStatistics build() {
com.facebook.presto.orc.proto.DwrfProto.BucketStatistics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.facebook.presto.orc.proto.DwrfProto.BucketStatistics buildPartial() {
com.facebook.presto.orc.proto.DwrfProto.BucketStatistics result = new com.facebook.presto.orc.proto.DwrfProto.BucketStatistics(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
count_ = java.util.Collections.unmodifiableList(count_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.count_ = count_;
onBuilt();
return result;
}
public Builder mergeFrom(com.facebook.presto.orc.protobuf.Message other) {
if (other instanceof com.facebook.presto.orc.proto.DwrfProto.BucketStatistics) {
return mergeFrom((com.facebook.presto.orc.proto.DwrfProto.BucketStatistics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.facebook.presto.orc.proto.DwrfProto.BucketStatistics other) {
if (other == com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.getDefaultInstance()) return this;
if (!other.count_.isEmpty()) {
if (count_.isEmpty()) {
count_ = other.count_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCountIsMutable();
count_.addAll(other.count_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.facebook.presto.orc.proto.DwrfProto.BucketStatistics parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.facebook.presto.orc.proto.DwrfProto.BucketStatistics) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated uint64 count = 1 [packed = true];
private java.util.List count_ = java.util.Collections.emptyList();
private void ensureCountIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
count_ = new java.util.ArrayList(count_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated uint64 count = 1 [packed = true];
*/
public java.util.List
getCountList() {
return java.util.Collections.unmodifiableList(count_);
}
/**
* repeated uint64 count = 1 [packed = true];
*/
public int getCountCount() {
return count_.size();
}
/**
* repeated uint64 count = 1 [packed = true];
*/
public long getCount(int index) {
return count_.get(index);
}
/**
* repeated uint64 count = 1 [packed = true];
*/
public Builder setCount(
int index, long value) {
ensureCountIsMutable();
count_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint64 count = 1 [packed = true];
*/
public Builder addCount(long value) {
ensureCountIsMutable();
count_.add(value);
onChanged();
return this;
}
/**
* repeated uint64 count = 1 [packed = true];
*/
public Builder addAllCount(
java.lang.Iterable extends java.lang.Long> values) {
ensureCountIsMutable();
super.addAll(values, count_);
onChanged();
return this;
}
/**
* repeated uint64 count = 1 [packed = true];
*/
public Builder clearCount() {
count_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.facebook.hive.orc.BucketStatistics)
}
static {
defaultInstance = new BucketStatistics(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.facebook.hive.orc.BucketStatistics)
}
public interface ColumnStatisticsOrBuilder
extends com.facebook.presto.orc.protobuf.MessageOrBuilder {
// optional uint64 numberOfValues = 1;
/**
* optional uint64 numberOfValues = 1;
*/
boolean hasNumberOfValues();
/**
* optional uint64 numberOfValues = 1;
*/
long getNumberOfValues();
// optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
boolean hasIntStatistics();
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics getIntStatistics();
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
com.facebook.presto.orc.proto.DwrfProto.IntegerStatisticsOrBuilder getIntStatisticsOrBuilder();
// optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
boolean hasDoubleStatistics();
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics getDoubleStatistics();
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
com.facebook.presto.orc.proto.DwrfProto.DoubleStatisticsOrBuilder getDoubleStatisticsOrBuilder();
// optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
boolean hasStringStatistics();
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
com.facebook.presto.orc.proto.DwrfProto.StringStatistics getStringStatistics();
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
com.facebook.presto.orc.proto.DwrfProto.StringStatisticsOrBuilder getStringStatisticsOrBuilder();
// optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
boolean hasBucketStatistics();
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
com.facebook.presto.orc.proto.DwrfProto.BucketStatistics getBucketStatistics();
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
com.facebook.presto.orc.proto.DwrfProto.BucketStatisticsOrBuilder getBucketStatisticsOrBuilder();
}
/**
* Protobuf type {@code com.facebook.hive.orc.ColumnStatistics}
*/
public static final class ColumnStatistics extends
com.facebook.presto.orc.protobuf.GeneratedMessage
implements ColumnStatisticsOrBuilder {
// Use ColumnStatistics.newBuilder() to construct.
private ColumnStatistics(com.facebook.presto.orc.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ColumnStatistics(boolean noInit) { this.unknownFields = com.facebook.presto.orc.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ColumnStatistics defaultInstance;
public static ColumnStatistics getDefaultInstance() {
return defaultInstance;
}
public ColumnStatistics getDefaultInstanceForType() {
return defaultInstance;
}
private final com.facebook.presto.orc.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.facebook.presto.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ColumnStatistics(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.facebook.presto.orc.protobuf.UnknownFieldSet.Builder unknownFields =
com.facebook.presto.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
numberOfValues_ = input.readUInt64();
break;
}
case 18: {
com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = intStatistics_.toBuilder();
}
intStatistics_ = input.readMessage(com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(intStatistics_);
intStatistics_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
subBuilder = doubleStatistics_.toBuilder();
}
doubleStatistics_ = input.readMessage(com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(doubleStatistics_);
doubleStatistics_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
com.facebook.presto.orc.proto.DwrfProto.StringStatistics.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) == 0x00000008)) {
subBuilder = stringStatistics_.toBuilder();
}
stringStatistics_ = input.readMessage(com.facebook.presto.orc.proto.DwrfProto.StringStatistics.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(stringStatistics_);
stringStatistics_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) == 0x00000010)) {
subBuilder = bucketStatistics_.toBuilder();
}
bucketStatistics_ = input.readMessage(com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(bucketStatistics_);
bucketStatistics_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
}
}
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.facebook.presto.orc.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_ColumnStatistics_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_ColumnStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.class, com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.Builder.class);
}
public static com.facebook.presto.orc.protobuf.Parser PARSER =
new com.facebook.presto.orc.protobuf.AbstractParser() {
public ColumnStatistics parsePartialFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return new ColumnStatistics(input, extensionRegistry);
}
};
@java.lang.Override
public com.facebook.presto.orc.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional uint64 numberOfValues = 1;
public static final int NUMBEROFVALUES_FIELD_NUMBER = 1;
private long numberOfValues_;
/**
* optional uint64 numberOfValues = 1;
*/
public boolean hasNumberOfValues() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint64 numberOfValues = 1;
*/
public long getNumberOfValues() {
return numberOfValues_;
}
// optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
public static final int INTSTATISTICS_FIELD_NUMBER = 2;
private com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics intStatistics_;
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
public boolean hasIntStatistics() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics getIntStatistics() {
return intStatistics_;
}
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.IntegerStatisticsOrBuilder getIntStatisticsOrBuilder() {
return intStatistics_;
}
// optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
public static final int DOUBLESTATISTICS_FIELD_NUMBER = 3;
private com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics doubleStatistics_;
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
public boolean hasDoubleStatistics() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
public com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics getDoubleStatistics() {
return doubleStatistics_;
}
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
public com.facebook.presto.orc.proto.DwrfProto.DoubleStatisticsOrBuilder getDoubleStatisticsOrBuilder() {
return doubleStatistics_;
}
// optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
public static final int STRINGSTATISTICS_FIELD_NUMBER = 4;
private com.facebook.presto.orc.proto.DwrfProto.StringStatistics stringStatistics_;
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
public boolean hasStringStatistics() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
public com.facebook.presto.orc.proto.DwrfProto.StringStatistics getStringStatistics() {
return stringStatistics_;
}
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
public com.facebook.presto.orc.proto.DwrfProto.StringStatisticsOrBuilder getStringStatisticsOrBuilder() {
return stringStatistics_;
}
// optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
public static final int BUCKETSTATISTICS_FIELD_NUMBER = 5;
private com.facebook.presto.orc.proto.DwrfProto.BucketStatistics bucketStatistics_;
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
public boolean hasBucketStatistics() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
public com.facebook.presto.orc.proto.DwrfProto.BucketStatistics getBucketStatistics() {
return bucketStatistics_;
}
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
public com.facebook.presto.orc.proto.DwrfProto.BucketStatisticsOrBuilder getBucketStatisticsOrBuilder() {
return bucketStatistics_;
}
private void initFields() {
numberOfValues_ = 0L;
intStatistics_ = com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.getDefaultInstance();
doubleStatistics_ = com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.getDefaultInstance();
stringStatistics_ = com.facebook.presto.orc.proto.DwrfProto.StringStatistics.getDefaultInstance();
bucketStatistics_ = com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.facebook.presto.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt64(1, numberOfValues_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, intStatistics_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeMessage(3, doubleStatistics_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeMessage(4, stringStatistics_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeMessage(5, bucketStatistics_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeUInt64Size(1, numberOfValues_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeMessageSize(2, intStatistics_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeMessageSize(3, doubleStatistics_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeMessageSize(4, stringStatistics_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeMessageSize(5, bucketStatistics_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics parseFrom(
com.facebook.presto.orc.protobuf.ByteString data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics parseFrom(
com.facebook.presto.orc.protobuf.ByteString data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics parseFrom(byte[] data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics parseFrom(
byte[] data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics parseFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics parseDelimitedFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.facebook.hive.orc.ColumnStatistics}
*/
public static final class Builder extends
com.facebook.presto.orc.protobuf.GeneratedMessage.Builder
implements com.facebook.presto.orc.proto.DwrfProto.ColumnStatisticsOrBuilder {
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_ColumnStatistics_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_ColumnStatistics_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.class, com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.Builder.class);
}
// Construct using com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getIntStatisticsFieldBuilder();
getDoubleStatisticsFieldBuilder();
getStringStatisticsFieldBuilder();
getBucketStatisticsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
numberOfValues_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
if (intStatisticsBuilder_ == null) {
intStatistics_ = com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.getDefaultInstance();
} else {
intStatisticsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (doubleStatisticsBuilder_ == null) {
doubleStatistics_ = com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.getDefaultInstance();
} else {
doubleStatisticsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (stringStatisticsBuilder_ == null) {
stringStatistics_ = com.facebook.presto.orc.proto.DwrfProto.StringStatistics.getDefaultInstance();
} else {
stringStatisticsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (bucketStatisticsBuilder_ == null) {
bucketStatistics_ = com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.getDefaultInstance();
} else {
bucketStatisticsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_ColumnStatistics_descriptor;
}
public com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics getDefaultInstanceForType() {
return com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.getDefaultInstance();
}
public com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics build() {
com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics buildPartial() {
com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics result = new com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.numberOfValues_ = numberOfValues_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (intStatisticsBuilder_ == null) {
result.intStatistics_ = intStatistics_;
} else {
result.intStatistics_ = intStatisticsBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
if (doubleStatisticsBuilder_ == null) {
result.doubleStatistics_ = doubleStatistics_;
} else {
result.doubleStatistics_ = doubleStatisticsBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
if (stringStatisticsBuilder_ == null) {
result.stringStatistics_ = stringStatistics_;
} else {
result.stringStatistics_ = stringStatisticsBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
if (bucketStatisticsBuilder_ == null) {
result.bucketStatistics_ = bucketStatistics_;
} else {
result.bucketStatistics_ = bucketStatisticsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.facebook.presto.orc.protobuf.Message other) {
if (other instanceof com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics) {
return mergeFrom((com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics other) {
if (other == com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.getDefaultInstance()) return this;
if (other.hasNumberOfValues()) {
setNumberOfValues(other.getNumberOfValues());
}
if (other.hasIntStatistics()) {
mergeIntStatistics(other.getIntStatistics());
}
if (other.hasDoubleStatistics()) {
mergeDoubleStatistics(other.getDoubleStatistics());
}
if (other.hasStringStatistics()) {
mergeStringStatistics(other.getStringStatistics());
}
if (other.hasBucketStatistics()) {
mergeBucketStatistics(other.getBucketStatistics());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional uint64 numberOfValues = 1;
private long numberOfValues_ ;
/**
* optional uint64 numberOfValues = 1;
*/
public boolean hasNumberOfValues() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint64 numberOfValues = 1;
*/
public long getNumberOfValues() {
return numberOfValues_;
}
/**
* optional uint64 numberOfValues = 1;
*/
public Builder setNumberOfValues(long value) {
bitField0_ |= 0x00000001;
numberOfValues_ = value;
onChanged();
return this;
}
/**
* optional uint64 numberOfValues = 1;
*/
public Builder clearNumberOfValues() {
bitField0_ = (bitField0_ & ~0x00000001);
numberOfValues_ = 0L;
onChanged();
return this;
}
// optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
private com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics intStatistics_ = com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.getDefaultInstance();
private com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics, com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.IntegerStatisticsOrBuilder> intStatisticsBuilder_;
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
public boolean hasIntStatistics() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics getIntStatistics() {
if (intStatisticsBuilder_ == null) {
return intStatistics_;
} else {
return intStatisticsBuilder_.getMessage();
}
}
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
public Builder setIntStatistics(com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics value) {
if (intStatisticsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
intStatistics_ = value;
onChanged();
} else {
intStatisticsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
public Builder setIntStatistics(
com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.Builder builderForValue) {
if (intStatisticsBuilder_ == null) {
intStatistics_ = builderForValue.build();
onChanged();
} else {
intStatisticsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
public Builder mergeIntStatistics(com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics value) {
if (intStatisticsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
intStatistics_ != com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.getDefaultInstance()) {
intStatistics_ =
com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.newBuilder(intStatistics_).mergeFrom(value).buildPartial();
} else {
intStatistics_ = value;
}
onChanged();
} else {
intStatisticsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
public Builder clearIntStatistics() {
if (intStatisticsBuilder_ == null) {
intStatistics_ = com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.getDefaultInstance();
onChanged();
} else {
intStatisticsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.Builder getIntStatisticsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getIntStatisticsFieldBuilder().getBuilder();
}
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.IntegerStatisticsOrBuilder getIntStatisticsOrBuilder() {
if (intStatisticsBuilder_ != null) {
return intStatisticsBuilder_.getMessageOrBuilder();
} else {
return intStatistics_;
}
}
/**
* optional .com.facebook.hive.orc.IntegerStatistics intStatistics = 2;
*/
private com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics, com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.IntegerStatisticsOrBuilder>
getIntStatisticsFieldBuilder() {
if (intStatisticsBuilder_ == null) {
intStatisticsBuilder_ = new com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics, com.facebook.presto.orc.proto.DwrfProto.IntegerStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.IntegerStatisticsOrBuilder>(
intStatistics_,
getParentForChildren(),
isClean());
intStatistics_ = null;
}
return intStatisticsBuilder_;
}
// optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
private com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics doubleStatistics_ = com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.getDefaultInstance();
private com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics, com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.DoubleStatisticsOrBuilder> doubleStatisticsBuilder_;
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
public boolean hasDoubleStatistics() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
public com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics getDoubleStatistics() {
if (doubleStatisticsBuilder_ == null) {
return doubleStatistics_;
} else {
return doubleStatisticsBuilder_.getMessage();
}
}
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
public Builder setDoubleStatistics(com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics value) {
if (doubleStatisticsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
doubleStatistics_ = value;
onChanged();
} else {
doubleStatisticsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
public Builder setDoubleStatistics(
com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.Builder builderForValue) {
if (doubleStatisticsBuilder_ == null) {
doubleStatistics_ = builderForValue.build();
onChanged();
} else {
doubleStatisticsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
public Builder mergeDoubleStatistics(com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics value) {
if (doubleStatisticsBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004) &&
doubleStatistics_ != com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.getDefaultInstance()) {
doubleStatistics_ =
com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.newBuilder(doubleStatistics_).mergeFrom(value).buildPartial();
} else {
doubleStatistics_ = value;
}
onChanged();
} else {
doubleStatisticsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
public Builder clearDoubleStatistics() {
if (doubleStatisticsBuilder_ == null) {
doubleStatistics_ = com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.getDefaultInstance();
onChanged();
} else {
doubleStatisticsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
public com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.Builder getDoubleStatisticsBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getDoubleStatisticsFieldBuilder().getBuilder();
}
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
public com.facebook.presto.orc.proto.DwrfProto.DoubleStatisticsOrBuilder getDoubleStatisticsOrBuilder() {
if (doubleStatisticsBuilder_ != null) {
return doubleStatisticsBuilder_.getMessageOrBuilder();
} else {
return doubleStatistics_;
}
}
/**
* optional .com.facebook.hive.orc.DoubleStatistics doubleStatistics = 3;
*/
private com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics, com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.DoubleStatisticsOrBuilder>
getDoubleStatisticsFieldBuilder() {
if (doubleStatisticsBuilder_ == null) {
doubleStatisticsBuilder_ = new com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics, com.facebook.presto.orc.proto.DwrfProto.DoubleStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.DoubleStatisticsOrBuilder>(
doubleStatistics_,
getParentForChildren(),
isClean());
doubleStatistics_ = null;
}
return doubleStatisticsBuilder_;
}
// optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
private com.facebook.presto.orc.proto.DwrfProto.StringStatistics stringStatistics_ = com.facebook.presto.orc.proto.DwrfProto.StringStatistics.getDefaultInstance();
private com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.StringStatistics, com.facebook.presto.orc.proto.DwrfProto.StringStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.StringStatisticsOrBuilder> stringStatisticsBuilder_;
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
public boolean hasStringStatistics() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
public com.facebook.presto.orc.proto.DwrfProto.StringStatistics getStringStatistics() {
if (stringStatisticsBuilder_ == null) {
return stringStatistics_;
} else {
return stringStatisticsBuilder_.getMessage();
}
}
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
public Builder setStringStatistics(com.facebook.presto.orc.proto.DwrfProto.StringStatistics value) {
if (stringStatisticsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stringStatistics_ = value;
onChanged();
} else {
stringStatisticsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
public Builder setStringStatistics(
com.facebook.presto.orc.proto.DwrfProto.StringStatistics.Builder builderForValue) {
if (stringStatisticsBuilder_ == null) {
stringStatistics_ = builderForValue.build();
onChanged();
} else {
stringStatisticsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
public Builder mergeStringStatistics(com.facebook.presto.orc.proto.DwrfProto.StringStatistics value) {
if (stringStatisticsBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008) &&
stringStatistics_ != com.facebook.presto.orc.proto.DwrfProto.StringStatistics.getDefaultInstance()) {
stringStatistics_ =
com.facebook.presto.orc.proto.DwrfProto.StringStatistics.newBuilder(stringStatistics_).mergeFrom(value).buildPartial();
} else {
stringStatistics_ = value;
}
onChanged();
} else {
stringStatisticsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
public Builder clearStringStatistics() {
if (stringStatisticsBuilder_ == null) {
stringStatistics_ = com.facebook.presto.orc.proto.DwrfProto.StringStatistics.getDefaultInstance();
onChanged();
} else {
stringStatisticsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
public com.facebook.presto.orc.proto.DwrfProto.StringStatistics.Builder getStringStatisticsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getStringStatisticsFieldBuilder().getBuilder();
}
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
public com.facebook.presto.orc.proto.DwrfProto.StringStatisticsOrBuilder getStringStatisticsOrBuilder() {
if (stringStatisticsBuilder_ != null) {
return stringStatisticsBuilder_.getMessageOrBuilder();
} else {
return stringStatistics_;
}
}
/**
* optional .com.facebook.hive.orc.StringStatistics stringStatistics = 4;
*/
private com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.StringStatistics, com.facebook.presto.orc.proto.DwrfProto.StringStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.StringStatisticsOrBuilder>
getStringStatisticsFieldBuilder() {
if (stringStatisticsBuilder_ == null) {
stringStatisticsBuilder_ = new com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.StringStatistics, com.facebook.presto.orc.proto.DwrfProto.StringStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.StringStatisticsOrBuilder>(
stringStatistics_,
getParentForChildren(),
isClean());
stringStatistics_ = null;
}
return stringStatisticsBuilder_;
}
// optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
private com.facebook.presto.orc.proto.DwrfProto.BucketStatistics bucketStatistics_ = com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.getDefaultInstance();
private com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.BucketStatistics, com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.BucketStatisticsOrBuilder> bucketStatisticsBuilder_;
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
public boolean hasBucketStatistics() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
public com.facebook.presto.orc.proto.DwrfProto.BucketStatistics getBucketStatistics() {
if (bucketStatisticsBuilder_ == null) {
return bucketStatistics_;
} else {
return bucketStatisticsBuilder_.getMessage();
}
}
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
public Builder setBucketStatistics(com.facebook.presto.orc.proto.DwrfProto.BucketStatistics value) {
if (bucketStatisticsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
bucketStatistics_ = value;
onChanged();
} else {
bucketStatisticsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
public Builder setBucketStatistics(
com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.Builder builderForValue) {
if (bucketStatisticsBuilder_ == null) {
bucketStatistics_ = builderForValue.build();
onChanged();
} else {
bucketStatisticsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
public Builder mergeBucketStatistics(com.facebook.presto.orc.proto.DwrfProto.BucketStatistics value) {
if (bucketStatisticsBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010) &&
bucketStatistics_ != com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.getDefaultInstance()) {
bucketStatistics_ =
com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.newBuilder(bucketStatistics_).mergeFrom(value).buildPartial();
} else {
bucketStatistics_ = value;
}
onChanged();
} else {
bucketStatisticsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
public Builder clearBucketStatistics() {
if (bucketStatisticsBuilder_ == null) {
bucketStatistics_ = com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.getDefaultInstance();
onChanged();
} else {
bucketStatisticsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
public com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.Builder getBucketStatisticsBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getBucketStatisticsFieldBuilder().getBuilder();
}
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
public com.facebook.presto.orc.proto.DwrfProto.BucketStatisticsOrBuilder getBucketStatisticsOrBuilder() {
if (bucketStatisticsBuilder_ != null) {
return bucketStatisticsBuilder_.getMessageOrBuilder();
} else {
return bucketStatistics_;
}
}
/**
* optional .com.facebook.hive.orc.BucketStatistics bucketStatistics = 5;
*/
private com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.BucketStatistics, com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.BucketStatisticsOrBuilder>
getBucketStatisticsFieldBuilder() {
if (bucketStatisticsBuilder_ == null) {
bucketStatisticsBuilder_ = new com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.BucketStatistics, com.facebook.presto.orc.proto.DwrfProto.BucketStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.BucketStatisticsOrBuilder>(
bucketStatistics_,
getParentForChildren(),
isClean());
bucketStatistics_ = null;
}
return bucketStatisticsBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.facebook.hive.orc.ColumnStatistics)
}
static {
defaultInstance = new ColumnStatistics(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.facebook.hive.orc.ColumnStatistics)
}
public interface RowIndexEntryOrBuilder
extends com.facebook.presto.orc.protobuf.MessageOrBuilder {
// repeated uint64 positions = 1 [packed = true];
/**
* repeated uint64 positions = 1 [packed = true];
*/
java.util.List getPositionsList();
/**
* repeated uint64 positions = 1 [packed = true];
*/
int getPositionsCount();
/**
* repeated uint64 positions = 1 [packed = true];
*/
long getPositions(int index);
// optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
boolean hasStatistics();
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics getStatistics();
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
com.facebook.presto.orc.proto.DwrfProto.ColumnStatisticsOrBuilder getStatisticsOrBuilder();
}
/**
* Protobuf type {@code com.facebook.hive.orc.RowIndexEntry}
*/
public static final class RowIndexEntry extends
com.facebook.presto.orc.protobuf.GeneratedMessage
implements RowIndexEntryOrBuilder {
// Use RowIndexEntry.newBuilder() to construct.
private RowIndexEntry(com.facebook.presto.orc.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RowIndexEntry(boolean noInit) { this.unknownFields = com.facebook.presto.orc.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RowIndexEntry defaultInstance;
public static RowIndexEntry getDefaultInstance() {
return defaultInstance;
}
public RowIndexEntry getDefaultInstanceForType() {
return defaultInstance;
}
private final com.facebook.presto.orc.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.facebook.presto.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RowIndexEntry(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.facebook.presto.orc.protobuf.UnknownFieldSet.Builder unknownFields =
com.facebook.presto.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
positions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
positions_.add(input.readUInt64());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001) && input.getBytesUntilLimit() > 0) {
positions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
positions_.add(input.readUInt64());
}
input.popLimit(limit);
break;
}
case 18: {
com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = statistics_.toBuilder();
}
statistics_ = input.readMessage(com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(statistics_);
statistics_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
}
}
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.facebook.presto.orc.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
positions_ = java.util.Collections.unmodifiableList(positions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_RowIndexEntry_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_RowIndexEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.class, com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.Builder.class);
}
public static com.facebook.presto.orc.protobuf.Parser PARSER =
new com.facebook.presto.orc.protobuf.AbstractParser() {
public RowIndexEntry parsePartialFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return new RowIndexEntry(input, extensionRegistry);
}
};
@java.lang.Override
public com.facebook.presto.orc.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated uint64 positions = 1 [packed = true];
public static final int POSITIONS_FIELD_NUMBER = 1;
private java.util.List positions_;
/**
* repeated uint64 positions = 1 [packed = true];
*/
public java.util.List
getPositionsList() {
return positions_;
}
/**
* repeated uint64 positions = 1 [packed = true];
*/
public int getPositionsCount() {
return positions_.size();
}
/**
* repeated uint64 positions = 1 [packed = true];
*/
public long getPositions(int index) {
return positions_.get(index);
}
private int positionsMemoizedSerializedSize = -1;
// optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
public static final int STATISTICS_FIELD_NUMBER = 2;
private com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics statistics_;
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
public boolean hasStatistics() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics getStatistics() {
return statistics_;
}
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.ColumnStatisticsOrBuilder getStatisticsOrBuilder() {
return statistics_;
}
private void initFields() {
positions_ = java.util.Collections.emptyList();
statistics_ = com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.facebook.presto.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (getPositionsList().size() > 0) {
output.writeRawVarint32(10);
output.writeRawVarint32(positionsMemoizedSerializedSize);
}
for (int i = 0; i < positions_.size(); i++) {
output.writeUInt64NoTag(positions_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeMessage(2, statistics_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < positions_.size(); i++) {
dataSize += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeUInt64SizeNoTag(positions_.get(i));
}
size += dataSize;
if (!getPositionsList().isEmpty()) {
size += 1;
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
positionsMemoizedSerializedSize = dataSize;
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeMessageSize(2, statistics_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry parseFrom(
com.facebook.presto.orc.protobuf.ByteString data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry parseFrom(
com.facebook.presto.orc.protobuf.ByteString data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry parseFrom(byte[] data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry parseFrom(
byte[] data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry parseFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry parseDelimitedFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.facebook.hive.orc.RowIndexEntry}
*/
public static final class Builder extends
com.facebook.presto.orc.protobuf.GeneratedMessage.Builder
implements com.facebook.presto.orc.proto.DwrfProto.RowIndexEntryOrBuilder {
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_RowIndexEntry_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_RowIndexEntry_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.class, com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.Builder.class);
}
// Construct using com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getStatisticsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
positions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
if (statisticsBuilder_ == null) {
statistics_ = com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.getDefaultInstance();
} else {
statisticsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_RowIndexEntry_descriptor;
}
public com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry getDefaultInstanceForType() {
return com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.getDefaultInstance();
}
public com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry build() {
com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry buildPartial() {
com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry result = new com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
positions_ = java.util.Collections.unmodifiableList(positions_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.positions_ = positions_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
if (statisticsBuilder_ == null) {
result.statistics_ = statistics_;
} else {
result.statistics_ = statisticsBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.facebook.presto.orc.protobuf.Message other) {
if (other instanceof com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry) {
return mergeFrom((com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry other) {
if (other == com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.getDefaultInstance()) return this;
if (!other.positions_.isEmpty()) {
if (positions_.isEmpty()) {
positions_ = other.positions_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePositionsIsMutable();
positions_.addAll(other.positions_);
}
onChanged();
}
if (other.hasStatistics()) {
mergeStatistics(other.getStatistics());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated uint64 positions = 1 [packed = true];
private java.util.List positions_ = java.util.Collections.emptyList();
private void ensurePositionsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
positions_ = new java.util.ArrayList(positions_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated uint64 positions = 1 [packed = true];
*/
public java.util.List
getPositionsList() {
return java.util.Collections.unmodifiableList(positions_);
}
/**
* repeated uint64 positions = 1 [packed = true];
*/
public int getPositionsCount() {
return positions_.size();
}
/**
* repeated uint64 positions = 1 [packed = true];
*/
public long getPositions(int index) {
return positions_.get(index);
}
/**
* repeated uint64 positions = 1 [packed = true];
*/
public Builder setPositions(
int index, long value) {
ensurePositionsIsMutable();
positions_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint64 positions = 1 [packed = true];
*/
public Builder addPositions(long value) {
ensurePositionsIsMutable();
positions_.add(value);
onChanged();
return this;
}
/**
* repeated uint64 positions = 1 [packed = true];
*/
public Builder addAllPositions(
java.lang.Iterable extends java.lang.Long> values) {
ensurePositionsIsMutable();
super.addAll(values, positions_);
onChanged();
return this;
}
/**
* repeated uint64 positions = 1 [packed = true];
*/
public Builder clearPositions() {
positions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
// optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
private com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics statistics_ = com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.getDefaultInstance();
private com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics, com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.ColumnStatisticsOrBuilder> statisticsBuilder_;
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
public boolean hasStatistics() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics getStatistics() {
if (statisticsBuilder_ == null) {
return statistics_;
} else {
return statisticsBuilder_.getMessage();
}
}
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
public Builder setStatistics(com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics value) {
if (statisticsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statistics_ = value;
onChanged();
} else {
statisticsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
public Builder setStatistics(
com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.Builder builderForValue) {
if (statisticsBuilder_ == null) {
statistics_ = builderForValue.build();
onChanged();
} else {
statisticsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
public Builder mergeStatistics(com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics value) {
if (statisticsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
statistics_ != com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.getDefaultInstance()) {
statistics_ =
com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.newBuilder(statistics_).mergeFrom(value).buildPartial();
} else {
statistics_ = value;
}
onChanged();
} else {
statisticsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
public Builder clearStatistics() {
if (statisticsBuilder_ == null) {
statistics_ = com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.getDefaultInstance();
onChanged();
} else {
statisticsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.Builder getStatisticsBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getStatisticsFieldBuilder().getBuilder();
}
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.ColumnStatisticsOrBuilder getStatisticsOrBuilder() {
if (statisticsBuilder_ != null) {
return statisticsBuilder_.getMessageOrBuilder();
} else {
return statistics_;
}
}
/**
* optional .com.facebook.hive.orc.ColumnStatistics statistics = 2;
*/
private com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics, com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.ColumnStatisticsOrBuilder>
getStatisticsFieldBuilder() {
if (statisticsBuilder_ == null) {
statisticsBuilder_ = new com.facebook.presto.orc.protobuf.SingleFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics, com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.Builder, com.facebook.presto.orc.proto.DwrfProto.ColumnStatisticsOrBuilder>(
statistics_,
getParentForChildren(),
isClean());
statistics_ = null;
}
return statisticsBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.facebook.hive.orc.RowIndexEntry)
}
static {
defaultInstance = new RowIndexEntry(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.facebook.hive.orc.RowIndexEntry)
}
public interface RowIndexOrBuilder
extends com.facebook.presto.orc.protobuf.MessageOrBuilder {
// repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
java.util.List
getEntryList();
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry getEntry(int index);
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
int getEntryCount();
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
java.util.List extends com.facebook.presto.orc.proto.DwrfProto.RowIndexEntryOrBuilder>
getEntryOrBuilderList();
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
com.facebook.presto.orc.proto.DwrfProto.RowIndexEntryOrBuilder getEntryOrBuilder(
int index);
}
/**
* Protobuf type {@code com.facebook.hive.orc.RowIndex}
*/
public static final class RowIndex extends
com.facebook.presto.orc.protobuf.GeneratedMessage
implements RowIndexOrBuilder {
// Use RowIndex.newBuilder() to construct.
private RowIndex(com.facebook.presto.orc.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RowIndex(boolean noInit) { this.unknownFields = com.facebook.presto.orc.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RowIndex defaultInstance;
public static RowIndex getDefaultInstance() {
return defaultInstance;
}
public RowIndex getDefaultInstanceForType() {
return defaultInstance;
}
private final com.facebook.presto.orc.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.facebook.presto.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RowIndex(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.facebook.presto.orc.protobuf.UnknownFieldSet.Builder unknownFields =
com.facebook.presto.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
entry_.add(input.readMessage(com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.facebook.presto.orc.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = java.util.Collections.unmodifiableList(entry_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_RowIndex_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_RowIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.RowIndex.class, com.facebook.presto.orc.proto.DwrfProto.RowIndex.Builder.class);
}
public static com.facebook.presto.orc.protobuf.Parser PARSER =
new com.facebook.presto.orc.protobuf.AbstractParser() {
public RowIndex parsePartialFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return new RowIndex(input, extensionRegistry);
}
};
@java.lang.Override
public com.facebook.presto.orc.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
public static final int ENTRY_FIELD_NUMBER = 1;
private java.util.List entry_;
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public java.util.List getEntryList() {
return entry_;
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public java.util.List extends com.facebook.presto.orc.proto.DwrfProto.RowIndexEntryOrBuilder>
getEntryOrBuilderList() {
return entry_;
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public int getEntryCount() {
return entry_.size();
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry getEntry(int index) {
return entry_.get(index);
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.RowIndexEntryOrBuilder getEntryOrBuilder(
int index) {
return entry_.get(index);
}
private void initFields() {
entry_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.facebook.presto.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < entry_.size(); i++) {
output.writeMessage(1, entry_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < entry_.size(); i++) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeMessageSize(1, entry_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndex parseFrom(
com.facebook.presto.orc.protobuf.ByteString data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndex parseFrom(
com.facebook.presto.orc.protobuf.ByteString data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndex parseFrom(byte[] data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndex parseFrom(
byte[] data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndex parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndex parseFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndex parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndex parseDelimitedFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndex parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.RowIndex parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.facebook.presto.orc.proto.DwrfProto.RowIndex prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.facebook.hive.orc.RowIndex}
*/
public static final class Builder extends
com.facebook.presto.orc.protobuf.GeneratedMessage.Builder
implements com.facebook.presto.orc.proto.DwrfProto.RowIndexOrBuilder {
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_RowIndex_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_RowIndex_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.RowIndex.class, com.facebook.presto.orc.proto.DwrfProto.RowIndex.Builder.class);
}
// Construct using com.facebook.presto.orc.proto.DwrfProto.RowIndex.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getEntryFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (entryBuilder_ == null) {
entry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
entryBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_RowIndex_descriptor;
}
public com.facebook.presto.orc.proto.DwrfProto.RowIndex getDefaultInstanceForType() {
return com.facebook.presto.orc.proto.DwrfProto.RowIndex.getDefaultInstance();
}
public com.facebook.presto.orc.proto.DwrfProto.RowIndex build() {
com.facebook.presto.orc.proto.DwrfProto.RowIndex result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.facebook.presto.orc.proto.DwrfProto.RowIndex buildPartial() {
com.facebook.presto.orc.proto.DwrfProto.RowIndex result = new com.facebook.presto.orc.proto.DwrfProto.RowIndex(this);
int from_bitField0_ = bitField0_;
if (entryBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = java.util.Collections.unmodifiableList(entry_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entry_ = entry_;
} else {
result.entry_ = entryBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.facebook.presto.orc.protobuf.Message other) {
if (other instanceof com.facebook.presto.orc.proto.DwrfProto.RowIndex) {
return mergeFrom((com.facebook.presto.orc.proto.DwrfProto.RowIndex)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.facebook.presto.orc.proto.DwrfProto.RowIndex other) {
if (other == com.facebook.presto.orc.proto.DwrfProto.RowIndex.getDefaultInstance()) return this;
if (entryBuilder_ == null) {
if (!other.entry_.isEmpty()) {
if (entry_.isEmpty()) {
entry_ = other.entry_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEntryIsMutable();
entry_.addAll(other.entry_);
}
onChanged();
}
} else {
if (!other.entry_.isEmpty()) {
if (entryBuilder_.isEmpty()) {
entryBuilder_.dispose();
entryBuilder_ = null;
entry_ = other.entry_;
bitField0_ = (bitField0_ & ~0x00000001);
entryBuilder_ =
com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getEntryFieldBuilder() : null;
} else {
entryBuilder_.addAllMessages(other.entry_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.facebook.presto.orc.proto.DwrfProto.RowIndex parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.facebook.presto.orc.proto.DwrfProto.RowIndex) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
private java.util.List entry_ =
java.util.Collections.emptyList();
private void ensureEntryIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = new java.util.ArrayList(entry_);
bitField0_ |= 0x00000001;
}
}
private com.facebook.presto.orc.protobuf.RepeatedFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry, com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.Builder, com.facebook.presto.orc.proto.DwrfProto.RowIndexEntryOrBuilder> entryBuilder_;
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public java.util.List getEntryList() {
if (entryBuilder_ == null) {
return java.util.Collections.unmodifiableList(entry_);
} else {
return entryBuilder_.getMessageList();
}
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public int getEntryCount() {
if (entryBuilder_ == null) {
return entry_.size();
} else {
return entryBuilder_.getCount();
}
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry getEntry(int index) {
if (entryBuilder_ == null) {
return entry_.get(index);
} else {
return entryBuilder_.getMessage(index);
}
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public Builder setEntry(
int index, com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.set(index, value);
onChanged();
} else {
entryBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public Builder setEntry(
int index, com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.set(index, builderForValue.build());
onChanged();
} else {
entryBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public Builder addEntry(com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.add(value);
onChanged();
} else {
entryBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public Builder addEntry(
int index, com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.add(index, value);
onChanged();
} else {
entryBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public Builder addEntry(
com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.add(builderForValue.build());
onChanged();
} else {
entryBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public Builder addEntry(
int index, com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.add(index, builderForValue.build());
onChanged();
} else {
entryBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public Builder addAllEntry(
java.lang.Iterable extends com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry> values) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
super.addAll(values, entry_);
onChanged();
} else {
entryBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public Builder clearEntry() {
if (entryBuilder_ == null) {
entry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
entryBuilder_.clear();
}
return this;
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public Builder removeEntry(int index) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.remove(index);
onChanged();
} else {
entryBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.Builder getEntryBuilder(
int index) {
return getEntryFieldBuilder().getBuilder(index);
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.RowIndexEntryOrBuilder getEntryOrBuilder(
int index) {
if (entryBuilder_ == null) {
return entry_.get(index); } else {
return entryBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public java.util.List extends com.facebook.presto.orc.proto.DwrfProto.RowIndexEntryOrBuilder>
getEntryOrBuilderList() {
if (entryBuilder_ != null) {
return entryBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entry_);
}
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.Builder addEntryBuilder() {
return getEntryFieldBuilder().addBuilder(
com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.getDefaultInstance());
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.Builder addEntryBuilder(
int index) {
return getEntryFieldBuilder().addBuilder(
index, com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.getDefaultInstance());
}
/**
* repeated .com.facebook.hive.orc.RowIndexEntry entry = 1;
*/
public java.util.List
getEntryBuilderList() {
return getEntryFieldBuilder().getBuilderList();
}
private com.facebook.presto.orc.protobuf.RepeatedFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry, com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.Builder, com.facebook.presto.orc.proto.DwrfProto.RowIndexEntryOrBuilder>
getEntryFieldBuilder() {
if (entryBuilder_ == null) {
entryBuilder_ = new com.facebook.presto.orc.protobuf.RepeatedFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry, com.facebook.presto.orc.proto.DwrfProto.RowIndexEntry.Builder, com.facebook.presto.orc.proto.DwrfProto.RowIndexEntryOrBuilder>(
entry_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
entry_ = null;
}
return entryBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.facebook.hive.orc.RowIndex)
}
static {
defaultInstance = new RowIndex(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.facebook.hive.orc.RowIndex)
}
public interface StreamOrBuilder
extends com.facebook.presto.orc.protobuf.MessageOrBuilder {
// required .com.facebook.hive.orc.Stream.Kind kind = 1;
/**
* required .com.facebook.hive.orc.Stream.Kind kind = 1;
*/
boolean hasKind();
/**
* required .com.facebook.hive.orc.Stream.Kind kind = 1;
*/
com.facebook.presto.orc.proto.DwrfProto.Stream.Kind getKind();
// optional uint32 column = 2;
/**
* optional uint32 column = 2;
*/
boolean hasColumn();
/**
* optional uint32 column = 2;
*/
int getColumn();
// optional uint64 length = 3;
/**
* optional uint64 length = 3;
*/
boolean hasLength();
/**
* optional uint64 length = 3;
*/
long getLength();
// optional bool useVInts = 4 [default = true];
/**
* optional bool useVInts = 4 [default = true];
*/
boolean hasUseVInts();
/**
* optional bool useVInts = 4 [default = true];
*/
boolean getUseVInts();
}
/**
* Protobuf type {@code com.facebook.hive.orc.Stream}
*/
public static final class Stream extends
com.facebook.presto.orc.protobuf.GeneratedMessage
implements StreamOrBuilder {
// Use Stream.newBuilder() to construct.
private Stream(com.facebook.presto.orc.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Stream(boolean noInit) { this.unknownFields = com.facebook.presto.orc.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Stream defaultInstance;
public static Stream getDefaultInstance() {
return defaultInstance;
}
public Stream getDefaultInstanceForType() {
return defaultInstance;
}
private final com.facebook.presto.orc.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.facebook.presto.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Stream(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.facebook.presto.orc.protobuf.UnknownFieldSet.Builder unknownFields =
com.facebook.presto.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
com.facebook.presto.orc.proto.DwrfProto.Stream.Kind value = com.facebook.presto.orc.proto.DwrfProto.Stream.Kind.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
kind_ = value;
}
break;
}
case 16: {
bitField0_ |= 0x00000002;
column_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
length_ = input.readUInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
useVInts_ = input.readBool();
break;
}
}
}
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.facebook.presto.orc.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_Stream_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_Stream_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.Stream.class, com.facebook.presto.orc.proto.DwrfProto.Stream.Builder.class);
}
public static com.facebook.presto.orc.protobuf.Parser PARSER =
new com.facebook.presto.orc.protobuf.AbstractParser() {
public Stream parsePartialFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return new Stream(input, extensionRegistry);
}
};
@java.lang.Override
public com.facebook.presto.orc.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code com.facebook.hive.orc.Stream.Kind}
*
*
* if you add new index stream kinds, you need to make sure to update
* StreamName to ensure it is added to the stripe in the right area
*
*/
public enum Kind
implements com.facebook.presto.orc.protobuf.ProtocolMessageEnum {
/**
* PRESENT = 0;
*/
PRESENT(0, 0),
/**
* DATA = 1;
*/
DATA(1, 1),
/**
* LENGTH = 2;
*/
LENGTH(2, 2),
/**
* DICTIONARY_DATA = 3;
*/
DICTIONARY_DATA(3, 3),
/**
* DICTIONARY_COUNT = 4;
*/
DICTIONARY_COUNT(4, 4),
/**
* NANO_DATA = 5;
*/
NANO_DATA(5, 5),
/**
* ROW_INDEX = 6;
*/
ROW_INDEX(6, 6),
/**
* IN_DICTIONARY = 7;
*/
IN_DICTIONARY(7, 7),
/**
* STRIDE_DICTIONARY = 8;
*/
STRIDE_DICTIONARY(8, 8),
/**
* STRIDE_DICTIONARY_LENGTH = 9;
*/
STRIDE_DICTIONARY_LENGTH(9, 9),
;
/**
* PRESENT = 0;
*/
public static final int PRESENT_VALUE = 0;
/**
* DATA = 1;
*/
public static final int DATA_VALUE = 1;
/**
* LENGTH = 2;
*/
public static final int LENGTH_VALUE = 2;
/**
* DICTIONARY_DATA = 3;
*/
public static final int DICTIONARY_DATA_VALUE = 3;
/**
* DICTIONARY_COUNT = 4;
*/
public static final int DICTIONARY_COUNT_VALUE = 4;
/**
* NANO_DATA = 5;
*/
public static final int NANO_DATA_VALUE = 5;
/**
* ROW_INDEX = 6;
*/
public static final int ROW_INDEX_VALUE = 6;
/**
* IN_DICTIONARY = 7;
*/
public static final int IN_DICTIONARY_VALUE = 7;
/**
* STRIDE_DICTIONARY = 8;
*/
public static final int STRIDE_DICTIONARY_VALUE = 8;
/**
* STRIDE_DICTIONARY_LENGTH = 9;
*/
public static final int STRIDE_DICTIONARY_LENGTH_VALUE = 9;
public final int getNumber() { return value; }
public static Kind valueOf(int value) {
switch (value) {
case 0: return PRESENT;
case 1: return DATA;
case 2: return LENGTH;
case 3: return DICTIONARY_DATA;
case 4: return DICTIONARY_COUNT;
case 5: return NANO_DATA;
case 6: return ROW_INDEX;
case 7: return IN_DICTIONARY;
case 8: return STRIDE_DICTIONARY;
case 9: return STRIDE_DICTIONARY_LENGTH;
default: return null;
}
}
public static com.facebook.presto.orc.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.facebook.presto.orc.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.facebook.presto.orc.protobuf.Internal.EnumLiteMap() {
public Kind findValueByNumber(int number) {
return Kind.valueOf(number);
}
};
public final com.facebook.presto.orc.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.facebook.presto.orc.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.facebook.presto.orc.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.Stream.getDescriptor().getEnumTypes().get(0);
}
private static final Kind[] VALUES = values();
public static Kind valueOf(
com.facebook.presto.orc.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Kind(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.facebook.hive.orc.Stream.Kind)
}
private int bitField0_;
// required .com.facebook.hive.orc.Stream.Kind kind = 1;
public static final int KIND_FIELD_NUMBER = 1;
private com.facebook.presto.orc.proto.DwrfProto.Stream.Kind kind_;
/**
* required .com.facebook.hive.orc.Stream.Kind kind = 1;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.facebook.hive.orc.Stream.Kind kind = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.Stream.Kind getKind() {
return kind_;
}
// optional uint32 column = 2;
public static final int COLUMN_FIELD_NUMBER = 2;
private int column_;
/**
* optional uint32 column = 2;
*/
public boolean hasColumn() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 column = 2;
*/
public int getColumn() {
return column_;
}
// optional uint64 length = 3;
public static final int LENGTH_FIELD_NUMBER = 3;
private long length_;
/**
* optional uint64 length = 3;
*/
public boolean hasLength() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint64 length = 3;
*/
public long getLength() {
return length_;
}
// optional bool useVInts = 4 [default = true];
public static final int USEVINTS_FIELD_NUMBER = 4;
private boolean useVInts_;
/**
* optional bool useVInts = 4 [default = true];
*/
public boolean hasUseVInts() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bool useVInts = 4 [default = true];
*/
public boolean getUseVInts() {
return useVInts_;
}
private void initFields() {
kind_ = com.facebook.presto.orc.proto.DwrfProto.Stream.Kind.PRESENT;
column_ = 0;
length_ = 0L;
useVInts_ = true;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasKind()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.facebook.presto.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, kind_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, column_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt64(3, length_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBool(4, useVInts_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeEnumSize(1, kind_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeUInt32Size(2, column_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeUInt64Size(3, length_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeBoolSize(4, useVInts_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.facebook.presto.orc.proto.DwrfProto.Stream parseFrom(
com.facebook.presto.orc.protobuf.ByteString data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.Stream parseFrom(
com.facebook.presto.orc.protobuf.ByteString data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.Stream parseFrom(byte[] data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.Stream parseFrom(
byte[] data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.Stream parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.Stream parseFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.Stream parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.Stream parseDelimitedFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.Stream parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.Stream parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.facebook.presto.orc.proto.DwrfProto.Stream prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.facebook.hive.orc.Stream}
*/
public static final class Builder extends
com.facebook.presto.orc.protobuf.GeneratedMessage.Builder
implements com.facebook.presto.orc.proto.DwrfProto.StreamOrBuilder {
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_Stream_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_Stream_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.Stream.class, com.facebook.presto.orc.proto.DwrfProto.Stream.Builder.class);
}
// Construct using com.facebook.presto.orc.proto.DwrfProto.Stream.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
kind_ = com.facebook.presto.orc.proto.DwrfProto.Stream.Kind.PRESENT;
bitField0_ = (bitField0_ & ~0x00000001);
column_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
length_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
useVInts_ = true;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_Stream_descriptor;
}
public com.facebook.presto.orc.proto.DwrfProto.Stream getDefaultInstanceForType() {
return com.facebook.presto.orc.proto.DwrfProto.Stream.getDefaultInstance();
}
public com.facebook.presto.orc.proto.DwrfProto.Stream build() {
com.facebook.presto.orc.proto.DwrfProto.Stream result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.facebook.presto.orc.proto.DwrfProto.Stream buildPartial() {
com.facebook.presto.orc.proto.DwrfProto.Stream result = new com.facebook.presto.orc.proto.DwrfProto.Stream(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.kind_ = kind_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.column_ = column_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.length_ = length_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.useVInts_ = useVInts_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.facebook.presto.orc.protobuf.Message other) {
if (other instanceof com.facebook.presto.orc.proto.DwrfProto.Stream) {
return mergeFrom((com.facebook.presto.orc.proto.DwrfProto.Stream)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.facebook.presto.orc.proto.DwrfProto.Stream other) {
if (other == com.facebook.presto.orc.proto.DwrfProto.Stream.getDefaultInstance()) return this;
if (other.hasKind()) {
setKind(other.getKind());
}
if (other.hasColumn()) {
setColumn(other.getColumn());
}
if (other.hasLength()) {
setLength(other.getLength());
}
if (other.hasUseVInts()) {
setUseVInts(other.getUseVInts());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasKind()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.facebook.presto.orc.proto.DwrfProto.Stream parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.facebook.presto.orc.proto.DwrfProto.Stream) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .com.facebook.hive.orc.Stream.Kind kind = 1;
private com.facebook.presto.orc.proto.DwrfProto.Stream.Kind kind_ = com.facebook.presto.orc.proto.DwrfProto.Stream.Kind.PRESENT;
/**
* required .com.facebook.hive.orc.Stream.Kind kind = 1;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.facebook.hive.orc.Stream.Kind kind = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.Stream.Kind getKind() {
return kind_;
}
/**
* required .com.facebook.hive.orc.Stream.Kind kind = 1;
*/
public Builder setKind(com.facebook.presto.orc.proto.DwrfProto.Stream.Kind value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
kind_ = value;
onChanged();
return this;
}
/**
* required .com.facebook.hive.orc.Stream.Kind kind = 1;
*/
public Builder clearKind() {
bitField0_ = (bitField0_ & ~0x00000001);
kind_ = com.facebook.presto.orc.proto.DwrfProto.Stream.Kind.PRESENT;
onChanged();
return this;
}
// optional uint32 column = 2;
private int column_ ;
/**
* optional uint32 column = 2;
*/
public boolean hasColumn() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 column = 2;
*/
public int getColumn() {
return column_;
}
/**
* optional uint32 column = 2;
*/
public Builder setColumn(int value) {
bitField0_ |= 0x00000002;
column_ = value;
onChanged();
return this;
}
/**
* optional uint32 column = 2;
*/
public Builder clearColumn() {
bitField0_ = (bitField0_ & ~0x00000002);
column_ = 0;
onChanged();
return this;
}
// optional uint64 length = 3;
private long length_ ;
/**
* optional uint64 length = 3;
*/
public boolean hasLength() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint64 length = 3;
*/
public long getLength() {
return length_;
}
/**
* optional uint64 length = 3;
*/
public Builder setLength(long value) {
bitField0_ |= 0x00000004;
length_ = value;
onChanged();
return this;
}
/**
* optional uint64 length = 3;
*/
public Builder clearLength() {
bitField0_ = (bitField0_ & ~0x00000004);
length_ = 0L;
onChanged();
return this;
}
// optional bool useVInts = 4 [default = true];
private boolean useVInts_ = true;
/**
* optional bool useVInts = 4 [default = true];
*/
public boolean hasUseVInts() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional bool useVInts = 4 [default = true];
*/
public boolean getUseVInts() {
return useVInts_;
}
/**
* optional bool useVInts = 4 [default = true];
*/
public Builder setUseVInts(boolean value) {
bitField0_ |= 0x00000008;
useVInts_ = value;
onChanged();
return this;
}
/**
* optional bool useVInts = 4 [default = true];
*/
public Builder clearUseVInts() {
bitField0_ = (bitField0_ & ~0x00000008);
useVInts_ = true;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.facebook.hive.orc.Stream)
}
static {
defaultInstance = new Stream(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.facebook.hive.orc.Stream)
}
public interface ColumnEncodingOrBuilder
extends com.facebook.presto.orc.protobuf.MessageOrBuilder {
// required .com.facebook.hive.orc.ColumnEncoding.Kind kind = 1;
/**
* required .com.facebook.hive.orc.ColumnEncoding.Kind kind = 1;
*/
boolean hasKind();
/**
* required .com.facebook.hive.orc.ColumnEncoding.Kind kind = 1;
*/
com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Kind getKind();
// optional uint32 dictionarySize = 2;
/**
* optional uint32 dictionarySize = 2;
*/
boolean hasDictionarySize();
/**
* optional uint32 dictionarySize = 2;
*/
int getDictionarySize();
}
/**
* Protobuf type {@code com.facebook.hive.orc.ColumnEncoding}
*/
public static final class ColumnEncoding extends
com.facebook.presto.orc.protobuf.GeneratedMessage
implements ColumnEncodingOrBuilder {
// Use ColumnEncoding.newBuilder() to construct.
private ColumnEncoding(com.facebook.presto.orc.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ColumnEncoding(boolean noInit) { this.unknownFields = com.facebook.presto.orc.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ColumnEncoding defaultInstance;
public static ColumnEncoding getDefaultInstance() {
return defaultInstance;
}
public ColumnEncoding getDefaultInstanceForType() {
return defaultInstance;
}
private final com.facebook.presto.orc.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.facebook.presto.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ColumnEncoding(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.facebook.presto.orc.protobuf.UnknownFieldSet.Builder unknownFields =
com.facebook.presto.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Kind value = com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Kind.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
kind_ = value;
}
break;
}
case 16: {
bitField0_ |= 0x00000002;
dictionarySize_ = input.readUInt32();
break;
}
}
}
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.facebook.presto.orc.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_ColumnEncoding_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_ColumnEncoding_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.class, com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Builder.class);
}
public static com.facebook.presto.orc.protobuf.Parser PARSER =
new com.facebook.presto.orc.protobuf.AbstractParser() {
public ColumnEncoding parsePartialFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return new ColumnEncoding(input, extensionRegistry);
}
};
@java.lang.Override
public com.facebook.presto.orc.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code com.facebook.hive.orc.ColumnEncoding.Kind}
*/
public enum Kind
implements com.facebook.presto.orc.protobuf.ProtocolMessageEnum {
/**
* DIRECT = 0;
*/
DIRECT(0, 0),
/**
* DICTIONARY = 1;
*/
DICTIONARY(1, 1),
;
/**
* DIRECT = 0;
*/
public static final int DIRECT_VALUE = 0;
/**
* DICTIONARY = 1;
*/
public static final int DICTIONARY_VALUE = 1;
public final int getNumber() { return value; }
public static Kind valueOf(int value) {
switch (value) {
case 0: return DIRECT;
case 1: return DICTIONARY;
default: return null;
}
}
public static com.facebook.presto.orc.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.facebook.presto.orc.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.facebook.presto.orc.protobuf.Internal.EnumLiteMap() {
public Kind findValueByNumber(int number) {
return Kind.valueOf(number);
}
};
public final com.facebook.presto.orc.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.facebook.presto.orc.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.facebook.presto.orc.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.getDescriptor().getEnumTypes().get(0);
}
private static final Kind[] VALUES = values();
public static Kind valueOf(
com.facebook.presto.orc.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Kind(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.facebook.hive.orc.ColumnEncoding.Kind)
}
private int bitField0_;
// required .com.facebook.hive.orc.ColumnEncoding.Kind kind = 1;
public static final int KIND_FIELD_NUMBER = 1;
private com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Kind kind_;
/**
* required .com.facebook.hive.orc.ColumnEncoding.Kind kind = 1;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.facebook.hive.orc.ColumnEncoding.Kind kind = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Kind getKind() {
return kind_;
}
// optional uint32 dictionarySize = 2;
public static final int DICTIONARYSIZE_FIELD_NUMBER = 2;
private int dictionarySize_;
/**
* optional uint32 dictionarySize = 2;
*/
public boolean hasDictionarySize() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 dictionarySize = 2;
*/
public int getDictionarySize() {
return dictionarySize_;
}
private void initFields() {
kind_ = com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Kind.DIRECT;
dictionarySize_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasKind()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.facebook.presto.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, kind_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt32(2, dictionarySize_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeEnumSize(1, kind_.getNumber());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeUInt32Size(2, dictionarySize_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding parseFrom(
com.facebook.presto.orc.protobuf.ByteString data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding parseFrom(
com.facebook.presto.orc.protobuf.ByteString data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding parseFrom(byte[] data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding parseFrom(
byte[] data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding parseFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding parseDelimitedFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.facebook.hive.orc.ColumnEncoding}
*/
public static final class Builder extends
com.facebook.presto.orc.protobuf.GeneratedMessage.Builder
implements com.facebook.presto.orc.proto.DwrfProto.ColumnEncodingOrBuilder {
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_ColumnEncoding_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_ColumnEncoding_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.class, com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Builder.class);
}
// Construct using com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
kind_ = com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Kind.DIRECT;
bitField0_ = (bitField0_ & ~0x00000001);
dictionarySize_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_ColumnEncoding_descriptor;
}
public com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding getDefaultInstanceForType() {
return com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.getDefaultInstance();
}
public com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding build() {
com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding buildPartial() {
com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding result = new com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.kind_ = kind_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.dictionarySize_ = dictionarySize_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.facebook.presto.orc.protobuf.Message other) {
if (other instanceof com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding) {
return mergeFrom((com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding other) {
if (other == com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.getDefaultInstance()) return this;
if (other.hasKind()) {
setKind(other.getKind());
}
if (other.hasDictionarySize()) {
setDictionarySize(other.getDictionarySize());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasKind()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .com.facebook.hive.orc.ColumnEncoding.Kind kind = 1;
private com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Kind kind_ = com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Kind.DIRECT;
/**
* required .com.facebook.hive.orc.ColumnEncoding.Kind kind = 1;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.facebook.hive.orc.ColumnEncoding.Kind kind = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Kind getKind() {
return kind_;
}
/**
* required .com.facebook.hive.orc.ColumnEncoding.Kind kind = 1;
*/
public Builder setKind(com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Kind value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
kind_ = value;
onChanged();
return this;
}
/**
* required .com.facebook.hive.orc.ColumnEncoding.Kind kind = 1;
*/
public Builder clearKind() {
bitField0_ = (bitField0_ & ~0x00000001);
kind_ = com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Kind.DIRECT;
onChanged();
return this;
}
// optional uint32 dictionarySize = 2;
private int dictionarySize_ ;
/**
* optional uint32 dictionarySize = 2;
*/
public boolean hasDictionarySize() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint32 dictionarySize = 2;
*/
public int getDictionarySize() {
return dictionarySize_;
}
/**
* optional uint32 dictionarySize = 2;
*/
public Builder setDictionarySize(int value) {
bitField0_ |= 0x00000002;
dictionarySize_ = value;
onChanged();
return this;
}
/**
* optional uint32 dictionarySize = 2;
*/
public Builder clearDictionarySize() {
bitField0_ = (bitField0_ & ~0x00000002);
dictionarySize_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.facebook.hive.orc.ColumnEncoding)
}
static {
defaultInstance = new ColumnEncoding(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.facebook.hive.orc.ColumnEncoding)
}
public interface StripeFooterOrBuilder
extends com.facebook.presto.orc.protobuf.MessageOrBuilder {
// repeated .com.facebook.hive.orc.Stream streams = 1;
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
java.util.List
getStreamsList();
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
com.facebook.presto.orc.proto.DwrfProto.Stream getStreams(int index);
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
int getStreamsCount();
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
java.util.List extends com.facebook.presto.orc.proto.DwrfProto.StreamOrBuilder>
getStreamsOrBuilderList();
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
com.facebook.presto.orc.proto.DwrfProto.StreamOrBuilder getStreamsOrBuilder(
int index);
// repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
java.util.List
getColumnsList();
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding getColumns(int index);
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
int getColumnsCount();
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
java.util.List extends com.facebook.presto.orc.proto.DwrfProto.ColumnEncodingOrBuilder>
getColumnsOrBuilderList();
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
com.facebook.presto.orc.proto.DwrfProto.ColumnEncodingOrBuilder getColumnsOrBuilder(
int index);
}
/**
* Protobuf type {@code com.facebook.hive.orc.StripeFooter}
*/
public static final class StripeFooter extends
com.facebook.presto.orc.protobuf.GeneratedMessage
implements StripeFooterOrBuilder {
// Use StripeFooter.newBuilder() to construct.
private StripeFooter(com.facebook.presto.orc.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StripeFooter(boolean noInit) { this.unknownFields = com.facebook.presto.orc.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StripeFooter defaultInstance;
public static StripeFooter getDefaultInstance() {
return defaultInstance;
}
public StripeFooter getDefaultInstanceForType() {
return defaultInstance;
}
private final com.facebook.presto.orc.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.facebook.presto.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StripeFooter(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.facebook.presto.orc.protobuf.UnknownFieldSet.Builder unknownFields =
com.facebook.presto.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
streams_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
streams_.add(input.readMessage(com.facebook.presto.orc.proto.DwrfProto.Stream.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
columns_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
columns_.add(input.readMessage(com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.facebook.presto.orc.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
streams_ = java.util.Collections.unmodifiableList(streams_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
columns_ = java.util.Collections.unmodifiableList(columns_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StripeFooter_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StripeFooter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.StripeFooter.class, com.facebook.presto.orc.proto.DwrfProto.StripeFooter.Builder.class);
}
public static com.facebook.presto.orc.protobuf.Parser PARSER =
new com.facebook.presto.orc.protobuf.AbstractParser() {
public StripeFooter parsePartialFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return new StripeFooter(input, extensionRegistry);
}
};
@java.lang.Override
public com.facebook.presto.orc.protobuf.Parser getParserForType() {
return PARSER;
}
// repeated .com.facebook.hive.orc.Stream streams = 1;
public static final int STREAMS_FIELD_NUMBER = 1;
private java.util.List streams_;
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public java.util.List getStreamsList() {
return streams_;
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public java.util.List extends com.facebook.presto.orc.proto.DwrfProto.StreamOrBuilder>
getStreamsOrBuilderList() {
return streams_;
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public int getStreamsCount() {
return streams_.size();
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.Stream getStreams(int index) {
return streams_.get(index);
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.StreamOrBuilder getStreamsOrBuilder(
int index) {
return streams_.get(index);
}
// repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
public static final int COLUMNS_FIELD_NUMBER = 2;
private java.util.List columns_;
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public java.util.List getColumnsList() {
return columns_;
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public java.util.List extends com.facebook.presto.orc.proto.DwrfProto.ColumnEncodingOrBuilder>
getColumnsOrBuilderList() {
return columns_;
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public int getColumnsCount() {
return columns_.size();
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding getColumns(int index) {
return columns_.get(index);
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.ColumnEncodingOrBuilder getColumnsOrBuilder(
int index) {
return columns_.get(index);
}
private void initFields() {
streams_ = java.util.Collections.emptyList();
columns_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getStreamsCount(); i++) {
if (!getStreams(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getColumnsCount(); i++) {
if (!getColumns(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.facebook.presto.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < streams_.size(); i++) {
output.writeMessage(1, streams_.get(i));
}
for (int i = 0; i < columns_.size(); i++) {
output.writeMessage(2, columns_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < streams_.size(); i++) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeMessageSize(1, streams_.get(i));
}
for (int i = 0; i < columns_.size(); i++) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeMessageSize(2, columns_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeFooter parseFrom(
com.facebook.presto.orc.protobuf.ByteString data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeFooter parseFrom(
com.facebook.presto.orc.protobuf.ByteString data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeFooter parseFrom(byte[] data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeFooter parseFrom(
byte[] data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeFooter parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeFooter parseFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeFooter parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeFooter parseDelimitedFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeFooter parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeFooter parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.facebook.presto.orc.proto.DwrfProto.StripeFooter prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.facebook.hive.orc.StripeFooter}
*/
public static final class Builder extends
com.facebook.presto.orc.protobuf.GeneratedMessage.Builder
implements com.facebook.presto.orc.proto.DwrfProto.StripeFooterOrBuilder {
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StripeFooter_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StripeFooter_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.StripeFooter.class, com.facebook.presto.orc.proto.DwrfProto.StripeFooter.Builder.class);
}
// Construct using com.facebook.presto.orc.proto.DwrfProto.StripeFooter.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getStreamsFieldBuilder();
getColumnsFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (streamsBuilder_ == null) {
streams_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
streamsBuilder_.clear();
}
if (columnsBuilder_ == null) {
columns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
columnsBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StripeFooter_descriptor;
}
public com.facebook.presto.orc.proto.DwrfProto.StripeFooter getDefaultInstanceForType() {
return com.facebook.presto.orc.proto.DwrfProto.StripeFooter.getDefaultInstance();
}
public com.facebook.presto.orc.proto.DwrfProto.StripeFooter build() {
com.facebook.presto.orc.proto.DwrfProto.StripeFooter result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.facebook.presto.orc.proto.DwrfProto.StripeFooter buildPartial() {
com.facebook.presto.orc.proto.DwrfProto.StripeFooter result = new com.facebook.presto.orc.proto.DwrfProto.StripeFooter(this);
int from_bitField0_ = bitField0_;
if (streamsBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
streams_ = java.util.Collections.unmodifiableList(streams_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.streams_ = streams_;
} else {
result.streams_ = streamsBuilder_.build();
}
if (columnsBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
columns_ = java.util.Collections.unmodifiableList(columns_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.columns_ = columns_;
} else {
result.columns_ = columnsBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.facebook.presto.orc.protobuf.Message other) {
if (other instanceof com.facebook.presto.orc.proto.DwrfProto.StripeFooter) {
return mergeFrom((com.facebook.presto.orc.proto.DwrfProto.StripeFooter)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.facebook.presto.orc.proto.DwrfProto.StripeFooter other) {
if (other == com.facebook.presto.orc.proto.DwrfProto.StripeFooter.getDefaultInstance()) return this;
if (streamsBuilder_ == null) {
if (!other.streams_.isEmpty()) {
if (streams_.isEmpty()) {
streams_ = other.streams_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStreamsIsMutable();
streams_.addAll(other.streams_);
}
onChanged();
}
} else {
if (!other.streams_.isEmpty()) {
if (streamsBuilder_.isEmpty()) {
streamsBuilder_.dispose();
streamsBuilder_ = null;
streams_ = other.streams_;
bitField0_ = (bitField0_ & ~0x00000001);
streamsBuilder_ =
com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getStreamsFieldBuilder() : null;
} else {
streamsBuilder_.addAllMessages(other.streams_);
}
}
}
if (columnsBuilder_ == null) {
if (!other.columns_.isEmpty()) {
if (columns_.isEmpty()) {
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureColumnsIsMutable();
columns_.addAll(other.columns_);
}
onChanged();
}
} else {
if (!other.columns_.isEmpty()) {
if (columnsBuilder_.isEmpty()) {
columnsBuilder_.dispose();
columnsBuilder_ = null;
columns_ = other.columns_;
bitField0_ = (bitField0_ & ~0x00000002);
columnsBuilder_ =
com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getColumnsFieldBuilder() : null;
} else {
columnsBuilder_.addAllMessages(other.columns_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getStreamsCount(); i++) {
if (!getStreams(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getColumnsCount(); i++) {
if (!getColumns(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.facebook.presto.orc.proto.DwrfProto.StripeFooter parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.facebook.presto.orc.proto.DwrfProto.StripeFooter) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .com.facebook.hive.orc.Stream streams = 1;
private java.util.List streams_ =
java.util.Collections.emptyList();
private void ensureStreamsIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
streams_ = new java.util.ArrayList(streams_);
bitField0_ |= 0x00000001;
}
}
private com.facebook.presto.orc.protobuf.RepeatedFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.Stream, com.facebook.presto.orc.proto.DwrfProto.Stream.Builder, com.facebook.presto.orc.proto.DwrfProto.StreamOrBuilder> streamsBuilder_;
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public java.util.List getStreamsList() {
if (streamsBuilder_ == null) {
return java.util.Collections.unmodifiableList(streams_);
} else {
return streamsBuilder_.getMessageList();
}
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public int getStreamsCount() {
if (streamsBuilder_ == null) {
return streams_.size();
} else {
return streamsBuilder_.getCount();
}
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.Stream getStreams(int index) {
if (streamsBuilder_ == null) {
return streams_.get(index);
} else {
return streamsBuilder_.getMessage(index);
}
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public Builder setStreams(
int index, com.facebook.presto.orc.proto.DwrfProto.Stream value) {
if (streamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamsIsMutable();
streams_.set(index, value);
onChanged();
} else {
streamsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public Builder setStreams(
int index, com.facebook.presto.orc.proto.DwrfProto.Stream.Builder builderForValue) {
if (streamsBuilder_ == null) {
ensureStreamsIsMutable();
streams_.set(index, builderForValue.build());
onChanged();
} else {
streamsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public Builder addStreams(com.facebook.presto.orc.proto.DwrfProto.Stream value) {
if (streamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamsIsMutable();
streams_.add(value);
onChanged();
} else {
streamsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public Builder addStreams(
int index, com.facebook.presto.orc.proto.DwrfProto.Stream value) {
if (streamsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamsIsMutable();
streams_.add(index, value);
onChanged();
} else {
streamsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public Builder addStreams(
com.facebook.presto.orc.proto.DwrfProto.Stream.Builder builderForValue) {
if (streamsBuilder_ == null) {
ensureStreamsIsMutable();
streams_.add(builderForValue.build());
onChanged();
} else {
streamsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public Builder addStreams(
int index, com.facebook.presto.orc.proto.DwrfProto.Stream.Builder builderForValue) {
if (streamsBuilder_ == null) {
ensureStreamsIsMutable();
streams_.add(index, builderForValue.build());
onChanged();
} else {
streamsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public Builder addAllStreams(
java.lang.Iterable extends com.facebook.presto.orc.proto.DwrfProto.Stream> values) {
if (streamsBuilder_ == null) {
ensureStreamsIsMutable();
super.addAll(values, streams_);
onChanged();
} else {
streamsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public Builder clearStreams() {
if (streamsBuilder_ == null) {
streams_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
streamsBuilder_.clear();
}
return this;
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public Builder removeStreams(int index) {
if (streamsBuilder_ == null) {
ensureStreamsIsMutable();
streams_.remove(index);
onChanged();
} else {
streamsBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.Stream.Builder getStreamsBuilder(
int index) {
return getStreamsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.StreamOrBuilder getStreamsOrBuilder(
int index) {
if (streamsBuilder_ == null) {
return streams_.get(index); } else {
return streamsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public java.util.List extends com.facebook.presto.orc.proto.DwrfProto.StreamOrBuilder>
getStreamsOrBuilderList() {
if (streamsBuilder_ != null) {
return streamsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(streams_);
}
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.Stream.Builder addStreamsBuilder() {
return getStreamsFieldBuilder().addBuilder(
com.facebook.presto.orc.proto.DwrfProto.Stream.getDefaultInstance());
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.Stream.Builder addStreamsBuilder(
int index) {
return getStreamsFieldBuilder().addBuilder(
index, com.facebook.presto.orc.proto.DwrfProto.Stream.getDefaultInstance());
}
/**
* repeated .com.facebook.hive.orc.Stream streams = 1;
*/
public java.util.List
getStreamsBuilderList() {
return getStreamsFieldBuilder().getBuilderList();
}
private com.facebook.presto.orc.protobuf.RepeatedFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.Stream, com.facebook.presto.orc.proto.DwrfProto.Stream.Builder, com.facebook.presto.orc.proto.DwrfProto.StreamOrBuilder>
getStreamsFieldBuilder() {
if (streamsBuilder_ == null) {
streamsBuilder_ = new com.facebook.presto.orc.protobuf.RepeatedFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.Stream, com.facebook.presto.orc.proto.DwrfProto.Stream.Builder, com.facebook.presto.orc.proto.DwrfProto.StreamOrBuilder>(
streams_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
streams_ = null;
}
return streamsBuilder_;
}
// repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
private java.util.List columns_ =
java.util.Collections.emptyList();
private void ensureColumnsIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
columns_ = new java.util.ArrayList(columns_);
bitField0_ |= 0x00000002;
}
}
private com.facebook.presto.orc.protobuf.RepeatedFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding, com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Builder, com.facebook.presto.orc.proto.DwrfProto.ColumnEncodingOrBuilder> columnsBuilder_;
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public java.util.List getColumnsList() {
if (columnsBuilder_ == null) {
return java.util.Collections.unmodifiableList(columns_);
} else {
return columnsBuilder_.getMessageList();
}
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public int getColumnsCount() {
if (columnsBuilder_ == null) {
return columns_.size();
} else {
return columnsBuilder_.getCount();
}
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding getColumns(int index) {
if (columnsBuilder_ == null) {
return columns_.get(index);
} else {
return columnsBuilder_.getMessage(index);
}
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public Builder setColumns(
int index, com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.set(index, value);
onChanged();
} else {
columnsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public Builder setColumns(
int index, com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.set(index, builderForValue.build());
onChanged();
} else {
columnsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public Builder addColumns(com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.add(value);
onChanged();
} else {
columnsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public Builder addColumns(
int index, com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding value) {
if (columnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnsIsMutable();
columns_.add(index, value);
onChanged();
} else {
columnsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public Builder addColumns(
com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.add(builderForValue.build());
onChanged();
} else {
columnsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public Builder addColumns(
int index, com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Builder builderForValue) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.add(index, builderForValue.build());
onChanged();
} else {
columnsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public Builder addAllColumns(
java.lang.Iterable extends com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding> values) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
super.addAll(values, columns_);
onChanged();
} else {
columnsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public Builder clearColumns() {
if (columnsBuilder_ == null) {
columns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
columnsBuilder_.clear();
}
return this;
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public Builder removeColumns(int index) {
if (columnsBuilder_ == null) {
ensureColumnsIsMutable();
columns_.remove(index);
onChanged();
} else {
columnsBuilder_.remove(index);
}
return this;
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Builder getColumnsBuilder(
int index) {
return getColumnsFieldBuilder().getBuilder(index);
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.ColumnEncodingOrBuilder getColumnsOrBuilder(
int index) {
if (columnsBuilder_ == null) {
return columns_.get(index); } else {
return columnsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public java.util.List extends com.facebook.presto.orc.proto.DwrfProto.ColumnEncodingOrBuilder>
getColumnsOrBuilderList() {
if (columnsBuilder_ != null) {
return columnsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(columns_);
}
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Builder addColumnsBuilder() {
return getColumnsFieldBuilder().addBuilder(
com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.getDefaultInstance());
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Builder addColumnsBuilder(
int index) {
return getColumnsFieldBuilder().addBuilder(
index, com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.getDefaultInstance());
}
/**
* repeated .com.facebook.hive.orc.ColumnEncoding columns = 2;
*/
public java.util.List
getColumnsBuilderList() {
return getColumnsFieldBuilder().getBuilderList();
}
private com.facebook.presto.orc.protobuf.RepeatedFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding, com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Builder, com.facebook.presto.orc.proto.DwrfProto.ColumnEncodingOrBuilder>
getColumnsFieldBuilder() {
if (columnsBuilder_ == null) {
columnsBuilder_ = new com.facebook.presto.orc.protobuf.RepeatedFieldBuilder<
com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding, com.facebook.presto.orc.proto.DwrfProto.ColumnEncoding.Builder, com.facebook.presto.orc.proto.DwrfProto.ColumnEncodingOrBuilder>(
columns_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
columns_ = null;
}
return columnsBuilder_;
}
// @@protoc_insertion_point(builder_scope:com.facebook.hive.orc.StripeFooter)
}
static {
defaultInstance = new StripeFooter(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.facebook.hive.orc.StripeFooter)
}
public interface TypeOrBuilder
extends com.facebook.presto.orc.protobuf.MessageOrBuilder {
// required .com.facebook.hive.orc.Type.Kind kind = 1;
/**
* required .com.facebook.hive.orc.Type.Kind kind = 1;
*/
boolean hasKind();
/**
* required .com.facebook.hive.orc.Type.Kind kind = 1;
*/
com.facebook.presto.orc.proto.DwrfProto.Type.Kind getKind();
// repeated uint32 subtypes = 2 [packed = true];
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
java.util.List getSubtypesList();
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
int getSubtypesCount();
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
int getSubtypes(int index);
// repeated string fieldNames = 3;
/**
* repeated string fieldNames = 3;
*/
java.util.List
getFieldNamesList();
/**
* repeated string fieldNames = 3;
*/
int getFieldNamesCount();
/**
* repeated string fieldNames = 3;
*/
java.lang.String getFieldNames(int index);
/**
* repeated string fieldNames = 3;
*/
com.facebook.presto.orc.protobuf.ByteString
getFieldNamesBytes(int index);
}
/**
* Protobuf type {@code com.facebook.hive.orc.Type}
*/
public static final class Type extends
com.facebook.presto.orc.protobuf.GeneratedMessage
implements TypeOrBuilder {
// Use Type.newBuilder() to construct.
private Type(com.facebook.presto.orc.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Type(boolean noInit) { this.unknownFields = com.facebook.presto.orc.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Type defaultInstance;
public static Type getDefaultInstance() {
return defaultInstance;
}
public Type getDefaultInstanceForType() {
return defaultInstance;
}
private final com.facebook.presto.orc.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.facebook.presto.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Type(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.facebook.presto.orc.protobuf.UnknownFieldSet.Builder unknownFields =
com.facebook.presto.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
int rawValue = input.readEnum();
com.facebook.presto.orc.proto.DwrfProto.Type.Kind value = com.facebook.presto.orc.proto.DwrfProto.Type.Kind.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
kind_ = value;
}
break;
}
case 16: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
subtypes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
subtypes_.add(input.readUInt32());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
subtypes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
subtypes_.add(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
fieldNames_ = new com.facebook.presto.orc.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000004;
}
fieldNames_.add(input.readBytes());
break;
}
}
}
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.facebook.presto.orc.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
subtypes_ = java.util.Collections.unmodifiableList(subtypes_);
}
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
fieldNames_ = new com.facebook.presto.orc.protobuf.UnmodifiableLazyStringList(fieldNames_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_Type_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_Type_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.Type.class, com.facebook.presto.orc.proto.DwrfProto.Type.Builder.class);
}
public static com.facebook.presto.orc.protobuf.Parser PARSER =
new com.facebook.presto.orc.protobuf.AbstractParser() {
public Type parsePartialFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return new Type(input, extensionRegistry);
}
};
@java.lang.Override
public com.facebook.presto.orc.protobuf.Parser getParserForType() {
return PARSER;
}
/**
* Protobuf enum {@code com.facebook.hive.orc.Type.Kind}
*/
public enum Kind
implements com.facebook.presto.orc.protobuf.ProtocolMessageEnum {
/**
* BOOLEAN = 0;
*/
BOOLEAN(0, 0),
/**
* BYTE = 1;
*/
BYTE(1, 1),
/**
* SHORT = 2;
*/
SHORT(2, 2),
/**
* INT = 3;
*/
INT(3, 3),
/**
* LONG = 4;
*/
LONG(4, 4),
/**
* FLOAT = 5;
*/
FLOAT(5, 5),
/**
* DOUBLE = 6;
*/
DOUBLE(6, 6),
/**
* STRING = 7;
*/
STRING(7, 7),
/**
* BINARY = 8;
*/
BINARY(8, 8),
/**
* TIMESTAMP = 9;
*/
TIMESTAMP(9, 9),
/**
* LIST = 10;
*/
LIST(10, 10),
/**
* MAP = 11;
*/
MAP(11, 11),
/**
* STRUCT = 12;
*/
STRUCT(12, 12),
/**
* UNION = 13;
*/
UNION(13, 13),
;
/**
* BOOLEAN = 0;
*/
public static final int BOOLEAN_VALUE = 0;
/**
* BYTE = 1;
*/
public static final int BYTE_VALUE = 1;
/**
* SHORT = 2;
*/
public static final int SHORT_VALUE = 2;
/**
* INT = 3;
*/
public static final int INT_VALUE = 3;
/**
* LONG = 4;
*/
public static final int LONG_VALUE = 4;
/**
* FLOAT = 5;
*/
public static final int FLOAT_VALUE = 5;
/**
* DOUBLE = 6;
*/
public static final int DOUBLE_VALUE = 6;
/**
* STRING = 7;
*/
public static final int STRING_VALUE = 7;
/**
* BINARY = 8;
*/
public static final int BINARY_VALUE = 8;
/**
* TIMESTAMP = 9;
*/
public static final int TIMESTAMP_VALUE = 9;
/**
* LIST = 10;
*/
public static final int LIST_VALUE = 10;
/**
* MAP = 11;
*/
public static final int MAP_VALUE = 11;
/**
* STRUCT = 12;
*/
public static final int STRUCT_VALUE = 12;
/**
* UNION = 13;
*/
public static final int UNION_VALUE = 13;
public final int getNumber() { return value; }
public static Kind valueOf(int value) {
switch (value) {
case 0: return BOOLEAN;
case 1: return BYTE;
case 2: return SHORT;
case 3: return INT;
case 4: return LONG;
case 5: return FLOAT;
case 6: return DOUBLE;
case 7: return STRING;
case 8: return BINARY;
case 9: return TIMESTAMP;
case 10: return LIST;
case 11: return MAP;
case 12: return STRUCT;
case 13: return UNION;
default: return null;
}
}
public static com.facebook.presto.orc.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static com.facebook.presto.orc.protobuf.Internal.EnumLiteMap
internalValueMap =
new com.facebook.presto.orc.protobuf.Internal.EnumLiteMap() {
public Kind findValueByNumber(int number) {
return Kind.valueOf(number);
}
};
public final com.facebook.presto.orc.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.facebook.presto.orc.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.facebook.presto.orc.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.Type.getDescriptor().getEnumTypes().get(0);
}
private static final Kind[] VALUES = values();
public static Kind valueOf(
com.facebook.presto.orc.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Kind(int index, int value) {
this.index = index;
this.value = value;
}
// @@protoc_insertion_point(enum_scope:com.facebook.hive.orc.Type.Kind)
}
private int bitField0_;
// required .com.facebook.hive.orc.Type.Kind kind = 1;
public static final int KIND_FIELD_NUMBER = 1;
private com.facebook.presto.orc.proto.DwrfProto.Type.Kind kind_;
/**
* required .com.facebook.hive.orc.Type.Kind kind = 1;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.facebook.hive.orc.Type.Kind kind = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.Type.Kind getKind() {
return kind_;
}
// repeated uint32 subtypes = 2 [packed = true];
public static final int SUBTYPES_FIELD_NUMBER = 2;
private java.util.List subtypes_;
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public java.util.List
getSubtypesList() {
return subtypes_;
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public int getSubtypesCount() {
return subtypes_.size();
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public int getSubtypes(int index) {
return subtypes_.get(index);
}
private int subtypesMemoizedSerializedSize = -1;
// repeated string fieldNames = 3;
public static final int FIELDNAMES_FIELD_NUMBER = 3;
private com.facebook.presto.orc.protobuf.LazyStringList fieldNames_;
/**
* repeated string fieldNames = 3;
*/
public java.util.List
getFieldNamesList() {
return fieldNames_;
}
/**
* repeated string fieldNames = 3;
*/
public int getFieldNamesCount() {
return fieldNames_.size();
}
/**
* repeated string fieldNames = 3;
*/
public java.lang.String getFieldNames(int index) {
return fieldNames_.get(index);
}
/**
* repeated string fieldNames = 3;
*/
public com.facebook.presto.orc.protobuf.ByteString
getFieldNamesBytes(int index) {
return fieldNames_.getByteString(index);
}
private void initFields() {
kind_ = com.facebook.presto.orc.proto.DwrfProto.Type.Kind.BOOLEAN;
subtypes_ = java.util.Collections.emptyList();
fieldNames_ = com.facebook.presto.orc.protobuf.LazyStringArrayList.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasKind()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.facebook.presto.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeEnum(1, kind_.getNumber());
}
if (getSubtypesList().size() > 0) {
output.writeRawVarint32(18);
output.writeRawVarint32(subtypesMemoizedSerializedSize);
}
for (int i = 0; i < subtypes_.size(); i++) {
output.writeUInt32NoTag(subtypes_.get(i));
}
for (int i = 0; i < fieldNames_.size(); i++) {
output.writeBytes(3, fieldNames_.getByteString(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeEnumSize(1, kind_.getNumber());
}
{
int dataSize = 0;
for (int i = 0; i < subtypes_.size(); i++) {
dataSize += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(subtypes_.get(i));
}
size += dataSize;
if (!getSubtypesList().isEmpty()) {
size += 1;
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
subtypesMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < fieldNames_.size(); i++) {
dataSize += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeBytesSizeNoTag(fieldNames_.getByteString(i));
}
size += dataSize;
size += 1 * getFieldNamesList().size();
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.facebook.presto.orc.proto.DwrfProto.Type parseFrom(
com.facebook.presto.orc.protobuf.ByteString data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.Type parseFrom(
com.facebook.presto.orc.protobuf.ByteString data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.Type parseFrom(byte[] data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.Type parseFrom(
byte[] data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.Type parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.Type parseFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.Type parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.Type parseDelimitedFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.Type parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.Type parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.facebook.presto.orc.proto.DwrfProto.Type prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.facebook.hive.orc.Type}
*/
public static final class Builder extends
com.facebook.presto.orc.protobuf.GeneratedMessage.Builder
implements com.facebook.presto.orc.proto.DwrfProto.TypeOrBuilder {
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_Type_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_Type_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.Type.class, com.facebook.presto.orc.proto.DwrfProto.Type.Builder.class);
}
// Construct using com.facebook.presto.orc.proto.DwrfProto.Type.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
kind_ = com.facebook.presto.orc.proto.DwrfProto.Type.Kind.BOOLEAN;
bitField0_ = (bitField0_ & ~0x00000001);
subtypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
fieldNames_ = com.facebook.presto.orc.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_Type_descriptor;
}
public com.facebook.presto.orc.proto.DwrfProto.Type getDefaultInstanceForType() {
return com.facebook.presto.orc.proto.DwrfProto.Type.getDefaultInstance();
}
public com.facebook.presto.orc.proto.DwrfProto.Type build() {
com.facebook.presto.orc.proto.DwrfProto.Type result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.facebook.presto.orc.proto.DwrfProto.Type buildPartial() {
com.facebook.presto.orc.proto.DwrfProto.Type result = new com.facebook.presto.orc.proto.DwrfProto.Type(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.kind_ = kind_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subtypes_ = java.util.Collections.unmodifiableList(subtypes_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.subtypes_ = subtypes_;
if (((bitField0_ & 0x00000004) == 0x00000004)) {
fieldNames_ = new com.facebook.presto.orc.protobuf.UnmodifiableLazyStringList(
fieldNames_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.fieldNames_ = fieldNames_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.facebook.presto.orc.protobuf.Message other) {
if (other instanceof com.facebook.presto.orc.proto.DwrfProto.Type) {
return mergeFrom((com.facebook.presto.orc.proto.DwrfProto.Type)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.facebook.presto.orc.proto.DwrfProto.Type other) {
if (other == com.facebook.presto.orc.proto.DwrfProto.Type.getDefaultInstance()) return this;
if (other.hasKind()) {
setKind(other.getKind());
}
if (!other.subtypes_.isEmpty()) {
if (subtypes_.isEmpty()) {
subtypes_ = other.subtypes_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSubtypesIsMutable();
subtypes_.addAll(other.subtypes_);
}
onChanged();
}
if (!other.fieldNames_.isEmpty()) {
if (fieldNames_.isEmpty()) {
fieldNames_ = other.fieldNames_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureFieldNamesIsMutable();
fieldNames_.addAll(other.fieldNames_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasKind()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.facebook.presto.orc.proto.DwrfProto.Type parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.facebook.presto.orc.proto.DwrfProto.Type) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required .com.facebook.hive.orc.Type.Kind kind = 1;
private com.facebook.presto.orc.proto.DwrfProto.Type.Kind kind_ = com.facebook.presto.orc.proto.DwrfProto.Type.Kind.BOOLEAN;
/**
* required .com.facebook.hive.orc.Type.Kind kind = 1;
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required .com.facebook.hive.orc.Type.Kind kind = 1;
*/
public com.facebook.presto.orc.proto.DwrfProto.Type.Kind getKind() {
return kind_;
}
/**
* required .com.facebook.hive.orc.Type.Kind kind = 1;
*/
public Builder setKind(com.facebook.presto.orc.proto.DwrfProto.Type.Kind value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
kind_ = value;
onChanged();
return this;
}
/**
* required .com.facebook.hive.orc.Type.Kind kind = 1;
*/
public Builder clearKind() {
bitField0_ = (bitField0_ & ~0x00000001);
kind_ = com.facebook.presto.orc.proto.DwrfProto.Type.Kind.BOOLEAN;
onChanged();
return this;
}
// repeated uint32 subtypes = 2 [packed = true];
private java.util.List subtypes_ = java.util.Collections.emptyList();
private void ensureSubtypesIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
subtypes_ = new java.util.ArrayList(subtypes_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public java.util.List
getSubtypesList() {
return java.util.Collections.unmodifiableList(subtypes_);
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public int getSubtypesCount() {
return subtypes_.size();
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public int getSubtypes(int index) {
return subtypes_.get(index);
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public Builder setSubtypes(
int index, int value) {
ensureSubtypesIsMutable();
subtypes_.set(index, value);
onChanged();
return this;
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public Builder addSubtypes(int value) {
ensureSubtypesIsMutable();
subtypes_.add(value);
onChanged();
return this;
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public Builder addAllSubtypes(
java.lang.Iterable extends java.lang.Integer> values) {
ensureSubtypesIsMutable();
super.addAll(values, subtypes_);
onChanged();
return this;
}
/**
* repeated uint32 subtypes = 2 [packed = true];
*/
public Builder clearSubtypes() {
subtypes_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
// repeated string fieldNames = 3;
private com.facebook.presto.orc.protobuf.LazyStringList fieldNames_ = com.facebook.presto.orc.protobuf.LazyStringArrayList.EMPTY;
private void ensureFieldNamesIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
fieldNames_ = new com.facebook.presto.orc.protobuf.LazyStringArrayList(fieldNames_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated string fieldNames = 3;
*/
public java.util.List
getFieldNamesList() {
return java.util.Collections.unmodifiableList(fieldNames_);
}
/**
* repeated string fieldNames = 3;
*/
public int getFieldNamesCount() {
return fieldNames_.size();
}
/**
* repeated string fieldNames = 3;
*/
public java.lang.String getFieldNames(int index) {
return fieldNames_.get(index);
}
/**
* repeated string fieldNames = 3;
*/
public com.facebook.presto.orc.protobuf.ByteString
getFieldNamesBytes(int index) {
return fieldNames_.getByteString(index);
}
/**
* repeated string fieldNames = 3;
*/
public Builder setFieldNames(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldNamesIsMutable();
fieldNames_.set(index, value);
onChanged();
return this;
}
/**
* repeated string fieldNames = 3;
*/
public Builder addFieldNames(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldNamesIsMutable();
fieldNames_.add(value);
onChanged();
return this;
}
/**
* repeated string fieldNames = 3;
*/
public Builder addAllFieldNames(
java.lang.Iterable values) {
ensureFieldNamesIsMutable();
super.addAll(values, fieldNames_);
onChanged();
return this;
}
/**
* repeated string fieldNames = 3;
*/
public Builder clearFieldNames() {
fieldNames_ = com.facebook.presto.orc.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
* repeated string fieldNames = 3;
*/
public Builder addFieldNamesBytes(
com.facebook.presto.orc.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureFieldNamesIsMutable();
fieldNames_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.facebook.hive.orc.Type)
}
static {
defaultInstance = new Type(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.facebook.hive.orc.Type)
}
public interface StripeInformationOrBuilder
extends com.facebook.presto.orc.protobuf.MessageOrBuilder {
// optional uint64 offset = 1;
/**
* optional uint64 offset = 1;
*/
boolean hasOffset();
/**
* optional uint64 offset = 1;
*/
long getOffset();
// optional uint64 indexLength = 2;
/**
* optional uint64 indexLength = 2;
*/
boolean hasIndexLength();
/**
* optional uint64 indexLength = 2;
*/
long getIndexLength();
// optional uint64 dataLength = 3;
/**
* optional uint64 dataLength = 3;
*/
boolean hasDataLength();
/**
* optional uint64 dataLength = 3;
*/
long getDataLength();
// optional uint64 footerLength = 4;
/**
* optional uint64 footerLength = 4;
*/
boolean hasFooterLength();
/**
* optional uint64 footerLength = 4;
*/
long getFooterLength();
// optional uint64 numberOfRows = 5;
/**
* optional uint64 numberOfRows = 5;
*/
boolean hasNumberOfRows();
/**
* optional uint64 numberOfRows = 5;
*/
long getNumberOfRows();
// optional uint64 rawDataSize = 6;
/**
* optional uint64 rawDataSize = 6;
*/
boolean hasRawDataSize();
/**
* optional uint64 rawDataSize = 6;
*/
long getRawDataSize();
}
/**
* Protobuf type {@code com.facebook.hive.orc.StripeInformation}
*/
public static final class StripeInformation extends
com.facebook.presto.orc.protobuf.GeneratedMessage
implements StripeInformationOrBuilder {
// Use StripeInformation.newBuilder() to construct.
private StripeInformation(com.facebook.presto.orc.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private StripeInformation(boolean noInit) { this.unknownFields = com.facebook.presto.orc.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final StripeInformation defaultInstance;
public static StripeInformation getDefaultInstance() {
return defaultInstance;
}
public StripeInformation getDefaultInstanceForType() {
return defaultInstance;
}
private final com.facebook.presto.orc.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.facebook.presto.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StripeInformation(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.facebook.presto.orc.protobuf.UnknownFieldSet.Builder unknownFields =
com.facebook.presto.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
offset_ = input.readUInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
indexLength_ = input.readUInt64();
break;
}
case 24: {
bitField0_ |= 0x00000004;
dataLength_ = input.readUInt64();
break;
}
case 32: {
bitField0_ |= 0x00000008;
footerLength_ = input.readUInt64();
break;
}
case 40: {
bitField0_ |= 0x00000010;
numberOfRows_ = input.readUInt64();
break;
}
case 48: {
bitField0_ |= 0x00000020;
rawDataSize_ = input.readUInt64();
break;
}
}
}
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.facebook.presto.orc.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StripeInformation_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StripeInformation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.StripeInformation.class, com.facebook.presto.orc.proto.DwrfProto.StripeInformation.Builder.class);
}
public static com.facebook.presto.orc.protobuf.Parser PARSER =
new com.facebook.presto.orc.protobuf.AbstractParser() {
public StripeInformation parsePartialFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return new StripeInformation(input, extensionRegistry);
}
};
@java.lang.Override
public com.facebook.presto.orc.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// optional uint64 offset = 1;
public static final int OFFSET_FIELD_NUMBER = 1;
private long offset_;
/**
* optional uint64 offset = 1;
*/
public boolean hasOffset() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint64 offset = 1;
*/
public long getOffset() {
return offset_;
}
// optional uint64 indexLength = 2;
public static final int INDEXLENGTH_FIELD_NUMBER = 2;
private long indexLength_;
/**
* optional uint64 indexLength = 2;
*/
public boolean hasIndexLength() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 indexLength = 2;
*/
public long getIndexLength() {
return indexLength_;
}
// optional uint64 dataLength = 3;
public static final int DATALENGTH_FIELD_NUMBER = 3;
private long dataLength_;
/**
* optional uint64 dataLength = 3;
*/
public boolean hasDataLength() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint64 dataLength = 3;
*/
public long getDataLength() {
return dataLength_;
}
// optional uint64 footerLength = 4;
public static final int FOOTERLENGTH_FIELD_NUMBER = 4;
private long footerLength_;
/**
* optional uint64 footerLength = 4;
*/
public boolean hasFooterLength() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint64 footerLength = 4;
*/
public long getFooterLength() {
return footerLength_;
}
// optional uint64 numberOfRows = 5;
public static final int NUMBEROFROWS_FIELD_NUMBER = 5;
private long numberOfRows_;
/**
* optional uint64 numberOfRows = 5;
*/
public boolean hasNumberOfRows() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint64 numberOfRows = 5;
*/
public long getNumberOfRows() {
return numberOfRows_;
}
// optional uint64 rawDataSize = 6;
public static final int RAWDATASIZE_FIELD_NUMBER = 6;
private long rawDataSize_;
/**
* optional uint64 rawDataSize = 6;
*/
public boolean hasRawDataSize() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint64 rawDataSize = 6;
*/
public long getRawDataSize() {
return rawDataSize_;
}
private void initFields() {
offset_ = 0L;
indexLength_ = 0L;
dataLength_ = 0L;
footerLength_ = 0L;
numberOfRows_ = 0L;
rawDataSize_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.facebook.presto.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt64(1, offset_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(2, indexLength_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeUInt64(3, dataLength_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeUInt64(4, footerLength_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
output.writeUInt64(5, numberOfRows_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
output.writeUInt64(6, rawDataSize_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeUInt64Size(1, offset_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeUInt64Size(2, indexLength_);
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeUInt64Size(3, dataLength_);
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeUInt64Size(4, footerLength_);
}
if (((bitField0_ & 0x00000010) == 0x00000010)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeUInt64Size(5, numberOfRows_);
}
if (((bitField0_ & 0x00000020) == 0x00000020)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeUInt64Size(6, rawDataSize_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeInformation parseFrom(
com.facebook.presto.orc.protobuf.ByteString data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeInformation parseFrom(
com.facebook.presto.orc.protobuf.ByteString data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeInformation parseFrom(byte[] data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeInformation parseFrom(
byte[] data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeInformation parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeInformation parseFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeInformation parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeInformation parseDelimitedFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeInformation parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.StripeInformation parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.facebook.presto.orc.proto.DwrfProto.StripeInformation prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.facebook.hive.orc.StripeInformation}
*/
public static final class Builder extends
com.facebook.presto.orc.protobuf.GeneratedMessage.Builder
implements com.facebook.presto.orc.proto.DwrfProto.StripeInformationOrBuilder {
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StripeInformation_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StripeInformation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.StripeInformation.class, com.facebook.presto.orc.proto.DwrfProto.StripeInformation.Builder.class);
}
// Construct using com.facebook.presto.orc.proto.DwrfProto.StripeInformation.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
offset_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
indexLength_ = 0L;
bitField0_ = (bitField0_ & ~0x00000002);
dataLength_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
footerLength_ = 0L;
bitField0_ = (bitField0_ & ~0x00000008);
numberOfRows_ = 0L;
bitField0_ = (bitField0_ & ~0x00000010);
rawDataSize_ = 0L;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_StripeInformation_descriptor;
}
public com.facebook.presto.orc.proto.DwrfProto.StripeInformation getDefaultInstanceForType() {
return com.facebook.presto.orc.proto.DwrfProto.StripeInformation.getDefaultInstance();
}
public com.facebook.presto.orc.proto.DwrfProto.StripeInformation build() {
com.facebook.presto.orc.proto.DwrfProto.StripeInformation result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.facebook.presto.orc.proto.DwrfProto.StripeInformation buildPartial() {
com.facebook.presto.orc.proto.DwrfProto.StripeInformation result = new com.facebook.presto.orc.proto.DwrfProto.StripeInformation(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.offset_ = offset_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.indexLength_ = indexLength_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.dataLength_ = dataLength_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.footerLength_ = footerLength_;
if (((from_bitField0_ & 0x00000010) == 0x00000010)) {
to_bitField0_ |= 0x00000010;
}
result.numberOfRows_ = numberOfRows_;
if (((from_bitField0_ & 0x00000020) == 0x00000020)) {
to_bitField0_ |= 0x00000020;
}
result.rawDataSize_ = rawDataSize_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.facebook.presto.orc.protobuf.Message other) {
if (other instanceof com.facebook.presto.orc.proto.DwrfProto.StripeInformation) {
return mergeFrom((com.facebook.presto.orc.proto.DwrfProto.StripeInformation)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.facebook.presto.orc.proto.DwrfProto.StripeInformation other) {
if (other == com.facebook.presto.orc.proto.DwrfProto.StripeInformation.getDefaultInstance()) return this;
if (other.hasOffset()) {
setOffset(other.getOffset());
}
if (other.hasIndexLength()) {
setIndexLength(other.getIndexLength());
}
if (other.hasDataLength()) {
setDataLength(other.getDataLength());
}
if (other.hasFooterLength()) {
setFooterLength(other.getFooterLength());
}
if (other.hasNumberOfRows()) {
setNumberOfRows(other.getNumberOfRows());
}
if (other.hasRawDataSize()) {
setRawDataSize(other.getRawDataSize());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.facebook.presto.orc.proto.DwrfProto.StripeInformation parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.facebook.presto.orc.proto.DwrfProto.StripeInformation) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// optional uint64 offset = 1;
private long offset_ ;
/**
* optional uint64 offset = 1;
*/
public boolean hasOffset() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint64 offset = 1;
*/
public long getOffset() {
return offset_;
}
/**
* optional uint64 offset = 1;
*/
public Builder setOffset(long value) {
bitField0_ |= 0x00000001;
offset_ = value;
onChanged();
return this;
}
/**
* optional uint64 offset = 1;
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000001);
offset_ = 0L;
onChanged();
return this;
}
// optional uint64 indexLength = 2;
private long indexLength_ ;
/**
* optional uint64 indexLength = 2;
*/
public boolean hasIndexLength() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 indexLength = 2;
*/
public long getIndexLength() {
return indexLength_;
}
/**
* optional uint64 indexLength = 2;
*/
public Builder setIndexLength(long value) {
bitField0_ |= 0x00000002;
indexLength_ = value;
onChanged();
return this;
}
/**
* optional uint64 indexLength = 2;
*/
public Builder clearIndexLength() {
bitField0_ = (bitField0_ & ~0x00000002);
indexLength_ = 0L;
onChanged();
return this;
}
// optional uint64 dataLength = 3;
private long dataLength_ ;
/**
* optional uint64 dataLength = 3;
*/
public boolean hasDataLength() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint64 dataLength = 3;
*/
public long getDataLength() {
return dataLength_;
}
/**
* optional uint64 dataLength = 3;
*/
public Builder setDataLength(long value) {
bitField0_ |= 0x00000004;
dataLength_ = value;
onChanged();
return this;
}
/**
* optional uint64 dataLength = 3;
*/
public Builder clearDataLength() {
bitField0_ = (bitField0_ & ~0x00000004);
dataLength_ = 0L;
onChanged();
return this;
}
// optional uint64 footerLength = 4;
private long footerLength_ ;
/**
* optional uint64 footerLength = 4;
*/
public boolean hasFooterLength() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional uint64 footerLength = 4;
*/
public long getFooterLength() {
return footerLength_;
}
/**
* optional uint64 footerLength = 4;
*/
public Builder setFooterLength(long value) {
bitField0_ |= 0x00000008;
footerLength_ = value;
onChanged();
return this;
}
/**
* optional uint64 footerLength = 4;
*/
public Builder clearFooterLength() {
bitField0_ = (bitField0_ & ~0x00000008);
footerLength_ = 0L;
onChanged();
return this;
}
// optional uint64 numberOfRows = 5;
private long numberOfRows_ ;
/**
* optional uint64 numberOfRows = 5;
*/
public boolean hasNumberOfRows() {
return ((bitField0_ & 0x00000010) == 0x00000010);
}
/**
* optional uint64 numberOfRows = 5;
*/
public long getNumberOfRows() {
return numberOfRows_;
}
/**
* optional uint64 numberOfRows = 5;
*/
public Builder setNumberOfRows(long value) {
bitField0_ |= 0x00000010;
numberOfRows_ = value;
onChanged();
return this;
}
/**
* optional uint64 numberOfRows = 5;
*/
public Builder clearNumberOfRows() {
bitField0_ = (bitField0_ & ~0x00000010);
numberOfRows_ = 0L;
onChanged();
return this;
}
// optional uint64 rawDataSize = 6;
private long rawDataSize_ ;
/**
* optional uint64 rawDataSize = 6;
*/
public boolean hasRawDataSize() {
return ((bitField0_ & 0x00000020) == 0x00000020);
}
/**
* optional uint64 rawDataSize = 6;
*/
public long getRawDataSize() {
return rawDataSize_;
}
/**
* optional uint64 rawDataSize = 6;
*/
public Builder setRawDataSize(long value) {
bitField0_ |= 0x00000020;
rawDataSize_ = value;
onChanged();
return this;
}
/**
* optional uint64 rawDataSize = 6;
*/
public Builder clearRawDataSize() {
bitField0_ = (bitField0_ & ~0x00000020);
rawDataSize_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.facebook.hive.orc.StripeInformation)
}
static {
defaultInstance = new StripeInformation(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.facebook.hive.orc.StripeInformation)
}
public interface UserMetadataItemOrBuilder
extends com.facebook.presto.orc.protobuf.MessageOrBuilder {
// required string name = 1;
/**
* required string name = 1;
*/
boolean hasName();
/**
* required string name = 1;
*/
java.lang.String getName();
/**
* required string name = 1;
*/
com.facebook.presto.orc.protobuf.ByteString
getNameBytes();
// required bytes value = 2;
/**
* required bytes value = 2;
*/
boolean hasValue();
/**
* required bytes value = 2;
*/
com.facebook.presto.orc.protobuf.ByteString getValue();
}
/**
* Protobuf type {@code com.facebook.hive.orc.UserMetadataItem}
*/
public static final class UserMetadataItem extends
com.facebook.presto.orc.protobuf.GeneratedMessage
implements UserMetadataItemOrBuilder {
// Use UserMetadataItem.newBuilder() to construct.
private UserMetadataItem(com.facebook.presto.orc.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private UserMetadataItem(boolean noInit) { this.unknownFields = com.facebook.presto.orc.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final UserMetadataItem defaultInstance;
public static UserMetadataItem getDefaultInstance() {
return defaultInstance;
}
public UserMetadataItem getDefaultInstanceForType() {
return defaultInstance;
}
private final com.facebook.presto.orc.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.facebook.presto.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UserMetadataItem(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.facebook.presto.orc.protobuf.UnknownFieldSet.Builder unknownFields =
com.facebook.presto.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
value_ = input.readBytes();
break;
}
}
}
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.facebook.presto.orc.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_UserMetadataItem_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_UserMetadataItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem.class, com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem.Builder.class);
}
public static com.facebook.presto.orc.protobuf.Parser PARSER =
new com.facebook.presto.orc.protobuf.AbstractParser() {
public UserMetadataItem parsePartialFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return new UserMetadataItem(input, extensionRegistry);
}
};
@java.lang.Override
public com.facebook.presto.orc.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
// required string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* required string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.facebook.presto.orc.protobuf.ByteString bs =
(com.facebook.presto.orc.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* required string name = 1;
*/
public com.facebook.presto.orc.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.facebook.presto.orc.protobuf.ByteString b =
com.facebook.presto.orc.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.facebook.presto.orc.protobuf.ByteString) ref;
}
}
// required bytes value = 2;
public static final int VALUE_FIELD_NUMBER = 2;
private com.facebook.presto.orc.protobuf.ByteString value_;
/**
* required bytes value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes value = 2;
*/
public com.facebook.presto.orc.protobuf.ByteString getValue() {
return value_;
}
private void initFields() {
name_ = "";
value_ = com.facebook.presto.orc.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasValue()) {
memoizedIsInitialized = 0;
return false;
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.facebook.presto.orc.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, value_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.facebook.presto.orc.protobuf.CodedOutputStream
.computeBytesSize(2, value_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem parseFrom(
com.facebook.presto.orc.protobuf.ByteString data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem parseFrom(
com.facebook.presto.orc.protobuf.ByteString data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem parseFrom(byte[] data)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem parseFrom(
byte[] data,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem parseFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem parseDelimitedFrom(
java.io.InputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem parseFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code com.facebook.hive.orc.UserMetadataItem}
*/
public static final class Builder extends
com.facebook.presto.orc.protobuf.GeneratedMessage.Builder
implements com.facebook.presto.orc.proto.DwrfProto.UserMetadataItemOrBuilder {
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_UserMetadataItem_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_UserMetadataItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem.class, com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem.Builder.class);
}
// Construct using com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.facebook.presto.orc.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.facebook.presto.orc.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = com.facebook.presto.orc.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_UserMetadataItem_descriptor;
}
public com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem getDefaultInstanceForType() {
return com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem.getDefaultInstance();
}
public com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem build() {
com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem buildPartial() {
com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem result = new com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.facebook.presto.orc.protobuf.Message other) {
if (other instanceof com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem) {
return mergeFrom((com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem other) {
if (other == com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasValue()) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (!hasValue()) {
return false;
}
return true;
}
public Builder mergeFrom(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string name = 1;
private java.lang.Object name_ = "";
/**
* required string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* required string name = 1;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.facebook.presto.orc.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* required string name = 1;
*/
public com.facebook.presto.orc.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.facebook.presto.orc.protobuf.ByteString b =
com.facebook.presto.orc.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.facebook.presto.orc.protobuf.ByteString) ref;
}
}
/**
* required string name = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* required string name = 1;
*/
public Builder setNameBytes(
com.facebook.presto.orc.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// required bytes value = 2;
private com.facebook.presto.orc.protobuf.ByteString value_ = com.facebook.presto.orc.protobuf.ByteString.EMPTY;
/**
* required bytes value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* required bytes value = 2;
*/
public com.facebook.presto.orc.protobuf.ByteString getValue() {
return value_;
}
/**
* required bytes value = 2;
*/
public Builder setValue(com.facebook.presto.orc.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* required bytes value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:com.facebook.hive.orc.UserMetadataItem)
}
static {
defaultInstance = new UserMetadataItem(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:com.facebook.hive.orc.UserMetadataItem)
}
public interface FooterOrBuilder
extends com.facebook.presto.orc.protobuf.MessageOrBuilder {
// optional uint64 headerLength = 1;
/**
* optional uint64 headerLength = 1;
*/
boolean hasHeaderLength();
/**
* optional uint64 headerLength = 1;
*/
long getHeaderLength();
// optional uint64 contentLength = 2;
/**
* optional uint64 contentLength = 2;
*/
boolean hasContentLength();
/**
* optional uint64 contentLength = 2;
*/
long getContentLength();
// repeated .com.facebook.hive.orc.StripeInformation stripes = 3;
/**
* repeated .com.facebook.hive.orc.StripeInformation stripes = 3;
*/
java.util.List
getStripesList();
/**
* repeated .com.facebook.hive.orc.StripeInformation stripes = 3;
*/
com.facebook.presto.orc.proto.DwrfProto.StripeInformation getStripes(int index);
/**
* repeated .com.facebook.hive.orc.StripeInformation stripes = 3;
*/
int getStripesCount();
/**
* repeated .com.facebook.hive.orc.StripeInformation stripes = 3;
*/
java.util.List extends com.facebook.presto.orc.proto.DwrfProto.StripeInformationOrBuilder>
getStripesOrBuilderList();
/**
* repeated .com.facebook.hive.orc.StripeInformation stripes = 3;
*/
com.facebook.presto.orc.proto.DwrfProto.StripeInformationOrBuilder getStripesOrBuilder(
int index);
// repeated .com.facebook.hive.orc.Type types = 4;
/**
* repeated .com.facebook.hive.orc.Type types = 4;
*/
java.util.List
getTypesList();
/**
* repeated .com.facebook.hive.orc.Type types = 4;
*/
com.facebook.presto.orc.proto.DwrfProto.Type getTypes(int index);
/**
* repeated .com.facebook.hive.orc.Type types = 4;
*/
int getTypesCount();
/**
* repeated .com.facebook.hive.orc.Type types = 4;
*/
java.util.List extends com.facebook.presto.orc.proto.DwrfProto.TypeOrBuilder>
getTypesOrBuilderList();
/**
* repeated .com.facebook.hive.orc.Type types = 4;
*/
com.facebook.presto.orc.proto.DwrfProto.TypeOrBuilder getTypesOrBuilder(
int index);
// repeated .com.facebook.hive.orc.UserMetadataItem metadata = 5;
/**
* repeated .com.facebook.hive.orc.UserMetadataItem metadata = 5;
*/
java.util.List
getMetadataList();
/**
* repeated .com.facebook.hive.orc.UserMetadataItem metadata = 5;
*/
com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem getMetadata(int index);
/**
* repeated .com.facebook.hive.orc.UserMetadataItem metadata = 5;
*/
int getMetadataCount();
/**
* repeated .com.facebook.hive.orc.UserMetadataItem metadata = 5;
*/
java.util.List extends com.facebook.presto.orc.proto.DwrfProto.UserMetadataItemOrBuilder>
getMetadataOrBuilderList();
/**
* repeated .com.facebook.hive.orc.UserMetadataItem metadata = 5;
*/
com.facebook.presto.orc.proto.DwrfProto.UserMetadataItemOrBuilder getMetadataOrBuilder(
int index);
// optional uint64 numberOfRows = 6;
/**
* optional uint64 numberOfRows = 6;
*/
boolean hasNumberOfRows();
/**
* optional uint64 numberOfRows = 6;
*/
long getNumberOfRows();
// repeated .com.facebook.hive.orc.ColumnStatistics statistics = 7;
/**
* repeated .com.facebook.hive.orc.ColumnStatistics statistics = 7;
*/
java.util.List
getStatisticsList();
/**
* repeated .com.facebook.hive.orc.ColumnStatistics statistics = 7;
*/
com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics getStatistics(int index);
/**
* repeated .com.facebook.hive.orc.ColumnStatistics statistics = 7;
*/
int getStatisticsCount();
/**
* repeated .com.facebook.hive.orc.ColumnStatistics statistics = 7;
*/
java.util.List extends com.facebook.presto.orc.proto.DwrfProto.ColumnStatisticsOrBuilder>
getStatisticsOrBuilderList();
/**
* repeated .com.facebook.hive.orc.ColumnStatistics statistics = 7;
*/
com.facebook.presto.orc.proto.DwrfProto.ColumnStatisticsOrBuilder getStatisticsOrBuilder(
int index);
// optional uint32 rowIndexStride = 8;
/**
* optional uint32 rowIndexStride = 8;
*/
boolean hasRowIndexStride();
/**
* optional uint32 rowIndexStride = 8;
*/
int getRowIndexStride();
// optional uint64 rawDataSize = 9;
/**
* optional uint64 rawDataSize = 9;
*/
boolean hasRawDataSize();
/**
* optional uint64 rawDataSize = 9;
*/
long getRawDataSize();
}
/**
* Protobuf type {@code com.facebook.hive.orc.Footer}
*/
public static final class Footer extends
com.facebook.presto.orc.protobuf.GeneratedMessage
implements FooterOrBuilder {
// Use Footer.newBuilder() to construct.
private Footer(com.facebook.presto.orc.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Footer(boolean noInit) { this.unknownFields = com.facebook.presto.orc.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Footer defaultInstance;
public static Footer getDefaultInstance() {
return defaultInstance;
}
public Footer getDefaultInstanceForType() {
return defaultInstance;
}
private final com.facebook.presto.orc.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.facebook.presto.orc.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Footer(
com.facebook.presto.orc.protobuf.CodedInputStream input,
com.facebook.presto.orc.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.facebook.presto.orc.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.facebook.presto.orc.protobuf.UnknownFieldSet.Builder unknownFields =
com.facebook.presto.orc.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
headerLength_ = input.readUInt64();
break;
}
case 16: {
bitField0_ |= 0x00000002;
contentLength_ = input.readUInt64();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
stripes_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
stripes_.add(input.readMessage(com.facebook.presto.orc.proto.DwrfProto.StripeInformation.PARSER, extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
types_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
types_.add(input.readMessage(com.facebook.presto.orc.proto.DwrfProto.Type.PARSER, extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
metadata_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
metadata_.add(input.readMessage(com.facebook.presto.orc.proto.DwrfProto.UserMetadataItem.PARSER, extensionRegistry));
break;
}
case 48: {
bitField0_ |= 0x00000004;
numberOfRows_ = input.readUInt64();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
statistics_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
statistics_.add(input.readMessage(com.facebook.presto.orc.proto.DwrfProto.ColumnStatistics.PARSER, extensionRegistry));
break;
}
case 64: {
bitField0_ |= 0x00000008;
rowIndexStride_ = input.readUInt32();
break;
}
case 72: {
bitField0_ |= 0x00000010;
rawDataSize_ = input.readUInt64();
break;
}
}
}
} catch (com.facebook.presto.orc.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.facebook.presto.orc.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
stripes_ = java.util.Collections.unmodifiableList(stripes_);
}
if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
types_ = java.util.Collections.unmodifiableList(types_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
metadata_ = java.util.Collections.unmodifiableList(metadata_);
}
if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) {
statistics_ = java.util.Collections.unmodifiableList(statistics_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.facebook.presto.orc.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_Footer_descriptor;
}
protected com.facebook.presto.orc.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.facebook.presto.orc.proto.DwrfProto.internal_static_com_facebook_hive_orc_Footer_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.facebook.presto.orc.proto.DwrfProto.Footer.class, com.facebook.presto.orc.proto.DwrfProto.Footer.Builder.class);
}
public static com.facebook.presto.orc.protobuf.Parser