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 GraphExtension
public boolean isRequireEdgeField()
isRequireEdgeField
in interface GraphExtension
public int getDefaultNodeFieldValue()
getDefaultNodeFieldValue
in interface GraphExtension
public int getDefaultEdgeFieldValue()
getDefaultEdgeFieldValue
in interface GraphExtension
public void init(Graph graph, Directory dir)
GraphExtension
init
in interface GraphExtension
public GraphExtension create(long byteCount)
Storable
create
in interface Storable<GraphExtension>
public boolean loadExisting()
loadExisting
in interface Storable<GraphExtension>
public void setSegmentSize(int bytes)
GraphExtension
setSegmentSize
in interface GraphExtension
public void flush()
Storable
flush
in interface Storable<GraphExtension>
public void close()
Storable
close
in interface Storable<GraphExtension>
close
in interface Closeable
close
in interface AutoCloseable
public long getCapacity()
getCapacity
in interface Storable<GraphExtension>
public GraphExtension copyTo(GraphExtension extStorage)
GraphExtension
copyTo
in interface GraphExtension
public boolean isClosed()
isClosed
in interface Storable<GraphExtension>
Copyright © 2012–2019. All rights reserved.