congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
HeartbeatTxnRangeRequest
Code IndexAdd Tabnine to your IDE (free)

How to use
HeartbeatTxnRangeRequest
in
org.apache.hadoop.hive.metastore.api

Best Java code snippets using org.apache.hadoop.hive.metastore.api.HeartbeatTxnRangeRequest (Showing top 20 results out of 315)

origin: apache/hive

public HeartbeatTxnRangeRequest deepCopy() {
 return new HeartbeatTxnRangeRequest(this);
}
origin: apache/hive

public Object getFieldValue(_Fields field) {
 switch (field) {
 case MIN:
  return getMin();
 case MAX:
  return getMax();
 }
 throw new IllegalStateException();
}
origin: apache/hive

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

public HeartbeatTxnRangeRequest(
 long min,
 long max)
{
 this();
 this.min = min;
 setMinIsSet(true);
 this.max = max;
 setMaxIsSet(true);
}
origin: apache/hive

public void setFieldValue(_Fields field, Object value) {
 switch (field) {
 case MIN:
  if (value == null) {
   unsetMin();
  } else {
   setMin((Long)value);
  }
  break;
 case MAX:
  if (value == null) {
   unsetMax();
  } else {
   setMax((Long)value);
  }
  break;
 }
}
origin: apache/hive

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!isSetMin()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'min' is unset! Struct:" + toString());
 }
 if (!isSetMax()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'max' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}
origin: apache/hive

   if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
    struct.min = iprot.readI64();
    struct.setMinIsSet(true);
   } else { 
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
   if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
    struct.max = iprot.readI64();
    struct.setMaxIsSet(true);
   } else { 
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
struct.validate();
origin: apache/hive

/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
 if (field == null) {
  throw new IllegalArgumentException();
 }
 switch (field) {
 case MIN:
  return isSetMin();
 case MAX:
  return isSetMax();
 }
 throw new IllegalStateException();
}
origin: apache/hive

private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
 try {
  // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
  __isset_bitfield = 0;
  read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
 } catch (org.apache.thrift.TException te) {
  throw new java.io.IOException(te);
 }
}
origin: apache/hive

public void setMax(long max) {
 this.max = max;
 setMaxIsSet(true);
}
origin: com.facebook.presto.hive/hive-apache

public void setFieldValue(_Fields field, Object value) {
 switch (field) {
 case MIN:
  if (value == null) {
   unsetMin();
  } else {
   setMin((Long)value);
  }
  break;
 case MAX:
  if (value == null) {
   unsetMax();
  } else {
   setMax((Long)value);
  }
  break;
 }
}
origin: apache/hive

@Override
public void clear() {
 setMinIsSet(false);
 this.min = 0;
 setMaxIsSet(false);
 this.max = 0;
}
origin: com.facebook.presto.hive/hive-apache

public void validate() throws org.apache.thrift.TException {
 // check for required fields
 if (!isSetMin()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'min' is unset! Struct:" + toString());
 }
 if (!isSetMax()) {
  throw new org.apache.thrift.protocol.TProtocolException("Required field 'max' is unset! Struct:" + toString());
 }
 // check for sub-struct validity
}
origin: org.apache.hive/hive-standalone-metastore

   if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
    struct.min = iprot.readI64();
    struct.setMinIsSet(true);
   } else { 
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
   if (schemeField.type == org.apache.thrift.protocol.TType.I64) {
    struct.max = iprot.readI64();
    struct.setMaxIsSet(true);
   } else { 
    org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
struct.validate();
origin: apache/hive

@Override
public int compareTo(HeartbeatTxnRangeRequest other) {
 if (!getClass().equals(other.getClass())) {
  return getClass().getName().compareTo(other.getClass().getName());
 }
 int lastComparison = 0;
 lastComparison = Boolean.valueOf(isSetMin()).compareTo(other.isSetMin());
 if (lastComparison != 0) {
  return lastComparison;
 }
 if (isSetMin()) {
  lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.min, other.min);
  if (lastComparison != 0) {
   return lastComparison;
  }
 }
 lastComparison = Boolean.valueOf(isSetMax()).compareTo(other.isSetMax());
 if (lastComparison != 0) {
  return lastComparison;
 }
 if (isSetMax()) {
  lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max, other.max);
  if (lastComparison != 0) {
   return lastComparison;
  }
 }
 return 0;
}
origin: org.spark-project.hive/hive-metastore

private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
 try {
  // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
  __isset_bitfield = 0;
  read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
 } catch (org.apache.thrift.TException te) {
  throw new java.io.IOException(te);
 }
}
origin: com.facebook.presto.hive/hive-apache

public void setMax(long max) {
 this.max = max;
 setMaxIsSet(true);
}
origin: org.apache.hive/hive-standalone-metastore

public void setFieldValue(_Fields field, Object value) {
 switch (field) {
 case MIN:
  if (value == null) {
   unsetMin();
  } else {
   setMin((Long)value);
  }
  break;
 case MAX:
  if (value == null) {
   unsetMax();
  } else {
   setMax((Long)value);
  }
  break;
 }
}
origin: apache/hive

 @Override
 public void read(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeRequest struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.min = iprot.readI64();
  struct.setMinIsSet(true);
  struct.max = iprot.readI64();
  struct.setMaxIsSet(true);
 }
}
origin: apache/hive

int numTxnsToHeartbeat = (int) (rqst.getMax() - rqst.getMin() + 1);
List<Long> txnIds = new ArrayList<>(numTxnsToHeartbeat);
for (long txn = rqst.getMin(); txn <= rqst.getMax(); txn++) {
 txnIds.add(txn);
for (long txn = rqst.getMin(); txn <= rqst.getMax(); txn++) {
 try {
  heartbeatTxn(dbConn, txn);
org.apache.hadoop.hive.metastore.apiHeartbeatTxnRangeRequest

Most used methods

  • <init>
    Performs a deep copy on other.
  • getMax
  • getMin
  • equals
  • isSetMax
    Returns true if field max is set (has been assigned a value) and false otherwise
  • isSetMin
    Returns true if field min is set (has been assigned a value) and false otherwise
  • read
  • setMax
  • setMaxIsSet
  • setMin
  • setMinIsSet
  • toString
  • setMinIsSet,
  • toString,
  • unsetMax,
  • unsetMin,
  • validate,
  • write

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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