cz.proto.HashTableStats Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clickzetta-java Show documentation
Show all versions of clickzetta-java Show documentation
The java SDK for clickzetta's Lakehouse
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: operator.proto
package cz.proto;
/**
* Protobuf type {@code cz.proto.HashTableStats}
*/
public final class HashTableStats extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cz.proto.HashTableStats)
HashTableStatsOrBuilder {
private static final long serialVersionUID = 0L;
// Use HashTableStats.newBuilder() to construct.
private HashTableStats(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HashTableStats() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HashTableStats();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HashTableStats(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
numBuckets_ = input.readUInt64();
break;
}
case 16: {
numKeys_ = input.readUInt64();
break;
}
case 24: {
numResize_ = input.readUInt64();
break;
}
case 32: {
numAccesses_ = input.readUInt64();
break;
}
case 40: {
numCollisions_ = input.readUInt64();
break;
}
case 48: {
usedMemory_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.OperatorProto.internal_static_cz_proto_HashTableStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.OperatorProto.internal_static_cz_proto_HashTableStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.HashTableStats.class, cz.proto.HashTableStats.Builder.class);
}
public static final int NUM_BUCKETS_FIELD_NUMBER = 1;
private long numBuckets_;
/**
* uint64 num_buckets = 1;
* @return The numBuckets.
*/
@java.lang.Override
public long getNumBuckets() {
return numBuckets_;
}
public static final int NUM_KEYS_FIELD_NUMBER = 2;
private long numKeys_;
/**
* uint64 num_keys = 2;
* @return The numKeys.
*/
@java.lang.Override
public long getNumKeys() {
return numKeys_;
}
public static final int NUM_RESIZE_FIELD_NUMBER = 3;
private long numResize_;
/**
* uint64 num_resize = 3;
* @return The numResize.
*/
@java.lang.Override
public long getNumResize() {
return numResize_;
}
public static final int NUM_ACCESSES_FIELD_NUMBER = 4;
private long numAccesses_;
/**
* uint64 num_accesses = 4;
* @return The numAccesses.
*/
@java.lang.Override
public long getNumAccesses() {
return numAccesses_;
}
public static final int NUM_COLLISIONS_FIELD_NUMBER = 5;
private long numCollisions_;
/**
* uint64 num_collisions = 5;
* @return The numCollisions.
*/
@java.lang.Override
public long getNumCollisions() {
return numCollisions_;
}
public static final int USED_MEMORY_FIELD_NUMBER = 6;
private long usedMemory_;
/**
* uint64 used_memory = 6;
* @return The usedMemory.
*/
@java.lang.Override
public long getUsedMemory() {
return usedMemory_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (numBuckets_ != 0L) {
output.writeUInt64(1, numBuckets_);
}
if (numKeys_ != 0L) {
output.writeUInt64(2, numKeys_);
}
if (numResize_ != 0L) {
output.writeUInt64(3, numResize_);
}
if (numAccesses_ != 0L) {
output.writeUInt64(4, numAccesses_);
}
if (numCollisions_ != 0L) {
output.writeUInt64(5, numCollisions_);
}
if (usedMemory_ != 0L) {
output.writeUInt64(6, usedMemory_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (numBuckets_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(1, numBuckets_);
}
if (numKeys_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(2, numKeys_);
}
if (numResize_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, numResize_);
}
if (numAccesses_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(4, numAccesses_);
}
if (numCollisions_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(5, numCollisions_);
}
if (usedMemory_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(6, usedMemory_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof cz.proto.HashTableStats)) {
return super.equals(obj);
}
cz.proto.HashTableStats other = (cz.proto.HashTableStats) obj;
if (getNumBuckets()
!= other.getNumBuckets()) return false;
if (getNumKeys()
!= other.getNumKeys()) return false;
if (getNumResize()
!= other.getNumResize()) return false;
if (getNumAccesses()
!= other.getNumAccesses()) return false;
if (getNumCollisions()
!= other.getNumCollisions()) return false;
if (getUsedMemory()
!= other.getUsedMemory()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NUM_BUCKETS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumBuckets());
hash = (37 * hash) + NUM_KEYS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumKeys());
hash = (37 * hash) + NUM_RESIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumResize());
hash = (37 * hash) + NUM_ACCESSES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumAccesses());
hash = (37 * hash) + NUM_COLLISIONS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumCollisions());
hash = (37 * hash) + USED_MEMORY_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getUsedMemory());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static cz.proto.HashTableStats parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.HashTableStats parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.HashTableStats parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.HashTableStats parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.HashTableStats parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cz.proto.HashTableStats parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cz.proto.HashTableStats parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.HashTableStats parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cz.proto.HashTableStats parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cz.proto.HashTableStats parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cz.proto.HashTableStats parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cz.proto.HashTableStats parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cz.proto.HashTableStats prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cz.proto.HashTableStats}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cz.proto.HashTableStats)
cz.proto.HashTableStatsOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cz.proto.OperatorProto.internal_static_cz_proto_HashTableStats_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cz.proto.OperatorProto.internal_static_cz_proto_HashTableStats_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cz.proto.HashTableStats.class, cz.proto.HashTableStats.Builder.class);
}
// Construct using cz.proto.HashTableStats.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
numBuckets_ = 0L;
numKeys_ = 0L;
numResize_ = 0L;
numAccesses_ = 0L;
numCollisions_ = 0L;
usedMemory_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cz.proto.OperatorProto.internal_static_cz_proto_HashTableStats_descriptor;
}
@java.lang.Override
public cz.proto.HashTableStats getDefaultInstanceForType() {
return cz.proto.HashTableStats.getDefaultInstance();
}
@java.lang.Override
public cz.proto.HashTableStats build() {
cz.proto.HashTableStats result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cz.proto.HashTableStats buildPartial() {
cz.proto.HashTableStats result = new cz.proto.HashTableStats(this);
result.numBuckets_ = numBuckets_;
result.numKeys_ = numKeys_;
result.numResize_ = numResize_;
result.numAccesses_ = numAccesses_;
result.numCollisions_ = numCollisions_;
result.usedMemory_ = usedMemory_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cz.proto.HashTableStats) {
return mergeFrom((cz.proto.HashTableStats)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cz.proto.HashTableStats other) {
if (other == cz.proto.HashTableStats.getDefaultInstance()) return this;
if (other.getNumBuckets() != 0L) {
setNumBuckets(other.getNumBuckets());
}
if (other.getNumKeys() != 0L) {
setNumKeys(other.getNumKeys());
}
if (other.getNumResize() != 0L) {
setNumResize(other.getNumResize());
}
if (other.getNumAccesses() != 0L) {
setNumAccesses(other.getNumAccesses());
}
if (other.getNumCollisions() != 0L) {
setNumCollisions(other.getNumCollisions());
}
if (other.getUsedMemory() != 0L) {
setUsedMemory(other.getUsedMemory());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
cz.proto.HashTableStats parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (cz.proto.HashTableStats) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long numBuckets_ ;
/**
* uint64 num_buckets = 1;
* @return The numBuckets.
*/
@java.lang.Override
public long getNumBuckets() {
return numBuckets_;
}
/**
* uint64 num_buckets = 1;
* @param value The numBuckets to set.
* @return This builder for chaining.
*/
public Builder setNumBuckets(long value) {
numBuckets_ = value;
onChanged();
return this;
}
/**
* uint64 num_buckets = 1;
* @return This builder for chaining.
*/
public Builder clearNumBuckets() {
numBuckets_ = 0L;
onChanged();
return this;
}
private long numKeys_ ;
/**
* uint64 num_keys = 2;
* @return The numKeys.
*/
@java.lang.Override
public long getNumKeys() {
return numKeys_;
}
/**
* uint64 num_keys = 2;
* @param value The numKeys to set.
* @return This builder for chaining.
*/
public Builder setNumKeys(long value) {
numKeys_ = value;
onChanged();
return this;
}
/**
* uint64 num_keys = 2;
* @return This builder for chaining.
*/
public Builder clearNumKeys() {
numKeys_ = 0L;
onChanged();
return this;
}
private long numResize_ ;
/**
* uint64 num_resize = 3;
* @return The numResize.
*/
@java.lang.Override
public long getNumResize() {
return numResize_;
}
/**
* uint64 num_resize = 3;
* @param value The numResize to set.
* @return This builder for chaining.
*/
public Builder setNumResize(long value) {
numResize_ = value;
onChanged();
return this;
}
/**
* uint64 num_resize = 3;
* @return This builder for chaining.
*/
public Builder clearNumResize() {
numResize_ = 0L;
onChanged();
return this;
}
private long numAccesses_ ;
/**
* uint64 num_accesses = 4;
* @return The numAccesses.
*/
@java.lang.Override
public long getNumAccesses() {
return numAccesses_;
}
/**
* uint64 num_accesses = 4;
* @param value The numAccesses to set.
* @return This builder for chaining.
*/
public Builder setNumAccesses(long value) {
numAccesses_ = value;
onChanged();
return this;
}
/**
* uint64 num_accesses = 4;
* @return This builder for chaining.
*/
public Builder clearNumAccesses() {
numAccesses_ = 0L;
onChanged();
return this;
}
private long numCollisions_ ;
/**
* uint64 num_collisions = 5;
* @return The numCollisions.
*/
@java.lang.Override
public long getNumCollisions() {
return numCollisions_;
}
/**
* uint64 num_collisions = 5;
* @param value The numCollisions to set.
* @return This builder for chaining.
*/
public Builder setNumCollisions(long value) {
numCollisions_ = value;
onChanged();
return this;
}
/**
* uint64 num_collisions = 5;
* @return This builder for chaining.
*/
public Builder clearNumCollisions() {
numCollisions_ = 0L;
onChanged();
return this;
}
private long usedMemory_ ;
/**
* uint64 used_memory = 6;
* @return The usedMemory.
*/
@java.lang.Override
public long getUsedMemory() {
return usedMemory_;
}
/**
* uint64 used_memory = 6;
* @param value The usedMemory to set.
* @return This builder for chaining.
*/
public Builder setUsedMemory(long value) {
usedMemory_ = value;
onChanged();
return this;
}
/**
* uint64 used_memory = 6;
* @return This builder for chaining.
*/
public Builder clearUsedMemory() {
usedMemory_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cz.proto.HashTableStats)
}
// @@protoc_insertion_point(class_scope:cz.proto.HashTableStats)
private static final cz.proto.HashTableStats DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cz.proto.HashTableStats();
}
public static cz.proto.HashTableStats getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HashTableStats parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HashTableStats(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cz.proto.HashTableStats getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy