dragon.ir.index
Class BasicIRTermIndexList

java.lang.Object
  |
  +--dragon.ir.index.BasicIRTermIndexList
All Implemented Interfaces:
IRSignatureIndexList, IRTermIndexList

public class BasicIRTermIndexList
extends java.lang.Object
implements IRTermIndexList, IRSignatureIndexList

The class is used to write or load the relation indexing information for a given IR term or term set

Copyright: Copyright (c) 2005

Company: IST, Drexel University

Version:
1.0
Author:
Davis Zhou

Constructor Summary
BasicIRTermIndexList(java.lang.String filename, boolean writingMode)
           
 
Method Summary
 boolean add(IRTerm curTerm)
          Adds the term to the list
 void close()
          Releases occupied resources
 IRTerm get(int index)
          Gets the IRTerm object specified by the index
 IRSignature getIRSignature(int index)
           
 int size()
          Gets the number of terms in the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicIRTermIndexList

public BasicIRTermIndexList(java.lang.String filename,
                            boolean writingMode)
Method Detail

getIRSignature

public IRSignature getIRSignature(int index)
Specified by:
getIRSignature in interface IRSignatureIndexList

get

public IRTerm get(int index)
Description copied from interface: IRTermIndexList
Gets the IRTerm object specified by the index

Specified by:
get in interface IRTermIndexList
Parameters:
index - the index of the term
Returns:
the IRTerm object specified by the index

add

public boolean add(IRTerm curTerm)
Description copied from interface: IRTermIndexList
Adds the term to the list

Specified by:
add in interface IRTermIndexList
Parameters:
curTerm - the term for adding
Returns:
true if addes successfully

close

public void close()
Description copied from interface: IRTermIndexList
Releases occupied resources

Specified by:
close in interface IRTermIndexList

size

public int size()
Description copied from interface: IRTermIndexList
Gets the number of terms in the list

Specified by:
size in interface IRTermIndexList
Returns:
the number of terms in the list