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

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

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

origin: apache/hive

public static FireEventRequestData insertData(InsertEventRequestData value) {
 FireEventRequestData x = new FireEventRequestData();
 x.setInsertData(value);
 return x;
}
origin: apache/hive

@Override
public int compareTo(FireEventRequestData other) {
 int lastComparison = org.apache.thrift.TBaseHelper.compareTo(getSetField(), other.getSetField());
 if (lastComparison == 0) {
  return org.apache.thrift.TBaseHelper.compareTo(getFieldValue(), other.getFieldValue());
 }
 return lastComparison;
}
origin: apache/hive

public boolean equals(Object other) {
 if (other instanceof FireEventRequestData) {
  return equals((FireEventRequestData)other);
 } else {
  return false;
 }
}
origin: apache/hive

public InsertEventRequestData getInsertData() {
 if (getSetField() == _Fields.INSERT_DATA) {
  return (InsertEventRequestData)getFieldValue();
 } else {
  throw new RuntimeException("Cannot get field 'insertData' because union is currently set to " + getFieldDesc(getSetField()).name);
 }
}
origin: apache/hive

case 2: // DATA
 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
  struct.data = new FireEventRequestData();
  struct.data.read(iprot);
  struct.setDataIsSet(true);
 } else { 
origin: apache/hive

@Override
public FireEventResponse fire_listener_event(FireEventRequest rqst) throws TException {
 switch (rqst.getData().getSetField()) {
 case INSERT_DATA:
  String catName = rqst.isSetCatName() ? rqst.getCatName() : getDefaultCatalog(conf);
  InsertEvent event =
    new InsertEvent(catName, rqst.getDbName(), rqst.getTableName(), rqst.getPartitionVals(),
      rqst.getData().getInsertData(), rqst.isSuccessful(), this);
  /*
   * The transactional listener response will be set already on the event, so there is not need
   * to pass the response to the non-transactional listener.
   */
  MetaStoreListenerNotifier.notifyEvent(transactionalListeners, EventType.INSERT, event);
  MetaStoreListenerNotifier.notifyEvent(listeners, EventType.INSERT, event);
  return new FireEventResponse();
 default:
  throw new TException("Event type " + rqst.getData().getSetField().toString()
    + " not currently supported.");
 }
}
origin: apache/hive

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

private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
 try {
  write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
 } catch (org.apache.thrift.TException te) {
  throw new java.io.IOException(te);
 }
}
origin: apache/hive

private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
 try {
  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

struct.successful = iprot.readBool();
struct.setSuccessfulIsSet(true);
struct.data = new FireEventRequestData();
struct.data.read(iprot);
struct.setDataIsSet(true);
BitSet incoming = iprot.readBitSet(4);
origin: com.facebook.presto.hive/hive-apache

public InsertEventRequestData getInsertData() {
 if (getSetField() == _Fields.INSERT_DATA) {
  return (InsertEventRequestData)getFieldValue();
 } else {
  throw new RuntimeException("Cannot get field 'insertData' because union is currently set to " + getFieldDesc(getSetField()).name);
 }
}
origin: org.spark-project.hive/hive-metastore

 @Override
 public FireEventResponse fire_listener_event(FireEventRequest rqst) throws TException {
  switch (rqst.getData().getSetField()) {
   case INSERT_DATA:
    InsertEvent event = new InsertEvent(rqst.getDbName(), rqst.getTableName(),
      rqst.getPartitionVals(), rqst.getData().getInsertData().getFilesAdded(),
      rqst.isSuccessful(), this);
    for (MetaStoreEventListener listener : listeners) {
     listener.onInsert(event);
    }
    return new FireEventResponse();
   default:
    throw new TException("Event type " + rqst.getData().getSetField().toString() +
      " not currently supported.");
  }
 }
}
origin: apache/hive

/**
 * Performs a deep copy on <i>other</i>.
 */
public FireEventRequest(FireEventRequest other) {
 __isset_bitfield = other.__isset_bitfield;
 this.successful = other.successful;
 if (other.isSetData()) {
  this.data = new FireEventRequestData(other.data);
 }
 if (other.isSetDbName()) {
  this.dbName = other.dbName;
 }
 if (other.isSetTableName()) {
  this.tableName = other.tableName;
 }
 if (other.isSetPartitionVals()) {
  List<String> __this__partitionVals = new ArrayList<String>(other.partitionVals);
  this.partitionVals = __this__partitionVals;
 }
 if (other.isSetCatName()) {
  this.catName = other.catName;
 }
}
origin: apache/hive

if (struct.data != null) {
 oprot.writeFieldBegin(DATA_FIELD_DESC);
 struct.data.write(oprot);
 oprot.writeFieldEnd();
origin: com.facebook.presto.hive/hive-apache

private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
 try {
  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

FireEventRequestData data = new FireEventRequestData();
InsertEventRequestData insertData = new InsertEventRequestData();
insertData.setReplace(replace);
data.setInsertData(insertData);
if (newFiles != null && !newFiles.isEmpty()) {
 addInsertFileInformation(newFiles, fileSystem, insertData);
origin: apache/hive

public boolean equals(FireEventRequestData other) {
 return other != null && getSetField() == other.getSetField() && getFieldValue().equals(other.getFieldValue());
}
origin: com.facebook.presto.hive/hive-apache

case 2: // DATA
 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
  struct.data = new FireEventRequestData();
  struct.data.read(iprot);
  struct.setDataIsSet(true);
 } else { 
origin: org.spark-project.hive/hive-metastore

public InsertEventRequestData getInsertData() {
 if (getSetField() == _Fields.INSERT_DATA) {
  return (InsertEventRequestData)getFieldValue();
 } else {
  throw new RuntimeException("Cannot get field 'insertData' because union is currently set to " + getFieldDesc(getSetField()).name);
 }
}
origin: com.facebook.presto.hive/hive-apache

 @Override
 public FireEventResponse fire_listener_event(FireEventRequest rqst) throws TException {
  switch (rqst.getData().getSetField()) {
   case INSERT_DATA:
    InsertEvent event = new InsertEvent(rqst.getDbName(), rqst.getTableName(),
      rqst.getPartitionVals(), rqst.getData().getInsertData().getFilesAdded(),
      rqst.isSuccessful(), this);
    for (MetaStoreEventListener listener : listeners) {
     listener.onInsert(event);
    }
    return new FireEventResponse();
   default:
    throw new TException("Event type " + rqst.getData().getSetField().toString() +
      " not currently supported.");
  }
 }
}
org.apache.hadoop.hive.metastore.apiFireEventRequestData

Most used methods

  • <init>
  • setInsertData
  • getSetField
  • equals
  • getFieldDesc
  • getFieldValue
  • getInsertData
  • read
  • write

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JComboBox (javax.swing)
  • Top plugins for WebStorm
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