org.teiid.internal.core.index
Class IndexedFile

java.lang.Object
  extended by 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
protected  int fileNumber
           
protected  String path
           
 
Constructor Summary
IndexedFile(IDocument document, int fileNum)
           
IndexedFile(String path, int fileNum)
           
 
Method Summary
 int compareTo(IndexedFile other)
           
 int footprint()
          Returns the size of the indexedFile.
 int getFileNumber()
          Returns the file number.
 String getPath()
          Returns the path.
 void setFileNumber(int fileNumber)
          Sets the file number.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

path

protected String path

fileNumber

protected int fileNumber
Constructor Detail

IndexedFile

public IndexedFile(String path,
                   int fileNum)

IndexedFile

public IndexedFile(IDocument document,
                   int fileNum)
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:
getPath in interface IQueryResult

setFileNumber

public void setFileNumber(int fileNumber)
Sets the file number.


toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(IndexedFile other)
Specified by:
compareTo in interface Comparable<IndexedFile>


Copyright © 2011. All Rights Reserved.