Package com.graphhopper.storage
Class DAType
java.lang.Object
com.graphhopper.storage.DAType
Defines how a DataAccess object is created.
- Author:
- Peter Karich
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DAType
Memory mapped DA object.static final DAType
Read-only memory mapped DA object.static final DAType
The DA object is hold entirely in-memory.static final DAType
Optimized RAM DA type for integer access.static final DAType
Optimized RAM_STORE DA type for integer access.static final DAType
The DA object is hold entirely in-memory. -
Constructor Summary
ConstructorsConstructorDescriptionDAType
(DAType.MemRef memRef, boolean storing, boolean integ, boolean allowWrites) -
Method Summary
-
Field Details
-
RAM
The DA object is hold entirely in-memory. Loading and flushing is a no-op. See RAMDataAccess. -
RAM_INT
Optimized RAM DA type for integer access. The set and getBytes methods cannot be used. -
RAM_STORE
The DA object is hold entirely in-memory. It will read load disc and flush to it if they equivalent methods are called. See RAMDataAccess. -
RAM_INT_STORE
Optimized RAM_STORE DA type for integer access. The set and getBytes methods cannot be used. -
MMAP
Memory mapped DA object. See MMapDataAccess. -
MMAP_RO
Read-only memory mapped DA object. To avoid write access useful for reading on mobile or embedded data stores.
-
-
Constructor Details
-
DAType
-
DAType
-
-
Method Details
-
fromString
-
isAllowWrites
public boolean isAllowWrites() -
isInMemory
public boolean isInMemory()- Returns:
- true if data resides in the JVM heap.
-
isMMap
public boolean isMMap() -
isStoring
public boolean isStoring()Temporary data or store (with loading and storing)? default is false -
isInteg
public boolean isInteg()Optimized for integer values? default is false -
toString
-
hashCode
public int hashCode() -
equals
-