|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.data.tr.neo.NeoStore
public class NeoStore
| Constructor Summary | |
|---|---|
NeoStore(NeoDBProvider provider,
String storeId)
|
|
NeoStore(String storeId)
|
|
| Method Summary | |
|---|---|
void |
_start(File location)
|
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
add(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> treeStream)
Adds many trees at once to the store. |
org.gcube.data.trees.data.Tree |
add(org.gcube.data.trees.data.Tree tree)
WRITE OPERATIONS |
long |
cardinality()
Returns the cardinality of the store. |
org.neo4j.graphdb.GraphDatabaseService |
dbservice()
|
void |
delete()
Deletes a store, stopping it if it has been started. |
Iterator<org.gcube.data.trees.data.Tree> |
get(org.gcube.data.trees.patterns.Pattern pattern)
Returns all the trees in the store which match a given pattern, after pruning them with it. |
org.gcube.data.trees.data.Tree |
get(String id,
org.gcube.data.trees.patterns.Pattern pattern)
READ OPERATIONS |
String |
id()
Returns the store identifier. |
File |
location()
Returns the location of the store. |
void |
start(File storageLocation)
LIFETIME OPERATIONS |
void |
stop()
Stops a started store. |
String |
toString()
|
org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> |
update(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> deltaStream)
Updates many trees at once in the store with the delta trees that capture their changes. |
org.gcube.data.trees.data.Tree |
update(org.gcube.data.trees.data.Tree delta)
Updates a tree in the store with the delta tree that captures the changes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NeoStore(String storeId)
throws IllegalStateException
IllegalStateException
public NeoStore(NeoDBProvider provider,
String storeId)
throws IllegalStateException
IllegalStateException| Method Detail |
|---|
public String id()
Store
id in interface Storepublic File location()
Store
location in interface Storepublic long cardinality()
Store
cardinality in interface Storepublic org.neo4j.graphdb.GraphDatabaseService dbservice()
public void start(File storageLocation)
start in interface StorestorageLocation - the locationpublic void _start(File location)
public void stop()
stop in interface Storepublic void delete()
delete in interface Store
public org.gcube.data.trees.data.Tree get(String id,
org.gcube.data.trees.patterns.Pattern pattern)
throws org.gcube.data.tmf.api.exceptions.UnknownTreeException,
org.gcube.data.tmf.api.exceptions.InvalidTreeException
get in interface Storeid - the identifierpattern - the pattern
org.gcube.data.tmf.api.exceptions.UnknownTreeException - if the store does not contain a tree with the given identifier
org.gcube.data.tmf.api.exceptions.InvalidTreeException - if the Tree with the the given identifier does not match the Patternpublic Iterator<org.gcube.data.trees.data.Tree> get(org.gcube.data.trees.patterns.Pattern pattern)
Store
get in interface Storepattern - the pattern
public org.gcube.data.trees.data.Tree add(org.gcube.data.trees.data.Tree tree)
throws org.gcube.data.tmf.api.exceptions.InvalidTreeException
add in interface Storeorg.gcube.data.tmf.api.exceptions.InvalidTreeException - if the tree does is invalid for addition (e.g. some of its nodes have already
identifiers)
public org.gcube.data.trees.data.Tree update(org.gcube.data.trees.data.Tree delta)
throws org.gcube.data.tmf.api.exceptions.UnknownTreeException,
org.gcube.data.tmf.api.exceptions.InvalidTreeException
Store
update in interface Storedelta - the delta tree
org.gcube.data.tmf.api.exceptions.UnknownTreeException - if the delta tree does not identify a tree in the store
org.gcube.data.tmf.api.exceptions.InvalidTreeException - if the delta tree does now qualify for update
public org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> add(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> treeStream)
throws Exception
Store
add in interface StoretreeStream - the stream of trees
Exception - if the operation fails as a whole for an unexpected error
public org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> update(org.gcube.data.streams.Stream<org.gcube.data.trees.data.Tree> deltaStream)
throws Exception
Store
update in interface StoredeltaStream - the delta trees
Exception - if the operation fails as a whole for an expected errorpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||