list.add(present_type); if (present_type) list.add(type.getValue());
list.add(present_type); if (present_type) list.add(type.getValue());
if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd();
oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd();
@Override public void write(org.apache.thrift.protocol.TProtocol prot, LockComponent struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.type.getValue()); oprot.writeI32(struct.level.getValue()); oprot.writeString(struct.dbname);
oprot.writeString(struct.dbname); oprot.writeI32(struct.state.getValue()); oprot.writeI32(struct.type.getValue()); oprot.writeI64(struct.lastheartbeat); oprot.writeString(struct.user);
"Thought all the non native tables have an instance of storage handler"); LockType lockType = storageHandler.getLockType(output); if (null == LockType.findByValue(lockType.getValue())) { throw new IllegalArgumentException(String .format("Lock type [%s] for Database.Table [%s.%s] is unknown", lockType, t.getDbName(),
if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd();
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_type = true && (isSetType()); builder.append(present_type); if (present_type) builder.append(type.getValue()); boolean present_level = true && (isSetLevel()); builder.append(present_level); if (present_level) builder.append(level.getValue()); boolean present_dbname = true && (isSetDbname()); builder.append(present_dbname); if (present_dbname) builder.append(dbname); boolean present_tablename = true && (isSetTablename()); builder.append(present_tablename); if (present_tablename) builder.append(tablename); boolean present_partitionname = true && (isSetPartitionname()); builder.append(present_partitionname); if (present_partitionname) builder.append(partitionname); return builder.toHashCode(); }
if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd();
list.add(present_type); if (present_type) list.add(type.getValue());
builder.append(present_type); if (present_type) builder.append(type.getValue());
if (struct.type != null) { oprot.writeFieldBegin(TYPE_FIELD_DESC); oprot.writeI32(struct.type.getValue()); oprot.writeFieldEnd();
@Override public void write(org.apache.thrift.protocol.TProtocol prot, LockComponent struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.type.getValue()); oprot.writeI32(struct.level.getValue()); oprot.writeString(struct.dbname); BitSet optionals = new BitSet(); if (struct.isSetTablename()) { optionals.set(0); } if (struct.isSetPartitionname()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetTablename()) { oprot.writeString(struct.tablename); } if (struct.isSetPartitionname()) { oprot.writeString(struct.partitionname); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, LockComponent struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.type.getValue()); oprot.writeI32(struct.level.getValue()); oprot.writeString(struct.dbname); BitSet optionals = new BitSet(); if (struct.isSetTablename()) { optionals.set(0); } if (struct.isSetPartitionname()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetTablename()) { oprot.writeString(struct.tablename); } if (struct.isSetPartitionname()) { oprot.writeString(struct.partitionname); } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, LockComponent struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.type.getValue()); oprot.writeI32(struct.level.getValue()); oprot.writeString(struct.dbname);
oprot.writeString(struct.dbname); oprot.writeI32(struct.state.getValue()); oprot.writeI32(struct.type.getValue()); oprot.writeI64(struct.lastheartbeat); oprot.writeString(struct.user);
oprot.writeString(struct.dbname); oprot.writeI32(struct.state.getValue()); oprot.writeI32(struct.type.getValue()); oprot.writeI64(struct.lastheartbeat); oprot.writeString(struct.user);
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_type = true && (isSetType()); builder.append(present_type); if (present_type) builder.append(type.getValue()); boolean present_level = true && (isSetLevel()); builder.append(present_level); if (present_level) builder.append(level.getValue()); boolean present_dbname = true && (isSetDbname()); builder.append(present_dbname); if (present_dbname) builder.append(dbname); boolean present_tablename = true && (isSetTablename()); builder.append(present_tablename); if (present_tablename) builder.append(tablename); boolean present_partitionname = true && (isSetPartitionname()); builder.append(present_partitionname); if (present_partitionname) builder.append(partitionname); return builder.toHashCode(); }
builder.append(present_type); if (present_type) builder.append(type.getValue());