Package org.apache.hadoop.hive.metastore.events

Examples of org.apache.hadoop.hive.metastore.events.AddIndexEvent


    driver.run("create index tmptbl_i on table tmptbl(a) as 'compact' " +
        "WITH DEFERRED REBUILD IDXPROPERTIES ('prop1'='val1', 'prop2'='val2')");
    listSize += 2// creates index table internally
    assertEquals(notifyList.size(), listSize);

    AddIndexEvent addIndexEvent = (AddIndexEvent)notifyList.get(listSize - 1);
    assert addIndexEvent.getStatus();
    PreAddIndexEvent preAddIndexEvent = (PreAddIndexEvent)(preNotifyList.get(preNotifyList.size() - 3));

    Index oldIndex = msc.getIndex(dbName, "tmptbl", "tmptbl_i");

    validateAddIndex(oldIndex, addIndexEvent.getIndex());

    validateAddIndex(oldIndex, preAddIndexEvent.getIndex());

    driver.run("alter index tmptbl_i on tmptbl set IDXPROPERTIES " +
        "('prop1'='val1_new', 'prop3'='val3')");
View Full Code Here


            }
          }
          ms.rollbackTransaction();
        }
        for (MetaStoreEventListener listener : listeners) {
          AddIndexEvent addIndexEvent = new AddIndexEvent(index, success, this);
          listener.onAddIndex(addIndexEvent);
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hive.metastore.events.AddIndexEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.