Search in sources :

Example 1 with NamingConvention

use of cz.o2.proxima.direct.bulk.NamingConvention in project proxima-platform by O2-Czech-Republic.

the class GCloudStorageAccessorTest method testNamingConventionWithBucketAndNoPath.

@Test
public void testNamingConventionWithBucketAndNoPath() {
    GCloudStorageAccessor accessor = new GCloudStorageAccessor(TestUtils.createTestFamily(entity, URI.create("gs://bucket")));
    NamingConvention convention = accessor.getNamingConvention();
    assertTrue(convention.nameOf(1500000000000L).startsWith("/2017/07/"));
}
Also used : NamingConvention(cz.o2.proxima.direct.bulk.NamingConvention) Test(org.junit.Test)

Example 2 with NamingConvention

use of cz.o2.proxima.direct.bulk.NamingConvention in project proxima-platform by O2-Czech-Republic.

the class S3AccessorTest method testNamingConventionWithBucket.

@Test
public void testNamingConventionWithBucket() {
    S3Accessor accessor = new S3Accessor(TestUtils.createTestFamily(entity, URI.create("s3://bucket/path")));
    NamingConvention convention = accessor.getNamingConvention();
    assertTrue(convention.nameOf(1500000000000L).startsWith("/2017/07/"));
}
Also used : NamingConvention(cz.o2.proxima.direct.bulk.NamingConvention) Test(org.junit.Test)

Example 3 with NamingConvention

use of cz.o2.proxima.direct.bulk.NamingConvention in project proxima-platform by O2-Czech-Republic.

the class S3AccessorTest method testNamingConventionWithBucketAndNoPath.

@Test
public void testNamingConventionWithBucketAndNoPath() {
    S3Accessor accessor = new S3Accessor(TestUtils.createTestFamily(entity, URI.create("s3://bucket/path")));
    NamingConvention convention = accessor.getNamingConvention();
    assertTrue(convention.nameOf(1500000000000L).startsWith("/2017/07/"));
}
Also used : NamingConvention(cz.o2.proxima.direct.bulk.NamingConvention) Test(org.junit.Test)

Example 4 with NamingConvention

use of cz.o2.proxima.direct.bulk.NamingConvention in project proxima-platform by O2-Czech-Republic.

the class BlobStorageAccessorTest method testNamingConventionWithBucketAndNoPath.

@Test
public void testNamingConventionWithBucketAndNoPath() {
    BlobStorageAccessor accessor = new TestBlobStorageAccessor(TestUtils.createTestFamily(entity, URI.create("blob-test://bucket")));
    NamingConvention convention = accessor.getNamingConvention();
    assertTrue(convention.nameOf(1500000000000L).startsWith("/2017/07/"));
}
Also used : NamingConvention(cz.o2.proxima.direct.bulk.NamingConvention) Test(org.junit.Test)

Example 5 with NamingConvention

use of cz.o2.proxima.direct.bulk.NamingConvention in project proxima-platform by O2-Czech-Republic.

the class BlobStorageAccessorTest method testNamingConventionWithBucket.

@Test
public void testNamingConventionWithBucket() {
    BlobStorageAccessor accessor = new TestBlobStorageAccessor(TestUtils.createTestFamily(entity, URI.create("blob-test://bucket/path")));
    NamingConvention convention = accessor.getNamingConvention();
    assertTrue(convention.nameOf(1500000000000L).startsWith("/2017/07/"));
}
Also used : NamingConvention(cz.o2.proxima.direct.bulk.NamingConvention) Test(org.junit.Test)

Aggregations

NamingConvention (cz.o2.proxima.direct.bulk.NamingConvention)7 Test (org.junit.Test)7 Lists (com.google.common.collect.Lists)1 ConfigFactory (com.typesafe.config.ConfigFactory)1 BlobWriter (cz.o2.proxima.direct.blob.TestBlobStorageAccessor.BlobWriter)1 DefaultNamingConvention (cz.o2.proxima.direct.bulk.DefaultNamingConvention)1 BulkAttributeWriter (cz.o2.proxima.direct.core.BulkAttributeWriter)1 DirectDataOperator (cz.o2.proxima.direct.core.DirectDataOperator)1 AttributeDescriptor (cz.o2.proxima.repository.AttributeDescriptor)1 EntityDescriptor (cz.o2.proxima.repository.EntityDescriptor)1 Repository (cz.o2.proxima.repository.Repository)1 StreamElement (cz.o2.proxima.storage.StreamElement)1 ExceptionUtils (cz.o2.proxima.util.ExceptionUtils)1 File (java.io.File)1 IOException (java.io.IOException)1 Serializable (java.io.Serializable)1 URI (java.net.URI)1 URISyntaxException (java.net.URISyntaxException)1 Duration (java.time.Duration)1 ArrayList (java.util.ArrayList)1