Package com.sleepycat.je.rep.impl.RepGroupDB

Examples of com.sleepycat.je.rep.impl.RepGroupDB.NodeBinding


                if (keyVal.equals(RepGroupDB.GROUP_KEY)) {
                    outStream.print(" GroupInfo: ");
                    binding = new GroupBinding();
                } else {
                    outStream.print(" NodeInfo: " + keyVal);
                    binding = new NodeBinding();
                }
                outStream.print(binding.entryToObject(data));    
            }
        }
View Full Code Here


     * @param node the node to be serialized.
     *
     * @return the string containing the serialized form of the node.
     */
    static public String serializeHex(RepNodeImpl node) {
        final NodeBinding nodeBinding = new NodeBinding();
        return objectToHex(nodeBinding, node);
    }
View Full Code Here

     * @param node the node to be serialized
     *
     * @return the serailized byte array
     */
    static public byte[] serializeBytes(RepNodeImpl node) {
        final NodeBinding binding = new NodeBinding();
        TupleOutput tuple = new TupleOutput(new byte[100]);
        binding.objectToEntry(node, tuple);
        return tuple.getBufferBytes();
    }
View Full Code Here

     * @param hex the string containing the serialized form of the node
     *
     * @return the de-serialized object
     */
    static public RepNodeImpl hexDeserializeNode(String hex) {
        final NodeBinding nodeBinding = new NodeBinding();
        return hexToObject(nodeBinding, hex);
    }
View Full Code Here

     * @param bytes the byte representation of the node.
     *
     * @return the deserialized object
     */
    static public RepNodeImpl deserializeNode(byte[] bytes) {
        final NodeBinding binding = new NodeBinding();
        TupleInput tuple = new TupleInput(bytes);
        return binding.entryToObject(tuple);
    }
View Full Code Here

     * @param node the node to be serialized.
     *
     * @return the string containing the serialized form of the node.
     */
    static public String serializeHex(RepNodeImpl node) {
        final NodeBinding nodeBinding = new NodeBinding();
        return objectToHex(nodeBinding, node);
    }
View Full Code Here

     * @param node the node to be serialized
     *
     * @return the serailized byte array
     */
    static public byte[] serializeBytes(RepNodeImpl node) {
        final NodeBinding binding = new NodeBinding();
        TupleOutput tuple = new TupleOutput(new byte[100]);
        binding.objectToEntry(node, tuple);
        return tuple.getBufferBytes();
    }
View Full Code Here

     * @param hex the string containing the serialized form of the node
     *
     * @return the de-serialized object
     */
    static public RepNodeImpl hexDeserializeNode(String hex) {
        final NodeBinding nodeBinding = new NodeBinding();
        return hexToObject(nodeBinding, hex);
    }
View Full Code Here

     * @param bytes the byte representation of the node.
     *
     * @return the deserialized object
     */
    static public RepNodeImpl deserializeNode(byte[] bytes) {
        final NodeBinding binding = new NodeBinding();
        TupleInput tuple = new TupleInput(bytes);
        return binding.entryToObject(tuple);
    }
View Full Code Here

                if (keyVal.equals(RepGroupDB.GROUP_KEY)) {
                    outStream.print(" GroupInfo: ");
                    binding = new GroupBinding();
                } else {
                    outStream.print(" NodeInfo: " + keyVal);
                    binding = new NodeBinding();
                }
                outStream.print(binding.entryToObject(data));    
            }
        }
View Full Code Here

TOP

Related Classes of com.sleepycat.je.rep.impl.RepGroupDB.NodeBinding

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.