@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((isSetServerName()) ? 131071 : 524287); if (isSetServerName()) hashCode = hashCode * 8191 + serverName.hashCode(); hashCode = hashCode * 8191 + ((isSetRegionInfo()) ? 131071 : 524287); if (isSetRegionInfo()) hashCode = hashCode * 8191 + regionInfo.hashCode(); return hashCode; }
/** * Performs a deep copy on <i>other</i>. */ public THRegionLocation(THRegionLocation other) { if (other.isSetServerName()) { this.serverName = new TServerName(other.serverName); } if (other.isSetRegionInfo()) { this.regionInfo = new THRegionInfo(other.regionInfo); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, THRegionLocation struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot; struct.serverName = new TServerName(); struct.serverName.read(iprot); struct.setServerNameIsSet(true); struct.regionInfo = new THRegionInfo(); struct.regionInfo.read(iprot); struct.setRegionInfoIsSet(true); } }
@Override public void clear() { setMinStampIsSet(false); this.minStamp = 0; setMaxStampIsSet(false); this.maxStamp = 0; }
public TDelete setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; }
@Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TIncrement) return this.equals((TIncrement)that); return false; }
public TPut setTimestamp(long timestamp) { this.timestamp = timestamp; setTimestampIsSet(true); return this; }
@Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TResult) return this.equals((TResult)that); return false; }
public boolean equals(java.lang.Object other) { if (other instanceof TMutation) { return equals((TMutation)other); } else { return false; } }
/** * Performs a deep copy on <i>other</i>. */ public TServerName(TServerName other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetHostName()) { this.hostName = other.hostName; } this.port = other.port; this.startCode = other.startCode; }
@Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TServerName) return this.equals((TServerName)that); return false; }
public static Compression.Algorithm compressionAlgorithmFromThrift(TCompressionAlgorithm in) { switch (in.getValue()) { case 0: return Compression.Algorithm.LZO; case 1: return Compression.Algorithm.GZ; case 2: return Compression.Algorithm.NONE; case 3: return Compression.Algorithm.SNAPPY; case 4: return Compression.Algorithm.LZ4; case 5: return Compression.Algorithm.BZIP2; case 6: return Compression.Algorithm.ZSTD; default: return Compression.Algorithm.NONE; } }
public static DataBlockEncoding dataBlockEncodingFromThrift(TDataBlockEncoding in) { switch (in.getValue()) { case 0: return DataBlockEncoding.NONE; case 2: return DataBlockEncoding.PREFIX; case 3: return DataBlockEncoding.DIFF; case 4: return DataBlockEncoding.FAST_DIFF; case 7: return DataBlockEncoding.ROW_INDEX_V1; default: return DataBlockEncoding.NONE; } }
@Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof TTableName) return this.equals((TTableName)that); return false; }
public TColumnFamilyDescriptor setMaxVersions(int maxVersions) { this.maxVersions = maxVersions; setMaxVersionsIsSet(true); return this; }
public TColumnFamilyDescriptor setMinVersions(int minVersions) { this.minVersions = minVersions; setMinVersionsIsSet(true); return this; }
public TColumnFamilyDescriptor setInMemory(boolean inMemory) { this.inMemory = inMemory; setInMemoryIsSet(true); return this; }