Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mom4j.ostore
Class MasterIndex  view MasterIndex download MasterIndex.java

java.lang.Object
  extended byorg.mom4j.ostore.Index
      extended byorg.mom4j.ostore.MasterIndex

public final class MasterIndex
extends Index


Field Summary
private  java.util.HashMap entries
           
static java.lang.String NAME
           
 
Fields inherited from class org.mom4j.ostore.Index
file, firstEntryPtr, HEADER_LENGTH, lastEntryPtr, MAX_NAME_LENGTH, name, type
 
Constructor Summary
(package private) MasterIndex()
           
 
Method Summary
(package private)  void addEntry(IndexEntry entry)
           
(package private)  int getIndexEntrySize()
           
 IndexEntry getMatch(java.lang.Long objectId)
           
 java.util.Collection getMatches(IndexQuery query)
           
(package private)  java.lang.Object readIndexValue()
           
(package private)  java.util.Collection removeIndexEntries(java.lang.Long objectId)
           
(package private)  void writeIndexValue(IndexEntry entry)
           
 
Methods inherited from class org.mom4j.ostore.Index
add, add, checkIndexEntry, create, getName, getType, read, remove, setRandomAccessFile, toString, writeHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

entries

private java.util.HashMap entries
Constructor Detail

MasterIndex

MasterIndex()
Method Detail

readIndexValue

java.lang.Object readIndexValue()
                          throws java.io.IOException
Specified by:
readIndexValue in class Index

writeIndexValue

void writeIndexValue(IndexEntry entry)
               throws java.io.IOException
Specified by:
writeIndexValue in class Index

addEntry

void addEntry(IndexEntry entry)
Specified by:
addEntry in class Index

removeIndexEntries

java.util.Collection removeIndexEntries(java.lang.Long objectId)
Specified by:
removeIndexEntries in class Index

getMatch

public IndexEntry getMatch(java.lang.Long objectId)

getMatches

public java.util.Collection getMatches(IndexQuery query)
Specified by:
getMatches in class Index

getIndexEntrySize

int getIndexEntrySize()
Specified by:
getIndexEntrySize in class Index