org.neo4j.kernel.impl.nioneo.store
Class RelationshipStore
java.lang.Object
org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore
org.neo4j.kernel.impl.nioneo.store.AbstractStore
org.neo4j.kernel.impl.nioneo.store.RelationshipStore
- All Implemented Interfaces:
- RecordStore<RelationshipRecord>, Store
public class RelationshipStore
- extends AbstractStore
- implements Store, RecordStore<RelationshipRecord>
Implementation of the relationship store.
| Fields inherited from interface org.neo4j.kernel.impl.nioneo.store.RecordStore |
IN_USE |
| Methods inherited from class org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore |
acquireWindow, buildTypeDescriptorAndVersion, calculateMappedMemory, checkStorage, checkVersion, closeIdGenerator, closeStorage, createIdGenerator, flushAll, freeId, getConfig, getFileChannel, getFileSystem, getHighestPossibleIdInUse, getHighId, getIdType, getIfMemoryMapped, getNumberOfIdsInUse, getStorageFileName, getStoreDir, getStoreOk, getTypeAndVersionDescriptor, getWindowPoolStats, initStorage, isInRecoveryMode, loadStorage, logVersions, longFromIntAndMod, makeStoreOk, nextId, openIdGenerator, openIdGenerator, openReadOnlyIdGenerator, rebuildIdGenerators, registerIdFromUpdateRecord, releaseFileLockAndCloseFileChannel, releaseWindow, setHighId, setRecovered, setStoreNotOk, setWindowPool, toString, unsetRecovered, updateHighId, verifyCorrectTypeDescriptorAndVersion |
TYPE_DESCRIPTOR
public static final String TYPE_DESCRIPTOR
- See Also:
- Constant Field Values
RECORD_SIZE
public static final int RECORD_SIZE
- See Also:
- Constant Field Values
RelationshipStore
public RelationshipStore(String fileName,
Map<?,?> config)
- See
AbstractStore#AbstractStore(String, Map)
accept
public void accept(RecordStore.Processor processor,
RelationshipRecord record)
- Specified by:
accept in interface RecordStore<RelationshipRecord>
getTypeDescriptor
public String getTypeDescriptor()
- Description copied from class:
CommonAbstractStore
- Returns the type and version that identifies this store.
- Specified by:
getTypeDescriptor in interface Store- Specified by:
getTypeDescriptor in class CommonAbstractStore
- Returns:
- This store's implementation type and version identifier
getRecordSize
public int getRecordSize()
- Description copied from class:
AbstractStore
- Returns the fixed size of each record in this store.
- Specified by:
getRecordSize in interface RecordStore<RelationshipRecord>- Specified by:
getRecordSize in class AbstractStore
- Returns:
- The record size
getRecordHeaderSize
public int getRecordHeaderSize()
- Specified by:
getRecordHeaderSize in interface RecordStore<RelationshipRecord>
close
public void close()
- Description copied from class:
CommonAbstractStore
- Closes this store. This will cause all buffers and channels to be closed.
Requesting an operation from after this method has been invoked is
illegal and an exception will be thrown.
This method will start by invoking the CommonAbstractStore.closeStorage() method
giving the implementing store way to do anything that it needs to do
before the fileChannel is closed.
- Specified by:
close in interface RecordStore<RelationshipRecord>- Overrides:
close in class CommonAbstractStore
createStore
public static void createStore(String fileName,
IdGeneratorFactory idGeneratorFactory)
- Creates a new relationship store contained in
fileName If
filename is null or the file already exists an IOException
is thrown.
- Parameters:
fileName - File name of the new relationship store
- Throws:
IOException - If unable to create relationship store or name null
getRecord
public RelationshipRecord getRecord(long id)
- Specified by:
getRecord in interface RecordStore<RelationshipRecord>
forceGetRecord
public RelationshipRecord forceGetRecord(long id)
- Specified by:
forceGetRecord in interface RecordStore<RelationshipRecord>
forceGetRaw
public RelationshipRecord forceGetRaw(long id)
- Specified by:
forceGetRaw in interface RecordStore<RelationshipRecord>
getLightRel
public RelationshipRecord getLightRel(long id)
updateRecord
public void updateRecord(RelationshipRecord record,
boolean recovered)
updateRecord
public void updateRecord(RelationshipRecord record)
- Specified by:
updateRecord in interface RecordStore<RelationshipRecord>
forceUpdateRecord
public void forceUpdateRecord(RelationshipRecord record)
- Specified by:
forceUpdateRecord in interface RecordStore<RelationshipRecord>
getChainRecord
public RelationshipRecord getChainRecord(long relId)
getAllWindowPoolStats
public List<WindowPoolStats> getAllWindowPoolStats()
- Specified by:
getAllWindowPoolStats in class AbstractStore
logIdUsage
public void logIdUsage(StringLogger logger)
- Specified by:
logIdUsage in interface Store
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.