public class NodeFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
separator
The separator used to separate line contents.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the factory, closes all connection and deletes the file.
|
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.Integer>> |
getAccessions(long index)
Returns the accessions at a given index.
|
static NodeFactory |
getInstance()
Static method returning the instance of the factory.
|
static NodeFactory |
getInstance(java.io.File folder)
Static method returning the instance of the factory and setting the
serialization folder.
|
void |
initiateFactory()
Initiates the factory on the sequence factory.
|
void |
saveAccessions(Node node,
boolean emptyNode)
Saves all the downstream accessions.
|
public static final java.lang.String separator
public static NodeFactory getInstance(java.io.File folder)
folder
- the serialization folderpublic static NodeFactory getInstance()
public void initiateFactory() throws java.io.IOException
java.io.IOException
public void saveAccessions(Node node, boolean emptyNode) throws java.io.IOException
node
- the nodeemptyNode
- boolean indicating whether the node should be emptied
(if true the accession mapping will be cleared)java.io.IOException
public java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.Integer>> getAccessions(long index) throws java.io.IOException
index
- the index of the nodejava.io.IOException
public void close() throws java.io.IOException
java.io.IOException
Copyright © 2013. All Rights Reserved.