Package tilda.db.processors
Class RegexMatchingRP
- java.lang.Object
-
- tilda.db.processors.RegexMatchingRP
-
- All Implemented Interfaces:
RecordProcessor
public class RegexMatchingRP extends java.lang.Object implements RecordProcessor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRegexMatchingRP.RegexDef
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<RegexMatchingRP.RegexDef>_Regexesprotected int_Unmatched
-
Constructor Summary
Constructors Constructor Description RegexMatchingRP(java.util.List<RegexMatchingRP.RegexDef> Regexes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidend(boolean hasMore, int MaxIndex)Called after the last record has been processed successfullyintgetUnmatchedCount()booleanprocess(int Index, java.sql.ResultSet RS)Called for each recordvoidstart()Called before the first record is processed
-
-
-
Field Detail
-
_Regexes
protected java.util.List<RegexMatchingRP.RegexDef> _Regexes
-
_Unmatched
protected int _Unmatched
-
-
Constructor Detail
-
RegexMatchingRP
public RegexMatchingRP(java.util.List<RegexMatchingRP.RegexDef> Regexes)
-
-
Method Detail
-
start
public void start()
Description copied from interface:RecordProcessorCalled before the first record is processed- Specified by:
startin interfaceRecordProcessor
-
process
public boolean process(int Index, java.sql.ResultSet RS) throws java.sql.SQLExceptionDescription copied from interface:RecordProcessorCalled for each record- Specified by:
processin interfaceRecordProcessor- Parameters:
Index- the count of the record being processed starting at 0 for the first recordRS- the result set to be processed- Returns:
- whether this was successful or not. If false is returned, the process will be aborted.
- Throws:
java.sql.SQLException
-
end
public void end(boolean hasMore, int MaxIndex)Description copied from interface:RecordProcessorCalled after the last record has been processed successfully- Specified by:
endin interfaceRecordProcessor- Parameters:
hasMore- whether there are more records to be processedMaxIndex- the max count originally supplied to the query handler
-
getUnmatchedCount
public int getUnmatchedCount()
-
-