IBM WebSphere Extended Deployment (XD)TM
Release 6.0

com.ibm.websphere.objectgrid.plugins.index
HashIndex

java.lang.Object

  |
  +--      com.ibm.websphere.objectgrid.plugins.index.HashIndex

All Implemented Interfaces
MapIndexPlugin


This is an attribute index that uses a Map to index the attributes. The Map is either a synchronized HashMap for a simple MapIndex or a synchronized TreeMap for the more complex MapRangeIndex support.


Constructor Summary
HashIndex()
           Creates a new HashIndex object.


Method Summary
public  voidsetName(java.lang.String)
           Sets the name of this index.
public  voidsetRangeIndex(boolean)
           Sets whether to create a MapRangeIndex or a MapIndex..
public  voiddoBatchUpdate(com.ibm.websphere.objectgrid.TxID, com.ibm.websphere.objectgrid.plugins.LogSequence)
          
public  voidundoBatchUpdate(com.ibm.websphere.objectgrid.TxID, com.ibm.websphere.objectgrid.plugins.LogSequence)
          
public  StringgetName()
          
public  StringgetAttributeName()
          
public  voidsetAttributeName(java.lang.String)
          
public  ObjectgetIndexProxy(com.ibm.websphere.objectgrid.plugins.index.MapIndexInfo)
          

Inherited Methods

Methods inherited from java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

HashIndex

public HashIndex( )
Creates a new HashIndex object.

Method Detail

setName

public void setName(String name)
Sets the name of this index.
Parameters:
    name - the name of the index


setRangeIndex

public void setRangeIndex(boolean rangeIndex)
Sets whether to create a MapRangeIndex or a MapIndex.

If this method is never called, a MapIndex is used as the default implementation.
See Also:

     MapIndex
     MapRangeIndex
     getIndex(String)
Parameters:
    rangeIndex - true for a MapRangeIndex, false for MapIndex


doBatchUpdate

public void doBatchUpdate(TxID txid,LogSequence sequence)

See Also:
     doBatchUpdate(TxID,LogSequence)
Parameters:

undoBatchUpdate

public void undoBatchUpdate(TxID txid,LogSequence sequence)

See Also:
     undoBatchUpdate(TxID, LogSequence)
Parameters:

getName

public String getName()

See Also:
     getName()


getAttributeName

public String getAttributeName()
Gets the attribute name for this index
See Also:
     setAttributeName(String)


Returns:
     the name specified as an argument to the setAttributeName(String) method or null if the setAttributeName method was not previously called


setAttributeName

public void setAttributeName(String attributeName)

See Also:
     setAttributeName(String)
Parameters:

getIndexProxy

public Object getIndexProxy(MapIndexInfo map)

See Also:
     getIndexProxy(MapIndexInfo)
Parameters:

IBM WebSphere Extended Deployment (XD)TM
Release 6.0