|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.raritantechnologies.verity.collection.FileSystemGateway
Collection Gateway is responsible for collecting files. For XML files a
XMLResultProcessor can be used to convert XML files into
XMLResultSets.
<CollectionGateway class="com.raritantechnologies.verity.collection.FileSystemGateway"
filePath="[ path to data files ]"
outputPath="[ (optional) directory to move processed data files to ]"
recurseSubdirectories="[ true|false(default) ]"
docTextField="[ result field to contain document text ]"
xmlDocs="[ true(default)|false ]"
filenameField="[ result field to contain filename ]"
startAt="[ file number to start with (0 by default) ]"
endAt="[ file number to end with (last file by default) ]"
multipleRecordsPerFile="true|false(default) ]"
recordTag="[ name of record tag (if multiple records per file is true ]"
startSegmentAt="[ optional string to start sub-file segment ]"
endSegmentAt="[ string to end sub-file segment ]"
resultSetSize="[ number of results in each result set ]" >
<!-- Optional StringFilter applied to string before it is sent to XMLResultProcessor -->
<StringFilter class="[class of com.raritantechnologies.utils.filter.IStringFilter]" >
</StringFilter>
<!-- Optional FileName Comparator -->
<FileNameComparator class="[ class of com.raritantechnologies.utils.comparators.IComparator ]" >
</FileNameComparator>
<!-- (Optional) One or more IStreamFilter's to handle non-text files -->
<StreamFilter class="[ class of com.raritantechnologies.utils.filter.IStreamFilter ]"
extension="[ file extension to use this filter with ]" >
</StreamFilter>
<!-- Common Properties Map (for multiple records per file) -->
<!-- Maps a property name with an XPath within the XML file -->
<CommonFields>
<Field ID="[ id of field ]" xPath="[ xpath within the XML file ]" />
<!-- etc. . . -->
</CommonFields>
<XMLResultProcessor>
<!-- configuration parameters for XMLResultProcessor -->
</XMLResultProcessor>
<!-- Mapping to FlatFileGateway(s) by fileName or file extension -->
</CollectionGateway>
| Constructor Summary | |
FileSystemGateway()
|
|
FileSystemGateway(java.lang.String rootPath,
boolean recurseSubdirectories)
|
|
| Method Summary | |
java.lang.String |
getConfigurationXML()
|
IGatewayListener |
getGatewayListener()
|
boolean |
getRecurseSubdirectories()
|
int |
getResultSetSize()
|
java.lang.String |
getRootDirectory()
|
XMLResultProcessor |
getXMLProcessor()
|
void |
initialize(org.w3c.dom.Element gatewayElem,
ISearchFieldMap sfMap)
Initialize the ICollectionGateway from a Configuration XML element. |
boolean |
isPaused()
|
void |
pause()
|
protected BasicResultSet |
processResult(BasicResultSet resSet,
java.lang.String text,
java.lang.String fileName)
|
void |
resume()
|
void |
run()
|
void |
run(ILoginInfo userInfo)
Need to have loginInfo for sources which require login/pw access. |
void |
setDataAvailable(IResultSet rs)
|
void |
setDataComplete()
|
void |
setGatewayListener(IGatewayListener listener)
Sets the IGatewayListener interface. |
void |
setInputParameters(OrderedMap inputParams)
set input parameters... |
void |
setRecurseSubdirectories(boolean recurseSubdirectories)
|
void |
setResultSetSize(int resultSetSize)
|
void |
setRootDirectory(java.lang.String rootDirectory)
|
void |
setXMLProcessor(XMLResultProcessor xmlProcessor)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileSystemGateway()
public FileSystemGateway(java.lang.String rootPath,
boolean recurseSubdirectories)
| Method Detail |
public void initialize(org.w3c.dom.Element gatewayElem,
ISearchFieldMap sfMap)
ICollectionGateway
initialize in interface ICollectionGatewaypublic void setInputParameters(OrderedMap inputParams)
ICollectionGateway
setInputParameters in interface ICollectionGatewaypublic void run()
run in interface ICollectionGateway
protected BasicResultSet processResult(BasicResultSet resSet,
java.lang.String text,
java.lang.String fileName)
public void run(ILoginInfo userInfo)
run in interface ICollectionGatewaypublic void setGatewayListener(IGatewayListener listener)
ICollectionGateway
setGatewayListener in interface ICollectionGatewaypublic void setDataAvailable(IResultSet rs)
public void setDataComplete()
public void pause()
pause in interface ICollectionGatewaypublic void resume()
resume in interface ICollectionGatewaypublic boolean isPaused()
isPaused in interface ICollectionGatewaypublic IGatewayListener getGatewayListener()
public void setRootDirectory(java.lang.String rootDirectory)
public java.lang.String getRootDirectory()
public void setRecurseSubdirectories(boolean recurseSubdirectories)
public boolean getRecurseSubdirectories()
public void setXMLProcessor(XMLResultProcessor xmlProcessor)
public XMLResultProcessor getXMLProcessor()
public void setResultSetSize(int resultSetSize)
public int getResultSetSize()
public java.lang.String getConfigurationXML()
getConfigurationXML in interface ICollectionGateway
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||