public static class GraphExtension.NoOpExtension extends Object implements GraphExtension
GraphExtension.NoOpExtension| Constructor and Description |
|---|
NoOpExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method makes sure that the underlying used resources are released.
|
GraphExtension |
copyTo(GraphExtension extStorage)
creates a copy of this extended storage
|
GraphExtension |
create(long byteCount)
Creates the underlying storage.
|
void |
flush()
This method makes sure that the underlying data is written to the storage.
|
long |
getCapacity() |
int |
getDefaultEdgeFieldValue() |
int |
getDefaultNodeFieldValue() |
void |
init(Graph graph,
Directory dir)
initializes the extended storage by giving the base graph
|
boolean |
isClosed() |
boolean |
isRequireEdgeField() |
boolean |
isRequireNodeField() |
boolean |
loadExisting() |
void |
setSegmentSize(int bytes)
sets the segment size in all additional data storages
|
String |
toString() |
public boolean isRequireNodeField()
isRequireNodeField in interface GraphExtensionpublic boolean isRequireEdgeField()
isRequireEdgeField in interface GraphExtensionpublic int getDefaultNodeFieldValue()
getDefaultNodeFieldValue in interface GraphExtensionpublic int getDefaultEdgeFieldValue()
getDefaultEdgeFieldValue in interface GraphExtensionpublic void init(Graph graph, Directory dir)
GraphExtensioninit in interface GraphExtensionpublic GraphExtension create(long byteCount)
Storablecreate in interface Storable<GraphExtension>public boolean loadExisting()
loadExisting in interface Storable<GraphExtension>public void setSegmentSize(int bytes)
GraphExtensionsetSegmentSize in interface GraphExtensionpublic void flush()
Storableflush in interface Storable<GraphExtension>public void close()
Storableclose in interface Storable<GraphExtension>close in interface Closeableclose in interface AutoCloseablepublic long getCapacity()
getCapacity in interface Storable<GraphExtension>public GraphExtension copyTo(GraphExtension extStorage)
GraphExtensioncopyTo in interface GraphExtensionpublic boolean isClosed()
isClosed in interface Storable<GraphExtension>Copyright © 2012–2018. All rights reserved.