use of com.scalar.db.service.StorageFactory in project scalardb by scalar-labs.
the class DistributedStorageSecondaryIndexIntegrationTestBase method beforeAll.
@BeforeAll
public void beforeAll() throws Exception {
initialize();
StorageFactory factory = StorageFactory.create(TestUtils.addSuffix(getProperties(), TEST_NAME));
admin = factory.getAdmin();
namespace = getNamespace();
secondaryIndexTypes = getSecondaryIndexTypes();
createTables();
storage = factory.getStorage();
seed = System.currentTimeMillis();
System.out.println("The seed used in the secondary index integration test is " + seed);
}
use of com.scalar.db.service.StorageFactory in project scalardb by scalar-labs.
the class DistributedStorageSinglePartitionKeyIntegrationTestBase method beforeAll.
@BeforeAll
public void beforeAll() throws Exception {
initialize();
StorageFactory factory = StorageFactory.create(TestUtils.addSuffix(getProperties(), TEST_NAME));
admin = factory.getAdmin();
namespace = getNamespace();
partitionKeyTypes = getPartitionKeyTypes();
createTables();
storage = factory.getStorage();
seed = System.currentTimeMillis();
System.out.println("The seed used in the single partition key integration test is " + seed);
}
use of com.scalar.db.service.StorageFactory in project scalardb by scalar-labs.
the class DistributedStorageWithReservedKeywordIntegrationTestBase method beforeAll.
@BeforeAll
public void beforeAll() throws ExecutionException {
StorageFactory factory = StorageFactory.create(TestUtils.addSuffix(getProperties(), TEST_NAME));
admin = factory.getAdmin();
namespace = getNamespace();
tableName = getTableName();
columnName1 = getColumnName1();
columnName2 = getColumnName2();
columnName3 = getColumnName3();
columnName4 = getColumnName4();
columnName5 = getColumnName5();
createTable();
storage = factory.getStorage();
}
use of com.scalar.db.service.StorageFactory in project scalardb by scalar-labs.
the class DistributedStorageAdminIntegrationTestBase method beforeAll.
@BeforeAll
public void beforeAll() throws Exception {
initialize();
StorageFactory factory = StorageFactory.create(TestUtils.addSuffix(getProperties(), TEST_NAME));
admin = factory.getAdmin();
namespace1 = getNamespace1();
namespace2 = getNamespace2();
namespace3 = getNamespace3();
createTables();
storage = factory.getStorage();
}
use of com.scalar.db.service.StorageFactory in project scalardb by scalar-labs.
the class DistributedStorageConditionalMutationIntegrationTestBase method beforeAll.
@BeforeAll
public void beforeAll() throws Exception {
initialize();
StorageFactory factory = StorageFactory.create(TestUtils.addSuffix(getProperties(), TEST_NAME));
admin = factory.getAdmin();
namespace = getNamespace();
createTable();
storage = factory.getStorage();
seed = System.currentTimeMillis();
System.out.println("The seed used in the conditional mutation integration test is " + seed);
operatorAndDataTypeList = getOperatorAndDataTypeListForTest();
executorService = Executors.newFixedThreadPool(getThreadNum());
}
Aggregations