org.datanucleus.store.hbase.valuegenerator
Class IncrementGenerator

java.lang.Object
  extended by org.datanucleus.store.valuegenerator.AbstractGenerator
      extended by org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator
          extended by org.datanucleus.store.hbase.valuegenerator.IncrementGenerator
All Implemented Interfaces:
org.datanucleus.store.valuegenerator.ValueGenerator

public class IncrementGenerator
extends org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator
implements org.datanucleus.store.valuegenerator.ValueGenerator

Generator that uses a table in HBase to store and allocate identity values.


Field Summary
 
Fields inherited from class org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator
connectionProvider, storeMgr
 
Fields inherited from class org.datanucleus.store.valuegenerator.AbstractGenerator
allocationSize, block, initialValue, LOCALISER, name, properties, repositoryExists
 
Constructor Summary
IncrementGenerator(java.lang.String name, java.util.Properties props)
          Constructor.
 
Method Summary
 java.lang.String getName()
           
protected  org.datanucleus.store.valuegenerator.ValueGenerationBlock reserveBlock(long size)
           
 
Methods inherited from class org.datanucleus.store.valuegenerator.AbstractDatastoreGenerator
setConnectionProvider, setStoreManager
 
Methods inherited from class org.datanucleus.store.valuegenerator.AbstractGenerator
allocate, createRepository, current, currentValue, getStorageClass, next, nextValue, obtainGenerationBlock, obtainGenerationBlock, repositoryExists, requiresRepository, reserveBlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.datanucleus.store.valuegenerator.ValueGenerator
allocate, current, currentValue, next, nextValue
 

Constructor Detail

IncrementGenerator

public IncrementGenerator(java.lang.String name,
                          java.util.Properties props)
Constructor. Will receive the following properties (as a minimum) through this constructor.

Parameters:
name - Symbolic name for this generator
props - Properties controlling the behaviour of the generator (or null if not required).
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface org.datanucleus.store.valuegenerator.ValueGenerator
Overrides:
getName in class org.datanucleus.store.valuegenerator.AbstractGenerator

reserveBlock

protected org.datanucleus.store.valuegenerator.ValueGenerationBlock reserveBlock(long size)
Specified by:
reserveBlock in class org.datanucleus.store.valuegenerator.AbstractGenerator


Copyright © 2012. All Rights Reserved.