Tabnine Logo
HCatEventMessage$EventType.valueOf
Code IndexAdd Tabnine to your IDE (free)

How to use
valueOf
method
in
org.apache.hive.hcatalog.messaging.HCatEventMessage$EventType

Best Java code snippets using org.apache.hive.hcatalog.messaging.HCatEventMessage$EventType.valueOf (Showing top 4 results out of 315)

origin: apache/hive

switch (HCatEventMessage.EventType.valueOf(eventTypeString)) {
case CREATE_DATABASE:
 return getCreateDatabaseMessage(messageBody);
origin: com.github.hyukjinkwon.hcatalog/hive-hcatalog-server-extensions

/**
 * Method to construct HCatEventMessage from string.
 */
public HCatEventMessage getHCatEventMessage(String eventTypeString, String messageBody) {
 switch (HCatEventMessage.EventType.valueOf(eventTypeString)) {
 case CREATE_DATABASE:
  return getCreateDatabaseMessage(messageBody);
 case DROP_DATABASE:
  return getDropDatabaseMessage(messageBody);
 case CREATE_TABLE:
  return getCreateTableMessage(messageBody);
 case ALTER_TABLE:
  return getAlterTableMessage(messageBody);
 case DROP_TABLE:
  return getDropTableMessage(messageBody);
 case ADD_PARTITION:
  return getAddPartitionMessage(messageBody);
 case ALTER_PARTITION:
  return getAlterPartitionMessage(messageBody);
 case DROP_PARTITION:
  return getDropPartitionMessage(messageBody);
 case INSERT:
  return getInsertMessage(messageBody);
 default:
  throw new IllegalArgumentException("Unsupported event-type: " + eventTypeString);
 }
}
origin: org.spark-project.hive.hcatalog/hive-hcatalog-server-extensions

/**
 * Method to construct HCatEventMessage from string.
 */
public HCatEventMessage getHCatEventMessage(String eventTypeString, String messageBody) {
 switch (HCatEventMessage.EventType.valueOf(eventTypeString)) {
 case CREATE_DATABASE:
  return getCreateDatabaseMessage(messageBody);
 case DROP_DATABASE:
  return getDropDatabaseMessage(messageBody);
 case CREATE_TABLE:
  return getCreateTableMessage(messageBody);
 case ALTER_TABLE:
  return getAlterTableMessage(messageBody);
 case DROP_TABLE:
  return getDropTableMessage(messageBody);
 case ADD_PARTITION:
  return getAddPartitionMessage(messageBody);
 case ALTER_PARTITION:
  return getAlterPartitionMessage(messageBody);
 case DROP_PARTITION:
  return getDropPartitionMessage(messageBody);
 case INSERT:
  return getInsertMessage(messageBody);
 default:
  throw new IllegalArgumentException("Unsupported event-type: " + eventTypeString);
 }
}
origin: org.apache.hive.hcatalog/hive-hcatalog-server-extensions

switch (HCatEventMessage.EventType.valueOf(eventTypeString)) {
case CREATE_DATABASE:
 return getCreateDatabaseMessage(messageBody);
org.apache.hive.hcatalog.messagingHCatEventMessage$EventTypevalueOf

Popular methods of HCatEventMessage$EventType

  • toString
  • equals

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • String (java.lang)
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JOptionPane (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • 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