public class GHDirectory extends Object implements Directory
| Constructor and Description |
|---|
GHDirectory(String _location,
DAType defaultType) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all contained objects from the directory and releases its resources.
|
void |
close()
Releases all allocated resources from the directory without removing backing files.
|
void |
configure(LinkedHashMap<String,String> config)
Configure the DAType (specified by the value) of a single DataAccess object (specified by the key).
|
Directory |
create() |
DataAccess |
create(String name)
Creates a new DataAccess object with the given name in the location of this Directory.
|
DataAccess |
create(String name,
DAType type) |
DataAccess |
create(String name,
DAType type,
int segmentSize) |
DataAccess |
create(String name,
int segmentSize) |
DAType |
getDefaultType() |
DAType |
getDefaultType(String dataAccess,
boolean preferInts)
This method returns the default DAType of the specified DataAccess (as string).
|
String |
getLocation() |
boolean |
isStoring() |
void |
loadMMap() |
void |
remove(String name)
Removes the specified object from the directory.
|
String |
toString() |
protected final String location
public void configure(LinkedHashMap<String,String> config)
public void loadMMap()
public DataAccess create(String name)
Directorypublic DataAccess create(String name, int segmentSize)
public DataAccess create(String name, DAType type)
public DataAccess create(String name, DAType type, int segmentSize)
public void close()
Directorypublic void clear()
Directorypublic void remove(String name)
Directorypublic DAType getDefaultType()
getDefaultType in interface Directorypublic DAType getDefaultType(String dataAccess, boolean preferInts)
getDefaultType in interface Directorypublic boolean isStoring()
public String getLocation()
getLocation in interface DirectoryCopyright © 2012–2022. All rights reserved.