Package uk.gov.gchq.gaffer.store.library
Class FileGraphLibrary
- java.lang.Object
-
- uk.gov.gchq.gaffer.store.library.GraphLibrary
-
- uk.gov.gchq.gaffer.store.library.FileGraphLibrary
-
public class FileGraphLibrary extends GraphLibrary
AFileGraphLibrary
stores aGraphLibrary
in a specified location as files. It will store a graphId file with the relationships between the graphId, storePropertiesId and the schemaId. It will also store the StoreProperties and Schema in two other files. They will be named using the ids.
-
-
Field Summary
-
Fields inherited from class uk.gov.gchq.gaffer.store.library.GraphLibrary
A_GRAPH_LIBRARY_CAN_T_BE_ADDED_WITH_A_NULL_S_GRAPH_ID_S
-
-
Constructor Summary
Constructors Constructor Description FileGraphLibrary()
FileGraphLibrary(String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pair<String,String>
getIds(String graphId)
Gets the Schema Id and StoreProperties Id related to the graphId.String
getPath()
void
initialise(String path)
void
setPath(String path)
-
Methods inherited from class uk.gov.gchq.gaffer.store.library.GraphLibrary
add, add, addOrUpdate, addOrUpdate, addOrUpdateProperties, addOrUpdateSchema, addProperties, addSchema, checkExisting, exists, get, getProperties, getSchema, resolveSchema, resolveStoreProperties
-
-
-
-
Constructor Detail
-
FileGraphLibrary
public FileGraphLibrary()
-
FileGraphLibrary
public FileGraphLibrary(String path)
-
-
Method Detail
-
initialise
public void initialise(String path)
- Specified by:
initialise
in classGraphLibrary
-
getPath
public String getPath()
-
setPath
public void setPath(String path)
-
getIds
public Pair<String,String> getIds(String graphId)
Description copied from class:GraphLibrary
Gets the Schema Id and StoreProperties Id related to the graphId.- Specified by:
getIds
in classGraphLibrary
- Parameters:
graphId
- The graphId.- Returns:
- A
uk.gov.gchq.gaffer.commonutil.pair
containing related Schema Id and StoreProperties Id.
-
-