org.imemex.componentmappings.tuple.dbms
Class AbstractDBMSTupleComponentIndex

java.lang.Object
  extended by org.imemex.componentmappings.tuple.AbstractTupleComponentIndex
      extended by org.imemex.componentmappings.tuple.dbms.AbstractDBMSTupleComponentIndex
All Implemented Interfaces:
ComponentIndex<Tuple>, ComponentKeywordIndex<Tuple>, ComponentMapping<Tuple>, TupleComponentIndex
Direct Known Subclasses:
DBMSVerticalTupleComponentIndex, VerticalTupleComponentIndex

public abstract class AbstractDBMSTupleComponentIndex
extends AbstractTupleComponentIndex

This abstract class provides common functionality for DBMS-based implementations of tuple component indexes:

Author:
marcos

Constructor Summary
AbstractDBMSTupleComponentIndex()
           
 
Method Summary
 int getBufferSize()
          Get the number of elements which are buffered before being stored persistently by the index
 void rebuildMapping(boolean online)
          Rebuilds and optimzes the mapping (for instance an index).
 
Methods inherited from class org.imemex.componentmappings.tuple.AbstractTupleComponentIndex
finalize, isEmpty, query, queryByPredicate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.imemex.componentmappings.tuple.TupleComponentIndex
insert, queryByAttribute, queryByAttributeComplement, queryByAttributeEqual, queryByAttributeKeyword, queryByAttributeName, queryByAttributeRegex
 
Methods inherited from interface org.imemex.componentmappings.impl.ComponentKeywordIndex
queryByKeyword
 
Methods inherited from interface org.imemex.componentmappings.impl.ComponentIndex
queryByObject
 
Methods inherited from interface org.imemex.componentmappings.impl.ComponentMapping
clear, close, flushMapping, insert, insertAll, remove, removeAll, size
 

Constructor Detail

AbstractDBMSTupleComponentIndex

public AbstractDBMSTupleComponentIndex()
Method Detail

getBufferSize

public int getBufferSize()
Description copied from interface: ComponentMapping
Get the number of elements which are buffered before being stored persistently by the index

Returns:
the number of elements which are buffered before being stored persistently by the index

rebuildMapping

public void rebuildMapping(boolean online)
                    throws OnlineRebuildNotSupportedException
Description copied from interface: ComponentMapping
Rebuilds and optimzes the mapping (for instance an index).

Parameters:
online - - if true allows concurrent modifications to this ComponentMapping while rebuilding. If false this ComponentMapping is locked and no modifications are allowed during the rebuild.
Throws:
OnlineRebuildNotSupportedException