|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndexSelector
IndexSelector
Method Summary | |
---|---|
java.io.File |
getFile(java.lang.String path)
Return the file at the given relative path in the vdb. |
java.io.InputStream |
getFileContent(java.lang.String path)
Return a InputStream the contents of the file at path relative to the directory location of the index files. |
java.io.InputStream |
getFileContent(java.lang.String path,
java.lang.String[] tokens,
java.lang.String[] tokenRelacements)
Return a InputStream the contents of the file at path relative to the directory location of the index files. |
java.lang.String |
getFileContentAsString(java.lang.String path)
Return a strings that represent contents of the file at paths relative to the directory location of the index files. |
java.util.List |
getFileContentsAsString(java.util.List paths)
Return the collection of strings that represent contents of the files at paths relative to the directory location of the index files. |
java.lang.String[] |
getFilePaths()
Get the relative paths to files in the vdb. |
long |
getFileSize(java.lang.String path)
Get the length of the file after token replacement if any is compleate. |
com.metamatrix.internal.core.index.Index[] |
getIndexes()
Return the array of com.metamatrix.internal.core.index.IIndex
instances to use |
boolean |
isValid()
Return boolean indicating if indexes on this selector are good to use. |
void |
setValid(boolean valid)
Set boolean indicating if indexes on this selector are good to use. |
Method Detail |
---|
com.metamatrix.internal.core.index.Index[] getIndexes() throws java.io.IOException
com.metamatrix.internal.core.index.IIndex
instances to use
java.io.IOException
- if errors are encountered obtaining the index filejava.lang.String[] getFilePaths()
java.util.List getFileContentsAsString(java.util.List paths)
paths
- collection of paths for files
java.lang.String getFileContentAsString(java.lang.String path)
path
- The path to the file
java.io.InputStream getFileContent(java.lang.String path, java.lang.String[] tokens, java.lang.String[] tokenRelacements)
path
- The path to the filetokens
- The tokens found in the file that need to be replacedtokenReplacements
- The strings used to replace tokens in the file
java.io.File getFile(java.lang.String path)
path
- The path to the filelong getFileSize(java.lang.String path)
path
- The path to the file
java.io.InputStream getFileContent(java.lang.String path)
path
- The path to the file
boolean isValid()
void setValid(boolean valid)
true
- if the indexes on the selector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |