|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xcmis.search.lucene.index.IndexInfo
public class IndexInfo
Created by The eXo Platform SAS.
| Constructor Summary | |
|---|---|
IndexInfo(String fileName)
Creates a new IndexInfos using fileName. |
|
| Method Summary | |
|---|---|
void |
addName(String indexName)
Adds a name to the index infos. |
boolean |
contains(String indexName)
Returns true if name exists in this
IndexInfos; false otherwise. |
boolean |
exists(File dir)
Returns true if this index infos exists in dir. |
String |
getFileName()
Returns the name of the file where infos are stored. |
String |
getName(int i)
Returns the index name at position i. |
String |
newName()
Returns a new unique name for an index folder. |
void |
read(File dir)
Reads the index infos. |
void |
removeName(int i)
Removes the name from the index infos. |
void |
removeName(String indexName)
Removes the name from the index infos. |
int |
size()
Returns the number of index names. |
void |
write(File dir)
Writes the index infos to disk if they are dirty. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexInfo(String fileName)
fileName.
fileName - the name of the file where infos are stored.| Method Detail |
|---|
public boolean exists(File dir)
true if this index infos exists in dir.
dir - the directory where to look for the index infos.
true if it exists; false otherwise.public String getFileName()
public void read(File dir)
throws IndexException
dir - the directory from where to read the index infos.
IOException - if an error occurs.
IndexException
public void write(File dir)
throws IOException
dir - the directory where to write the index infos.
IOException - if an error occurs.public String getName(int i)
i.
i - the position.
public int size()
public void addName(String indexName)
name - the name to add.public void removeName(String indexName)
name - the name to remove.public void removeName(int i)
i - the position.public boolean contains(String indexName)
true if name exists in this
IndexInfos; false otherwise.
name - the name to test existence.
true it is exists in this IndexInfos.public String newName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||