Package info.archinnov.achilles.test.integration.entity

Examples of info.archinnov.achilles.test.integration.entity.CompositeClusteredEntity$ClusteredKey


                .andPartitionComponentsIN("bucket1", "bucket3")
                .iterator();

        //Then
        assertThat(iterator.hasNext()).isTrue();
        CompositeClusteredEntity next = iterator.next();
        assertThat(next.getId().getId()).isEqualTo(partitionKey);
        assertThat(next.getId().getBucket()).isEqualTo("bucket1");
        assertThat(next.getId().getName()).isEqualTo("name11");
        assertThat(next.getValue()).isEqualTo("value11");

        assertThat(iterator.hasNext()).isTrue();
        next = iterator.next();
        assertThat(next.getId().getId()).isEqualTo(partitionKey);
        assertThat(next.getId().getBucket()).isEqualTo("bucket3");
        assertThat(next.getId().getName()).isEqualTo("name31");
        assertThat(next.getValue()).isEqualTo("value11");
    }
View Full Code Here


                .fromClusterings(1,"name1")
                .iterator();

        //Then
        assertThat(iterator.hasNext()).isTrue();
        CompositeClusteredEntity next = iterator.next();
        assertThat(next.getId().getBucket()).isEqualTo("bucket3");
        assertThat(next.getId().getName()).isEqualTo("name1");
        assertThat(next.getValue()).isEqualTo("value11");
    }
View Full Code Here

        }
    }

    private void insertCompositeClusteredEntity(long id, String bucket, int count, String name, String clusteredValue) {
        CompositeClusteredEntity.ClusteredKey embeddedId = new CompositeClusteredEntity.ClusteredKey(id, bucket, count, name);
        CompositeClusteredEntity entity = new CompositeClusteredEntity(embeddedId, clusteredValue);
        manager.insert(entity);
    }
View Full Code Here

        }
    }

    private void insertCompositeClusteredEntity(long id, String bucket, int count, String name, String clusteredValue) {
        CompositeClusteredEntity.ClusteredKey embeddedId = new CompositeClusteredEntity.ClusteredKey(id, bucket, count, name);
        CompositeClusteredEntity entity = new CompositeClusteredEntity(embeddedId, clusteredValue);
        manager.insert(entity);
    }
View Full Code Here

        }
    }

    private void insertCompositeClusteredEntity(long id, String bucket, int count, String name, String clusteredValue) {
        CompositeClusteredEntity.ClusteredKey embeddedId = new CompositeClusteredEntity.ClusteredKey(id, bucket, count, name);
        CompositeClusteredEntity entity = new CompositeClusteredEntity(embeddedId, clusteredValue);
        manager.insert(entity);
    }
View Full Code Here

TOP

Related Classes of info.archinnov.achilles.test.integration.entity.CompositeClusteredEntity$ClusteredKey

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.