Tabnine Logo
LockType
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: apache/hive

case 1: // TYPE
 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
  struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32());
  struct.setTypeIsSet(true);
 } else { 
origin: apache/hive

list.add(present_type);
if (present_type)
 list.add(type.getValue());
origin: apache/hive

@Override
public String toString() {
 return JavaUtils.lockIdToString(extLockId) + " intLockId:" +
  intLockId + " " + JavaUtils.txnIdToString(txnId)
  + " db:" + db + " table:" + table + " partition:" +
  partition + " state:" + (state == null ? "null" : state.toString())
  + " type:" + (type == null ? "null" : type.toString());
}
private boolean isDbLock() {
origin: apache/hive

  "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(),
origin: apache/hive

if (!(this_present_type && that_present_type))
 return false;
if (!this.type.equals(that.type))
 return false;
origin: apache/hive

if (!(this_present_type && that_present_type))
 return false;
if (!this.type.equals(that.type))
 return false;
origin: apache/hive

list.add(present_type);
if (present_type)
 list.add(type.getValue());
origin: apache/hive

case 6: // TYPE
 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
  struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32());
  struct.setTypeIsSet(true);
 } else { 
origin: apache/hive

os.writeBytes(lock.getType().toString());
os.write(separator);
os.writeBytes((lock.getTxnid() == 0) ? "NULL" : Long.toString(lock.getTxnid()));
origin: org.spark-project.hive/hive-metastore

if (!(this_present_type && that_present_type))
 return false;
if (!this.type.equals(that.type))
 return false;
origin: apache/hive

if (struct.type != null) {
 oprot.writeFieldBegin(TYPE_FIELD_DESC);
 oprot.writeI32(struct.type.getValue());
 oprot.writeFieldEnd();
origin: apache/hive

@Override
public void read(org.apache.thrift.protocol.TProtocol prot, LockComponent struct) throws org.apache.thrift.TException {
 TTupleProtocol iprot = (TTupleProtocol) prot;
 struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32());
 struct.setTypeIsSet(true);
 struct.level = org.apache.hadoop.hive.metastore.api.LockLevel.findByValue(iprot.readI32());
origin: apache/drill

os.writeBytes(lock.getType().toString());
os.write(separator);
os.writeBytes((lock.getTxnid() == 0) ? "NULL" : Long.toString(lock.getTxnid()));
origin: com.facebook.presto.hive/hive-apache

if (!(this_present_type && that_present_type))
 return false;
if (!this.type.equals(that.type))
 return false;
origin: apache/hive

oprot.writeI32(struct.type.getValue());
oprot.writeFieldEnd();
origin: apache/hive

struct.state = org.apache.hadoop.hive.metastore.api.LockState.findByValue(iprot.readI32());
struct.setStateIsSet(true);
struct.type = org.apache.hadoop.hive.metastore.api.LockType.findByValue(iprot.readI32());
struct.setTypeIsSet(true);
struct.lastheartbeat = iprot.readI64();
origin: org.spark-project.hive/hive-metastore

@Override
public String toString() {
 return JavaUtils.lockIdToString(extLockId) + " intLockId:" +
  intLockId + " txnId:" + Long.toString
  (txnId) + " db:" + db + " table:" + table + " partition:" +
  partition + " state:" + (state == null ? "null" : state.toString())
  + " type:" + (type == null ? "null" : type.toString());
}
private boolean isDbLock() {
origin: org.spark-project.hive/hive-metastore

if (!(this_present_type && that_present_type))
 return false;
if (!this.type.equals(that.type))
 return false;
origin: apache/hive

@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);
origin: com.facebook.presto.hive/hive-apache

case 1: // TYPE
 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
  struct.type = LockType.findByValue(iprot.readI32());
  struct.setTypeIsSet(true);
 } else { 
org.apache.hadoop.hive.metastore.apiLockType

Most used methods

  • findByValue
    Find a the enum type by its integer value, as defined in the Thrift IDL.
  • getValue
    Get the integer value of this enum value, as defined in the Thrift IDL.
  • toString
  • equals

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Join (org.hibernate.mapping)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 12 Jupyter Notebook extensions
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