org.neo4j.kernel.impl.nioneo.store
Class DynamicStringStore

java.lang.Object
  extended by org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore
      extended by org.neo4j.kernel.impl.nioneo.store.AbstractDynamicStore
          extended by org.neo4j.kernel.impl.nioneo.store.DynamicStringStore
All Implemented Interfaces:
RecordStore<DynamicRecord>, Store

public class DynamicStringStore
extends AbstractDynamicStore

Dynamic store that stores strings.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.neo4j.kernel.impl.nioneo.store.RecordStore
RecordStore.Processor
 
Field Summary
static String TYPE_DESCRIPTOR
           
 
Fields inherited from class org.neo4j.kernel.impl.nioneo.store.AbstractDynamicStore
BLOCK_HEADER_SIZE
 
Fields inherited from class org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore
ALL_STORES_VERSION, logger, storageFileName, UNKNOWN_VERSION
 
Fields inherited from interface org.neo4j.kernel.impl.nioneo.store.RecordStore
IN_USE
 
Constructor Summary
DynamicStringStore(String fileName, Map<?,?> config, IdType idType)
           
 
Method Summary
 void accept(RecordStore.Processor processor, DynamicRecord record)
           
static void createStore(String fileName, int blockSize, IdGeneratorFactory idGeneratorFactory, IdType idType)
           
 String getTypeDescriptor()
          Returns the type and version that identifies this store.
 long nextBlockId()
          Returns next free block.
 void setHighId(long highId)
          Sets the highest id in use (use this when rebuilding id generator).
 
Methods inherited from class org.neo4j.kernel.impl.nioneo.store.AbstractDynamicStore
allocateRecords, createEmptyStore, figureOutHighestIdInUse, forceGetRaw, forceGetRecord, forceUpdateRecord, freeBlockId, getBlockSize, getEffectiveRecordSize, getLightRecords, getRecord, getRecordHeaderSize, getRecords, getRecordSize, getRecordSize, isRecordInUse, logIdUsage, makeHeavy, readAndVerifyBlockSize, rebuildIdGenerator, toString, updateRecord, verifyFileSizeAndTruncate
 
Methods inherited from class org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore
acquireWindow, buildTypeDescriptorAndVersion, calculateMappedMemory, checkStorage, checkVersion, close, 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, setRecovered, setStoreNotOk, setWindowPool, unsetRecovered, updateHighId, verifyCorrectTypeDescriptorAndVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.neo4j.kernel.impl.nioneo.store.Store
getHighestPossibleIdInUse, getNumberOfIdsInUse, getWindowPoolStats, nextId
 
Methods inherited from interface org.neo4j.kernel.impl.nioneo.store.RecordStore
close, getHighId
 

Field Detail

TYPE_DESCRIPTOR

public static final String TYPE_DESCRIPTOR
See Also:
Constant Field Values
Constructor Detail

DynamicStringStore

public DynamicStringStore(String fileName,
                          Map<?,?> config,
                          IdType idType)
Method Detail

accept

public void accept(RecordStore.Processor processor,
                   DynamicRecord record)

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

createStore

public static void createStore(String fileName,
                               int blockSize,
                               IdGeneratorFactory idGeneratorFactory,
                               IdType idType)

setHighId

public void setHighId(long highId)
Description copied from class: CommonAbstractStore
Sets the highest id in use (use this when rebuilding id generator).

Overrides:
setHighId in class CommonAbstractStore
Parameters:
highId - The high id to set.

nextBlockId

public long nextBlockId()
Description copied from class: AbstractDynamicStore
Returns next free block.

Overrides:
nextBlockId in class AbstractDynamicStore
Returns:
The next free block


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.