org.erowid.sperosearch.splitindex
Class SplitIndexSegmentFactory

java.lang.Object
  extended byorg.erowid.sperosearch.splitindex.SplitIndexSegmentFactory

public class SplitIndexSegmentFactory
extends Object

A factory and cache of SplitIndexSegment objects.

Version:
: $Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperosearch/splitindex/SplitIndexSegmentFactory.java,v 1.1 2005/06/02 06:07:58 gurustu Exp $
Author:
: $Author: gurustu $

Constructor Summary
SplitIndexSegmentFactory(int mapSize)
          Creates a(n) SplitIndexSegmentFactory object.
 
Method Summary
 void close()
          Cleans up resources.
 SplitIndexSegment getSegment(SplitIndexFileDescriptor fileDescriptor, int segment)
          Returns the segment corresponding to the passed in logical file and segment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SplitIndexSegmentFactory

public SplitIndexSegmentFactory(int mapSize)
Creates a(n) SplitIndexSegmentFactory object.

Method Detail

getSegment

public SplitIndexSegment getSegment(SplitIndexFileDescriptor fileDescriptor,
                                    int segment)
                             throws IOException
Returns the segment corresponding to the passed in logical file and segment.

Throws:
IOException

close

public void close()
Cleans up resources.


spero logo small Sperowider is
© 2005 Erowid.org