Package org.hivedb.meta.persistence

Examples of org.hivedb.meta.persistence.SecondaryIndexDao


@Config("hive_default")
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());
  }
View Full Code Here


    assertEquals(initialSize+1,d.loadAll().size());
  }
 
  @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

TOP

Related Classes of org.hivedb.meta.persistence.SecondaryIndexDao

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.