| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method makes sure that the underlying used resources are released.
|
void |
copyTo(NameIndex nameIndex) |
NameIndex |
create(long initBytes)
Creates the underlying storage.
|
void |
flush()
This method makes sure that the underlying data is written to the storage.
|
String |
get(long pointer) |
long |
getCapacity() |
boolean |
isClosed() |
boolean |
loadExisting() |
long |
put(String name) |
void |
setSegmentSize(int segments) |
public NameIndex(Directory dir)
public NameIndex create(long initBytes)
Storablepublic boolean loadExisting()
loadExisting in interface Storable<NameIndex>public long put(String name)
public String get(long pointer)
public void flush()
Storablepublic void close()
Storablepublic void setSegmentSize(int segments)
public long getCapacity()
getCapacity in interface Storable<NameIndex>public void copyTo(NameIndex nameIndex)
Copyright © 2012–2018. All rights reserved.