Examples of RiakUserMetadata


Examples of com.basho.riak.client.core.query.UserMetadata.RiakUserMetadata

   
    @Test
    public void annotatedMetaMethodIsNull()
    {
        PojoWithAnnotatedMethods pojo = new PojoWithAnnotatedMethods();
        RiakUserMetadata meta = new RiakUserMetadata();
        AnnotationUtil.getUsermetaData(meta, pojo);
       
        assertTrue(meta.isEmpty());
    }
View Full Code Here

Examples of com.basho.riak.client.core.query.UserMetadata.RiakUserMetadata

   
    @Test
    public void riakMetaEmptyFields()
    {
        PojoWithAnnotatedFields pojo = new PojoWithAnnotatedFields();
        RiakUserMetadata meta = new RiakUserMetadata();
        AnnotationUtil.populateUsermeta(meta, pojo);
       
        assertNotNull(pojo.usermeta);
        // Single entries should be null
        assertNull(pojo.metaItemOne);
View Full Code Here

Examples of com.basho.riak.client.core.query.UserMetadata.RiakUserMetadata

   
    @Test
    public void riakMetaEmptyMethods()
    {
        PojoWithAnnotatedMethods pojo = new PojoWithAnnotatedMethods();
        RiakUserMetadata meta = new RiakUserMetadata();
        AnnotationUtil.populateUsermeta(meta, pojo);
       
        assertNotNull(pojo.getUsermeta());
        // Single entries should be null
        assertNull(pojo.getMetaItemOne());
View Full Code Here

Examples of com.basho.riak.client.core.query.UserMetadata.RiakUserMetadata

                }
            }
           
            if (content.getUsermetaCount() > 0)
            {
                RiakUserMetadata userMeta = ro.getUserMeta();
                for (int j = 0; j < content.getUsermetaCount(); j++)
                {
                    RiakPB.RpbPair pair = content.getUsermeta(j);
                    userMeta.put(BinaryValue.unsafeCreate(pair.getKey().toByteArray()),
                        BinaryValue.unsafeCreate(pair.getValue().toByteArray()));
                }
            }
            
            roList.add(ro);
View Full Code Here

Examples of com.basho.riak.client.core.query.UserMetadata.RiakUserMetadata

    public synchronized RiakUserMetadata getUserMeta()
    {
        // Lazy initialization of container.
        if (null == userMeta)
        {
            userMeta = new RiakUserMetadata();
        }
       
        return userMeta;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.