|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.upc.dama.dex.core.GraphPool
public final class GraphPool
Pool of graphs.
A GraphPool is a pool of Graphs which contains one single and
persistent graph database, which is called DbGraph.
GraphPool cannot be instantiated directly. Thus, GraphPool instances are
obteined from DEX through DEX.create(File,String) or
DEX.open(File) methods.
Multiple GraphPools do not share the memory, that is there is no
negotiation among them. In those cases, memory must be prefixed for each
GraphPool. To do that, use the
DEXConfig utility.
DEX| Nested Class Summary | |
|---|---|
class |
GraphPool.Statistics
Statistics of a GraphPool. |
| Method Summary | |
|---|---|
void |
close()
Closes all the working Graphs. |
void |
dumpData(Session sess,
java.io.File file)
Dumps the logical content of the GraphPool into a
text file. |
void |
dumpData(Session sess,
java.lang.String file)
Dumps the logical content of the GraphPool into a
text file. |
void |
dumpSchema(Session sess,
java.io.Writer writer)
Dumps the schema of the GraphPool. |
void |
dumpStorage(Session sess,
java.io.File file)
Dumps the internal content of the GraphPool into a
text file. |
void |
dumpStorage(Session sess,
java.lang.String file)
Dumps the internal content of the GraphPool into a
text file. |
void |
flush()
Flushes dirty data to disk. |
java.lang.String |
getAlias()
Gets the alias name of the persistent graph database. |
DEX |
getDEX()
Gets the parent DEX instance. |
java.io.File |
getFileImage()
Gets the file of the persistent graph database. |
GraphPool.Statistics |
getStatistics()
Gets the current GraphPool.Statistics. |
boolean |
isOpen()
Gets if the GraphPool is open. |
Session |
newSession()
Gets the Session instance. |
void |
warmUp()
Warms up cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean isOpen()
GraphPool is open.
Only opened GraphPools can execute methods, otherwise
they will fail.
true if the GraphPool is open,
false otherwise.public void close()
Graphs.
It is important to close the GraphPool as soon as possible
to free its memory resources.
close in interface java.io.Closeablepublic DEX getDEX()
DEX instance.
DEX instance.public void warmUp()
public Session newSession()
Session instance.
Session instance.public java.lang.String getAlias()
public java.io.File getFileImage()
public void dumpStorage(Session sess,
java.io.File file)
throws java.io.FileNotFoundException
GraphPool into a
text file.
It dumps some statistics of the internal structures such as structure sizes, number of objects, etc.
sess - Session instance to use for the dump.file - Name of text file to dump all the data.
java.io.FileNotFoundException
public void dumpData(Session sess,
java.io.File file)
throws java.io.FileNotFoundException
GraphPool into a
text file.
It dumps the DbGraph as a collection of nodes, edges and their
attributes.
sess - Session instance to use for the dump.file - Name of text file to dump all the data.
java.io.FileNotFoundException
public void dumpStorage(Session sess,
java.lang.String file)
throws java.io.FileNotFoundException
GraphPool into a
text file.
It dumps some statistics of the internal structures such as structure sizes, number of objects, etc.
sess - Session instance to use for the dump.file - Name of text file to dump all the data.
java.io.FileNotFoundException
public void dumpData(Session sess,
java.lang.String file)
throws java.io.FileNotFoundException
GraphPool into a
text file.
It dumps the DbGraph as a collection of nodes, edges and their
attributes.
sess - Session instance to use for the dump.file - Name of text file to dump all the data.
java.io.FileNotFoundException
public void dumpSchema(Session sess,
java.io.Writer writer)
throws java.io.IOException
sess - Session to dump schemawriter - Where to dump the schema of the GraphPool.
java.io.IOException - If something bad happens while writting.public void flush()
public GraphPool.Statistics getStatistics()
GraphPool.Statistics.
GraphPool.Statistics.GraphPool.Statistics
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||