com.amazon.carbonado.spi
Class StoredLob.Block

java.lang.Object
  extended by com.amazon.carbonado.spi.StoredLob.Block
All Implemented Interfaces:
Storable<StoredLob.Block>
Enclosing class:
StoredLob

@PrimaryKey(value={"locator","+blockNumber"})
public abstract static class StoredLob.Block
extends Object
implements Storable<StoredLob.Block>

Blocks stored here.


Constructor Summary
StoredLob.Block()
           
 
Method Summary
abstract  int getBlockNumber()
          First block number is logically zero, but subtract 0x80000000 to get actual number.
abstract  byte[] getData()
           
abstract  long getLocator()
           
abstract  int getVersion()
           
abstract  void setBlockNumber(int number)
           
abstract  void setData(byte[] data)
           
abstract  void setLocator(long locator)
           
abstract  void setVersion(int version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.amazon.carbonado.Storable
copy, copyAllProperties, copyDirtyProperties, copyPrimaryKeyProperties, copyUnequalProperties, copyVersionProperty, delete, equalPrimaryKeys, equalProperties, equals, getPropertyValue, hasDirtyProperties, hashCode, insert, isPropertyClean, isPropertyDirty, isPropertySupported, isPropertyUninitialized, load, markAllPropertiesClean, markAllPropertiesDirty, markPropertiesClean, markPropertiesDirty, prepare, propertyMap, readFrom, setPropertyValue, storableType, toString, toStringKeyOnly, tryDelete, tryInsert, tryLoad, tryUpdate, update, writeTo
 

Constructor Detail

StoredLob.Block

public StoredLob.Block()
Method Detail

getLocator

public abstract long getLocator()

setLocator

public abstract void setLocator(long locator)

getBlockNumber

public abstract int getBlockNumber()
First block number is logically zero, but subtract 0x80000000 to get actual number. This effectively makes the block number unsigned.


setBlockNumber

public abstract void setBlockNumber(int number)

getData

public abstract byte[] getData()

setData

public abstract void setData(byte[] data)

getVersion

@Version
public abstract int getVersion()

setVersion

public abstract void setVersion(int version)


Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.