org.apache.hadoop.hive.metastore.api.PartitionEventType Java Examples
The following examples show how to use
org.apache.hadoop.hive.metastore.api.PartitionEventType.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: GlueMetastoreClientDelegate.java From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 | 5 votes |
public boolean isPartitionMarkedForEvent( String dbName, String tblName, Map<String, String> partKVs, PartitionEventType eventType ) throws TException { throw new UnsupportedOperationException("isPartitionMarkedForEvent is not supported"); }
Example #2
Source File: GlueMetastoreClientDelegate.java From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 | 5 votes |
public void markPartitionForEvent( String dbName, String tblName, Map<String, String> partKeyValues, PartitionEventType eventType ) throws TException { throw new UnsupportedOperationException("markPartitionForEvent is not supported"); }
Example #3
Source File: AWSCatalogMetastoreClient.java From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 | 5 votes |
@Override public void markPartitionForEvent( String dbName, String tblName, Map<String, String> partKVs, PartitionEventType eventType ) throws MetaException, NoSuchObjectException, TException, UnknownTableException, UnknownDBException, UnknownPartitionException, InvalidPartitionException { glueMetastoreClientDelegate.markPartitionForEvent(dbName, tblName, partKVs, eventType); }
Example #4
Source File: AWSCatalogMetastoreClient.java From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 | 5 votes |
@Override public void markPartitionForEvent( String dbName, String tblName, Map<String, String> partKVs, PartitionEventType eventType ) throws MetaException, NoSuchObjectException, TException, UnknownTableException, UnknownDBException, UnknownPartitionException, InvalidPartitionException { glueMetastoreClientDelegate.markPartitionForEvent(dbName, tblName, partKVs, eventType); }
Example #5
Source File: FederatedHMSHandler.java From waggle-dance with Apache License 2.0 | 5 votes |
@Override @Loggable(value = Loggable.DEBUG, skipResult = true, name = INVOCATION_LOG_NAME) public void markPartitionForEvent( String db_name, String tbl_name, Map<String, String> part_vals, PartitionEventType eventType) throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, TException { DatabaseMapping mapping = checkWritePermissions(db_name); mapping .getClient() .markPartitionForEvent(mapping.transformInboundDatabaseName(db_name), tbl_name, part_vals, eventType); }
Example #6
Source File: FederatedHMSHandler.java From waggle-dance with Apache License 2.0 | 5 votes |
@Override @Loggable(value = Loggable.DEBUG, skipResult = true, name = INVOCATION_LOG_NAME) public boolean isPartitionMarkedForEvent( String db_name, String tbl_name, Map<String, String> part_vals, PartitionEventType eventType) throws MetaException, NoSuchObjectException, UnknownDBException, UnknownTableException, UnknownPartitionException, InvalidPartitionException, TException { DatabaseMapping mapping = databaseMappingService.databaseMapping(db_name); return mapping .getClient() .isPartitionMarkedForEvent(mapping.transformInboundDatabaseName(db_name), tbl_name, part_vals, eventType); }
Example #7
Source File: FederatedHMSHandlerTest.java From waggle-dance with Apache License 2.0 | 5 votes |
@Test public void markPartitionForEvent() throws TException { Map<String, String> partitionValues = new HashMap<>(); PartitionEventType partitionEventType = PartitionEventType.findByValue(1); handler.markPartitionForEvent(DB_P, "table", partitionValues, partitionEventType); verify(primaryMapping).checkWritePermissions(DB_P); verify(primaryClient).markPartitionForEvent(DB_P, "table", partitionValues, partitionEventType); }
Example #8
Source File: FederatedHMSHandlerTest.java From waggle-dance with Apache License 2.0 | 5 votes |
@Test public void isPartitionMarkedForEvent() throws TException { Map<String, String> partitionValues = new HashMap<>(); PartitionEventType partitionEventType = PartitionEventType.findByValue(1); when(primaryClient.isPartitionMarkedForEvent(DB_P, "table", partitionValues, partitionEventType)).thenReturn(true); boolean result = handler.isPartitionMarkedForEvent(DB_P, "table", partitionValues, partitionEventType); assertThat(result, is(true)); }
Example #9
Source File: CatalogThriftHiveMetastore.java From metacat with Apache License 2.0 | 5 votes |
/** * {@inheritDoc} */ @Override public boolean isPartitionMarkedForEvent( final String dbName, final String tblName, final Map<String, String> partVals, final PartitionEventType eventType ) throws TException { throw unimplemented("isPartitionMarkedForEvent", new Object[]{dbName, tblName, partVals, eventType}); }
Example #10
Source File: CatalogThriftHiveMetastore.java From metacat with Apache License 2.0 | 5 votes |
/** * {@inheritDoc} */ @Override public void markPartitionForEvent(final String dbName, final String tblName, final Map<String, String> partVals, final PartitionEventType eventType) throws TException { throw unimplemented("markPartitionForEvent", new Object[]{dbName, tblName, partVals, eventType}); }
Example #11
Source File: AWSCatalogMetastoreClient.java From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 | 4 votes |
@Override public boolean isPartitionMarkedForEvent(String dbName, String tblName, Map<String, String> partKVs, PartitionEventType eventType) throws MetaException, NoSuchObjectException, TException, UnknownTableException, UnknownDBException, UnknownPartitionException, InvalidPartitionException { return glueMetastoreClientDelegate.isPartitionMarkedForEvent(dbName, tblName, partKVs, eventType); }
Example #12
Source File: AWSCatalogMetastoreClient.java From aws-glue-data-catalog-client-for-apache-hive-metastore with Apache License 2.0 | 4 votes |
@Override public boolean isPartitionMarkedForEvent(String dbName, String tblName, Map<String, String> partKVs, PartitionEventType eventType) throws MetaException, NoSuchObjectException, TException, UnknownTableException, UnknownDBException, UnknownPartitionException, InvalidPartitionException { return glueMetastoreClientDelegate.isPartitionMarkedForEvent(dbName, tblName, partKVs, eventType); }