Package oracle.kv

Examples of oracle.kv.KeyValueVersion


        Map<String, Object> results = new HashMap<String, Object>();

        while (iterator.hasNext())
        {
            KeyValueVersion keyValueVersion = iterator.next();
            String minorKey = keyValueVersion.getKey().getMinorPath().get(0);

            PropertyAccessor accessor = PropertyAccessorFactory.getPropertyAccessor(childMetadata.getIdAttribute()
                    .getBindableJavaType());

            byte[] idByteArr = keyValueVersion.getValue().getValue();
            Object keyObj = accessor.fromBytes(childMetadata.getIdAttribute().getBindableJavaType(), idByteArr);

            results.put(childIdColumnName + "|" + minorKey, keyObj);
        }
View Full Code Here


                        iterator = kvStore.storeIterator(Direction.UNORDERED, 0, majorKeyToFind, range, null);
                    }

                    while (iterator.hasNext())
                    {
                        KeyValueVersion keyValueVersion = iterator.next();
                        String minorKey = keyValueVersion.getKey().getMinorPath().get(0);

                        PropertyAccessor accessor = PropertyAccessorFactory.getPropertyAccessor(entityMetadata
                                .getIdAttribute().getBindableJavaType());

                        byte[] idByteArr = keyValueVersion.getValue().getValue();
                        Object keyObj = accessor.fromBytes(entityMetadata.getIdAttribute().getBindableJavaType(),
                                idByteArr);

                        foundKeys.add(keyObj);
                    }
View Full Code Here

                Key key = Key.createKey(majorComponents);
                Iterator<KeyValueVersion> iterator = kvStore.storeIterator(Direction.UNORDERED, 0, key, null, null);

                while (iterator.hasNext())
                {
                    KeyValueVersion keyValueVersion = iterator.next();
                    Key keytoDelete = keyValueVersion.getKey();
                    byte[] value = keyValueVersion.getValue().getValue();
                    Object valueObject = PropertyAccessorHelper.getObject(
                            ((AbstractAttribute) entityMetadata.getIdAttribute()).getBindableJavaType(), value);

                    if (valueObject.equals(id))
                    {
View Full Code Here

        }

        while (iterator != null && iterator.hasNext())
        {
            /* If fields is null, read all fields */
            KeyValueVersion next = iterator.next();
            String field = getFieldFromKey(next.getKey());
            if (fields != null && !fields.contains(field))
            {
                continue;
            }
            result.put(field, new ByteArrayByteIterator(next.getValue().getValue()));
        }

        return OK;
    }
View Full Code Here

TOP

Related Classes of oracle.kv.KeyValueVersion

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.