public class NodeUtil
extends java.lang.Object
| Constructor and Description |
|---|
NodeUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <USERKEY,STOREKEY> |
readNode(java.io.InputStream in,
java.util.function.Function<byte[],USERKEY> loadUserKey,
java.util.function.Function<byte[],STOREKEY> loadStoreKey)
Load a node from an input stream.
|
static <USERKEY,STOREKEY> |
storeNode(java.io.OutputStream out,
Node<USERKEY,STOREKEY> node,
java.util.function.Function<USERKEY,byte[]> storeUserKey,
java.util.function.Function<STOREKEY,byte[]> storeStoreKey) |
public static <USERKEY,STOREKEY> void storeNode(java.io.OutputStream out,
Node<USERKEY,STOREKEY> node,
java.util.function.Function<USERKEY,byte[]> storeUserKey,
java.util.function.Function<STOREKEY,byte[]> storeStoreKey)
throws java.io.IOException
java.io.IOExceptionpublic static <USERKEY,STOREKEY> Node<USERKEY,STOREKEY> readNode(java.io.InputStream in, java.util.function.Function<byte[],USERKEY> loadUserKey, java.util.function.Function<byte[],STOREKEY> loadStoreKey) throws java.io.IOException
USERKEY - The type of the user key.STOREKEY - The type of the storage key.in - The input stream to read from.loadUserKey - How to convert bytes to a key for the user.loadStoreKey - How to convert bytes to a key that the storage system uses.java.io.IOException - On any error.