Package org.hivedb.meta.persistence

Examples of org.hivedb.meta.persistence.SecondaryIndexDao.loadAll()


public class TestSecondaryIndexPersistence extends HiveTest {
 
  @Test
  public void testCreate() throws Exception {
    SecondaryIndexDao d = new SecondaryIndexDao(getDataSource(getConnectString(getHiveDatabaseName())));
    int initialSize = d.loadAll().size();
    d.create(createSecondaryIndex());
    assertEquals(initialSize+1,d.loadAll().size());
  }
 
  @Test
View Full Code Here


  @Test
  public void testCreate() throws Exception {
    SecondaryIndexDao d = new SecondaryIndexDao(getDataSource(getConnectString(getHiveDatabaseName())));
    int initialSize = d.loadAll().size();
    d.create(createSecondaryIndex());
    assertEquals(initialSize+1,d.loadAll().size());
  }
 
  @Test
  public void testDelete() throws Exception {
    SecondaryIndexDao d = new SecondaryIndexDao(getDataSource(getConnectString(getHiveDatabaseName())));
View Full Code Here

  }
 
  @Test
  public void testDelete() throws Exception {
    SecondaryIndexDao d = new SecondaryIndexDao(getDataSource(getConnectString(getHiveDatabaseName())));
    int initialSize = d.loadAll().size();
    int id = d.create(createSecondaryIndex());
    assertEquals(initialSize+1,d.loadAll().size());
    SecondaryIndex s = createSecondaryIndex(id);
    s.setResource(createResource());
    d.delete(s);
View Full Code Here

  @Test
  public void testDelete() throws Exception {
    SecondaryIndexDao d = new SecondaryIndexDao(getDataSource(getConnectString(getHiveDatabaseName())));
    int initialSize = d.loadAll().size();
    int id = d.create(createSecondaryIndex());
    assertEquals(initialSize+1,d.loadAll().size());
    SecondaryIndex s = createSecondaryIndex(id);
    s.setResource(createResource());
    d.delete(s);
    assertEquals(initialSize,d.loadAll().size());
  }
View Full Code Here

    int id = d.create(createSecondaryIndex());
    assertEquals(initialSize+1,d.loadAll().size());
    SecondaryIndex s = createSecondaryIndex(id);
    s.setResource(createResource());
    d.delete(s);
    assertEquals(initialSize,d.loadAll().size());
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.