public class BasicIRRelationIndexList extends Object implements IRRelationIndexList, IRSignatureIndexList
The class is used to write or load the relation indexing information for a given IR relation or relation set
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Constructor and Description |
|---|
BasicIRRelationIndexList(String filename,
boolean writingMode) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(IRRelation curRelation)
Adds a relation to the list.
|
void |
close()
Releases occupied resources.
|
IRRelation |
get(int index)
Gets the IRRelation object specified by its index
|
int |
getCacheSize() |
IRSignature |
getIRSignature(int index) |
void |
setCacheSize(int size) |
int |
size()
Gets the number of relations in the list.
|
public BasicIRRelationIndexList(String filename, boolean writingMode)
public void setCacheSize(int size)
public int getCacheSize()
public IRSignature getIRSignature(int index)
getIRSignature in interface IRSignatureIndexListpublic IRRelation get(int index)
IRRelationIndexListget in interface IRRelationIndexListindex - the index of the relationpublic boolean add(IRRelation curRelation)
IRRelationIndexListadd in interface IRRelationIndexListcurRelation - the relation for addingpublic int size()
IRRelationIndexListsize in interface IRRelationIndexListsize in interface IRSignatureIndexListpublic void close()
IRRelationIndexListclose in interface IRRelationIndexListclose in interface IRSignatureIndexListCopyright © 2018 JULIE Lab, Germany. All rights reserved.