Package com.basho.riak.client.core.query.UserMetadata

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


   
    @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

   
    @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

                }
            }
           
            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

    public synchronized RiakUserMetadata getUserMeta()
    {
        // Lazy initialization of container.
        if (null == userMeta)
        {
            userMeta = new RiakUserMetadata();
        }
       
        return userMeta;
    }
View Full Code Here

TOP

Related Classes of com.basho.riak.client.core.query.UserMetadata.RiakUserMetadata

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.