vishnu.model.indexes.hashing
Class StaticHashIndex

java.lang.Object
  extended by vishnu.model.indexes.AbstractIndex
      extended by vishnu.model.indexes.hashing.AbstractHashIndex
          extended by vishnu.model.indexes.hashing.StaticHashIndex
All Implemented Interfaces:
HashIndex, Index

public class StaticHashIndex
extends AbstractHashIndex

 Implementation details:
 
 Index Table Signature
 type:IntegerValue | identifier:IntegerValue | searchKey0: T0 | searchKey1: T1 | ... | searchKeyN: TN  
 
 Al encontrar:
 nextBucketIdentifier==actualBucketIdentifier: fin del bucket 
 

Author:
Hernan Rancati
 

Nested Class Summary
static interface StaticHashIndex.Type
           
 
Nested classes/interfaces inherited from interface vishnu.model.indexes.hashing.HashIndex
HashIndex.HashingStrategyNotSelectedException
 
Field Summary
 
Fields inherited from class vishnu.model.indexes.AbstractIndex
context
 
Fields inherited from interface vishnu.model.indexes.Index
BTREE, CLUSTERED, HASH, UNIQUE
 
Constructor Summary
StaticHashIndex(java.lang.String name, boolean isUnique, boolean isClustered, java.util.List<java.lang.String> searchKeys)
           
 
Method Summary
protected  void create()
           
protected  void createBucketPage(int bucketPage)
           
protected  void createBuckets()
           
 Record createSearchKeyRecord()
           
protected  TableSignature indexSignature()
           
protected  void initialize()
           
 RecordSet matchingRecords(Record searchKeyValues)
           
 void notifyInsert(Record r)
           
protected  void open()
           
 TableSignature searchSignature()
           
 
Methods inherited from class vishnu.model.indexes.hashing.AbstractHashIndex
hashingStrategy, hashingStrategy
 
Methods inherited from class vishnu.model.indexes.AbstractIndex
attach, database, getStructure, getStructureIdentifier, getTable, isClustered, isUnique, name, notifyDelete, notifyUpdate, searchKeys, userContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface vishnu.model.indexes.Index
attach, getStructure, getStructureIdentifier, isClustered, isUnique, name, notifyDelete, notifyUpdate, searchKeys
 

Constructor Detail

StaticHashIndex

public StaticHashIndex(java.lang.String name,
                       boolean isUnique,
                       boolean isClustered,
                       java.util.List<java.lang.String> searchKeys)
Method Detail

matchingRecords

public RecordSet matchingRecords(Record searchKeyValues)

initialize

protected void initialize()

open

protected void open()

create

protected void create()

createBuckets

protected void createBuckets()

createBucketPage

protected void createBucketPage(int bucketPage)

indexSignature

protected TableSignature indexSignature()

notifyInsert

public void notifyInsert(Record r)

searchSignature

public TableSignature searchSignature()

createSearchKeyRecord

public Record createSearchKeyRecord()