Tabnine Logo
org.apache.hive.hcatalog.messaging
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.hive.hcatalog.messaging

Best Java code snippets using org.apache.hive.hcatalog.messaging (Showing top 20 results out of 315)

origin: apache/hive

/**
 * Getter for MessageFactory instance.
 */
public static MessageFactory getInstance() {
 if (instance == null) {
  instance = getInstance(HCAT_MESSAGE_FACTORY_IMPL);
 }
 return instance;
}
origin: apache/hive

 @Override
 public HCatEventMessage checkValid() {
  if (getTable() == null)
   throw new IllegalStateException("Table name unset.");
  return super.checkValid();
 }
}
origin: apache/hive

@Override
public HCatEventMessage checkValid() {
 if (getTable() == null) throw new IllegalStateException("Table name unset.");
 return super.checkValid();
}
origin: apache/hive

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 CREATE_FUNCTION:
 return getCreateFunctionMessage(messageBody);
case DROP_FUNCTION:
 return getDropFunctionMessage(messageBody);
case INSERT:
 return getInsertMessage(messageBody);
default:
 throw new IllegalArgumentException("Unsupported event-type: " + eventTypeString);
origin: apache/hive

 @Override
 public HCatEventMessage checkValid() {
  if (getTable() == null)
   throw new IllegalStateException("Table name unset.");
  if (getPartitions() == null)
   throw new IllegalStateException("Partition-list unset.");
  return super.checkValid();
 }
}
origin: apache/hive

 @Override
 public HCatEventMessage checkValid() {
  if (getTable() == null)
   throw new IllegalStateException("Table name unset.");
  if (getPartitions() == null)
   throw new IllegalStateException("Partition-list unset.");
  return super.checkValid();
 }
}
origin: apache/hive

 @Override
 public HCatEventMessage checkValid() {
  if (getTable() == null) throw new IllegalStateException("Table name unset.");
  if (getKeyValues() == null) throw new IllegalStateException("Partition values unset");
  return super.checkValid();
 }
}
origin: apache/hive

public AlterTableReplicationTask(HCatNotificationEvent event) {
 super(event);
 validateEventType(event, HCatConstants.HCAT_ALTER_TABLE_EVENT);
 alterTableMessage = messageFactory.getDeserializer().getAlterTableMessage(event.getMessage());
}
origin: apache/hive

public DropDatabaseReplicationTask(HCatNotificationEvent event) {
 super(event);
 validateEventType(event, HCatConstants.HCAT_DROP_DATABASE_EVENT);
 dropDatabaseMessage = messageFactory.getDeserializer().getDropDatabaseMessage(event.getMessage());
}
origin: apache/hive

public CreateTableReplicationTask(HCatNotificationEvent event) {
 super(event);
 validateEventType(event, HCatConstants.HCAT_CREATE_TABLE_EVENT);
 createTableMessage = messageFactory.getDeserializer().getCreateTableMessage(event.getMessage());
}
origin: apache/hive

public AlterPartitionReplicationTask(HCatNotificationEvent event) {
 super(event);
 validateEventType(event,HCatConstants.HCAT_ALTER_PARTITION_EVENT);
 alterPartitionMessage = messageFactory.getDeserializer().getAlterPartitionMessage(event.getMessage());
}
origin: apache/hive

public DropPartitionReplicationTask(HCatNotificationEvent event) {
 super(event);
 validateEventType(event, HCatConstants.HCAT_DROP_PARTITION_EVENT);
 dropPartitionMessage = messageFactory.getDeserializer().getDropPartitionMessage(event.getMessage());
}
origin: apache/hive

public InsertReplicationTask(HCatNotificationEvent event) {
 super(event);
 validateEventType(event, HCatConstants.HCAT_INSERT_EVENT);
 insertMessage = messageFactory.getDeserializer().getInsertMessage(event.getMessage());
}
origin: apache/hive

public DropTableReplicationTask(HCatNotificationEvent event) {
 super(event);
 validateEventType(event, HCatConstants.HCAT_DROP_TABLE_EVENT);
 dropTableMessage = messageFactory.getDeserializer().getDropTableMessage(event.getMessage());
}
origin: apache/hive

public AddPartitionReplicationTask(HCatNotificationEvent event) {
 super(event);
 validateEventType(event,HCatConstants.HCAT_ADD_PARTITION_EVENT);
 addPartitionMessage = messageFactory.getDeserializer().getAddPartitionMessage(event.getMessage());
}
origin: apache/hive

 @Override
 public HCatEventMessage checkValid() {
  if (getTable() == null)
   throw new IllegalStateException("Table name unset.");
  return super.checkValid();
 }
}
origin: apache/hive

 @Override
 public HCatEventMessage checkValid() {
  if (getTable() == null)
   throw new IllegalStateException("Table name unset.");
  return super.checkValid();
 }
}
origin: apache/hive

public abstract MessageDeserializer getDeserializer();
origin: apache/hive

public boolean needsStagingDirs(){
 // we need staging directories as long as a single partition needed addition
 return (!addPartitionMessage.getPartitions().isEmpty());
}
origin: apache/hive

@Override
public void onAlterPartition(AlterPartitionEvent ape) throws MetaException {
 if (ape.getStatus()) {
  Partition before = ape.getOldPartition();
  Partition after = ape.getNewPartition();
  String topicName = getTopicName(ape.getTable());
  send(messageFactory.buildAlterPartitionMessage(ape.getTable(),before, after,
      ape.getWriteId()), topicName);
 }
}
org.apache.hive.hcatalog.messaging

Most used classes

  • AddPartitionMessage
    The HCat message sent when partition(s) are added to a table.
  • MessageFactory
    Abstract Factory for the construction of HCatalog message instances.
  • AlterPartitionMessage
    HCat message sent when a table is Altered.
  • AlterTableMessage
    HCat message sent when a table is Altered.
  • CreateTableMessage
    HCat message sent when a table is created in HCatalog.
  • DropTableMessage,
  • InsertMessage,
  • MessageDeserializer,
  • HCatEventMessage$EventType,
  • HCatEventMessage,
  • JSONAddPartitionMessage,
  • DropDatabaseMessage,
  • JSONAlterPartitionMessage,
  • JSONAlterTableMessage,
  • JSONCreateDatabaseMessage,
  • JSONCreateTableMessage,
  • JSONDropDatabaseMessage,
  • JSONDropPartitionMessage,
  • JSONDropTableMessage
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