org.neo4j.kernel.impl.nioneo.store
Class ReadOnlyIdGenerator
java.lang.Object
org.neo4j.kernel.impl.nioneo.store.ReadOnlyIdGenerator
- All Implemented Interfaces:
- IdGenerator
public class ReadOnlyIdGenerator
- extends Object
- implements IdGenerator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadOnlyIdGenerator
public ReadOnlyIdGenerator(String fileName,
long highId)
nextId
public long nextId()
- Specified by:
nextId in interface IdGenerator
nextIdBatch
public IdRange nextIdBatch(int size)
- Specified by:
nextIdBatch in interface IdGenerator
setHighId
public void setHighId(long id)
- Specified by:
setHighId in interface IdGenerator
getHighId
public long getHighId()
- Specified by:
getHighId in interface IdGenerator
freeId
public void freeId(long id)
- Specified by:
freeId in interface IdGenerator
close
public void close(boolean shutdown)
- Description copied from interface:
IdGenerator
- Closes the id generator.
- Specified by:
close in interface IdGenerator
- Parameters:
shutdown - true if this is during shutdown of the database, false
if it's an intermediary close, f.ex after rebuilding id generators at startup.
getFileName
public String getFileName()
getNumberOfIdsInUse
public long getNumberOfIdsInUse()
- Specified by:
getNumberOfIdsInUse in interface IdGenerator
getDefragCount
public long getDefragCount()
- Specified by:
getDefragCount in interface IdGenerator
delete
public void delete()
- Specified by:
delete in interface IdGenerator
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.