![JAR search and dependency download from the Maven repository](/logo.png)
com.bigdata.htree.NodeFactory Maven / Gradle / Ivy
package com.bigdata.htree;
import com.bigdata.btree.NodeSerializer;
import com.bigdata.btree.data.ILeafData;
import com.bigdata.htree.data.IDirectoryData;
/**
* Factory for mutable nodes and leaves used by the {@link NodeSerializer}.
*/
class NodeFactory implements INodeFactory {
public static final INodeFactory INSTANCE = new NodeFactory();
private NodeFactory() {
}
public DirectoryPage allocNode(final AbstractHTree btree, final long addr,
final IDirectoryData data) {
return new DirectoryPage((HTree) btree, addr, data);
}
public BucketPage allocLeaf(final AbstractHTree btree, final long addr,
final ILeafData data) {
return new BucketPage((HTree) btree, addr, data);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy