Package org.hivedb.meta.persistence

Examples of org.hivedb.meta.persistence.PartitionDimensionDao$PartitionDimensionRowMapper


    this.provider = provider;
  }

  public DbDirectory getDirectory(String hiveConfigurationUri) {
    DataSource dataSource = provider.getDataSource(hiveConfigurationUri);
    return new DbDirectory(new PartitionDimensionDao(dataSource).get(), dataSource);
  }
View Full Code Here


@Config("hive_default")
public class TestPartitionDimensionPersistence extends HiveTest {

  @Test
  public void testCreate() throws Exception {
    PartitionDimensionDao dao = new PartitionDimensionDao(getDataSource(getConnectString(getHiveDatabaseName())));
    int initialSize = dao.loadAll().size();
    final PartitionDimension d = new PartitionDimension(Hive.NEW_OBJECT_ID, getHive().getPartitionDimension().getName(), Types.INTEGER, getConnectString(getHiveDatabaseName()), new ArrayList<Resource>());
    dao.create(d);
    assertTrue(d.getId() > 0);
    assertEquals(initialSize + 1, dao.loadAll().size());
  }
View Full Code Here

TOP

Related Classes of org.hivedb.meta.persistence.PartitionDimensionDao$PartitionDimensionRowMapper

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.