Tabnine Logo
org.apache.hadoop.hbase.thrift2.generated
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.hadoop.hbase.thrift2.generated

Best Java code snippets using org.apache.hadoop.hbase.thrift2.generated (Showing top 20 results out of 315)

origin: apache/hbase

@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;
}
origin: apache/hbase

/**
 * 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);
 }
}
origin: apache/hbase

 @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);
 }
}
origin: apache/hbase

@Override
public void clear() {
 setMinStampIsSet(false);
 this.minStamp = 0;
 setMaxStampIsSet(false);
 this.maxStamp = 0;
}
origin: apache/hbase

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 // check for sub-struct validity
 if (timeRange != null) {
  timeRange.validate();
 }
 if (authorizations != null) {
  authorizations.validate();
 }
}
origin: apache/hbase

public static TMutation put(TPut value) {
 TMutation x = new TMutation();
 x.setPut(value);
 return x;
}
origin: apache/hbase

public TDelete setTimestamp(long timestamp) {
 this.timestamp = timestamp;
 setTimestampIsSet(true);
 return this;
}
origin: apache/hbase

@Override
public boolean equals(java.lang.Object that) {
 if (that == null)
  return false;
 if (that instanceof TIncrement)
  return this.equals((TIncrement)that);
 return false;
}
origin: apache/hbase

public TPut setTimestamp(long timestamp) {
 this.timestamp = timestamp;
 setTimestampIsSet(true);
 return this;
}
origin: apache/hbase

@Override
public boolean equals(java.lang.Object that) {
 if (that == null)
  return false;
 if (that instanceof TResult)
  return this.equals((TResult)that);
 return false;
}
origin: apache/hbase

@Override
public void write(org.apache.thrift.protocol.TProtocol prot, THRegionLocation struct) throws org.apache.thrift.TException {
 org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;
 struct.serverName.write(oprot);
 struct.regionInfo.write(oprot);
}
origin: apache/hbase

public boolean equals(java.lang.Object other) {
 if (other instanceof TMutation) {
  return equals((TMutation)other);
 } else {
  return false;
 }
}
origin: apache/hbase

/**
 * 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;
}
origin: apache/hbase

@Override
public boolean equals(java.lang.Object that) {
 if (that == null)
  return false;
 if (that instanceof TServerName)
  return this.equals((TServerName)that);
 return false;
}
origin: apache/hbase

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;
 }
}
origin: apache/hbase

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;
 }
}
origin: apache/hbase

@Override
public boolean equals(java.lang.Object that) {
 if (that == null)
  return false;
 if (that instanceof TTableName)
  return this.equals((TTableName)that);
 return false;
}
origin: apache/hbase

public TColumnFamilyDescriptor setMaxVersions(int maxVersions) {
 this.maxVersions = maxVersions;
 setMaxVersionsIsSet(true);
 return this;
}
origin: apache/hbase

public TColumnFamilyDescriptor setMinVersions(int minVersions) {
 this.minVersions = minVersions;
 setMinVersionsIsSet(true);
 return this;
}
origin: apache/hbase

public TColumnFamilyDescriptor setInMemory(boolean inMemory) {
 this.inMemory = inMemory;
 setInMemoryIsSet(true);
 return this;
}
org.apache.hadoop.hbase.thrift2.generated

Most used classes

  • TColumnValue
    Represents a single cell and its value.
  • TResult
    if no Result is found, row and columnValues will not be set.
  • TGet
    Used to perform Get operations on a single row. The scope can be further narrowed down by specifying
  • THBaseService$Client
  • THBaseService$Iface
  • TScan,
  • TTimeRange,
  • TColumn,
  • TColumnIncrement,
  • TDelete,
  • TIOError,
  • TIncrement,
  • TAppend,
  • TAuthorization,
  • TCellVisibility,
  • TMutation,
  • TRowMutations,
  • TColumn$TColumnStandardScheme,
  • TColumn$TColumnTupleScheme
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now