Package org.teiid.internal.core.index
Class IndexedFile
- java.lang.Object
-
- org.teiid.internal.core.index.IndexedFile
-
- All Implemented Interfaces:
Comparable<IndexedFile>,IQueryResult
public class IndexedFile extends Object implements IQueryResult, Comparable<IndexedFile>
An indexedFile associates a number to a document path, and document properties. It is what we add into an index, and the result of a query.
-
-
Field Summary
Fields Modifier and Type Field Description protected intfileNumberprotected Stringpath
-
Constructor Summary
Constructors Constructor Description IndexedFile(String path, int fileNum)IndexedFile(IDocument document, int fileNum)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IndexedFile other)intfootprint()Returns the size of the indexedFile.intgetFileNumber()Returns the file number.StringgetPath()Returns the path.voidsetFileNumber(int fileNumber)Sets the file number.StringtoString()
-
-
-
Field Detail
-
path
protected String path
-
fileNumber
protected int fileNumber
-
-
Method Detail
-
footprint
public int footprint()
Returns the size of the indexedFile.
-
getFileNumber
public int getFileNumber()
Returns the file number.
-
getPath
public String getPath()
Returns the path.- Specified by:
getPathin interfaceIQueryResult
-
setFileNumber
public void setFileNumber(int fileNumber)
Sets the file number.
-
compareTo
public int compareTo(IndexedFile other)
- Specified by:
compareToin interfaceComparable<IndexedFile>
-
-