|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HistoryReader
Used to serach over the history records
| Method Summary | |
|---|---|
void |
addSearchProgressListener(HistorySearchProgressListener listener)
Adding progress listener for monitoring progress of search process |
int |
countRecords()
Total count of records that current history reader will read through |
QueryResultSet<HistoryRecord> |
findByEndDate(Date endDate)
Searches the history for all records with timestamp before endDate. |
QueryResultSet<HistoryRecord> |
findByKeyword(String keyword,
String field)
Searches the history for all records containing the keyword. |
QueryResultSet<HistoryRecord> |
findByKeyword(String keyword,
String field,
boolean caseSensitive)
Searches the history for all records containing the keyword. |
QueryResultSet<HistoryRecord> |
findByKeywords(String[] keywords,
String field)
Searches the history for all records containing all keywords. |
QueryResultSet<HistoryRecord> |
findByKeywords(String[] keywords,
String field,
boolean caseSensitive)
Searches the history for all records containing all keywords. |
QueryResultSet<HistoryRecord> |
findByPeriod(Date startDate,
Date endDate)
Searches the history for all records with timestamp between startDate and endDate. |
QueryResultSet<HistoryRecord> |
findByPeriod(Date startDate,
Date endDate,
String[] keywords,
String field)
Searches for all history records containing all keywords, with timestamp between startDate and endDate. |
QueryResultSet<HistoryRecord> |
findByPeriod(Date startDate,
Date endDate,
String[] keywords,
String field,
boolean caseSensitive)
Searches for all history records containing all keywords, with timestamp between startDate and endDate. |
QueryResultSet<HistoryRecord> |
findByStartDate(Date startDate)
Searches the history for all records with timestamp after startDate. |
QueryResultSet<HistoryRecord> |
findFirstRecordsAfter(Date date,
int count)
Returns the supplied number of recent messages after the given date |
QueryResultSet<HistoryRecord> |
findLast(int count)
Returns the supplied number of recent messages |
QueryResultSet<HistoryRecord> |
findLastRecordsBefore(Date date,
int count)
Returns the supplied number of recent messages before the given date |
void |
removeSearchProgressListener(HistorySearchProgressListener listener)
Removing progress listener |
| Method Detail |
|---|
QueryResultSet<HistoryRecord> findByStartDate(Date startDate)
throws RuntimeException
startDate - the date after all records will be returned
RuntimeException - Thrown if an exception occurs during the execution of the
query, such as internal IO error.
QueryResultSet<HistoryRecord> findByEndDate(Date endDate)
throws RuntimeException
endDate - the date before which all records will be returned
RuntimeException - Thrown if an exception occurs during the execution of the
query, such as internal IO error.
QueryResultSet<HistoryRecord> findByPeriod(Date startDate,
Date endDate)
throws RuntimeException
startDate - start of the interval in which we searchendDate - end of the interval in which we search
RuntimeException - Thrown if an exception occurs during the execution of the
query, such as internal IO error.
QueryResultSet<HistoryRecord> findByKeyword(String keyword,
String field)
throws RuntimeException
keyword - the keyword to search forfield - the field where to look for the keyword
RuntimeException - Thrown if an exception occurs during the execution of the
query, such as internal IO error.
QueryResultSet<HistoryRecord> findByKeyword(String keyword,
String field,
boolean caseSensitive)
throws RuntimeException
keyword - the keyword to search forfield - the field where to look for the keywordcaseSensitive - is keywords search case sensitive
RuntimeException - Thrown if an exception occurs during the execution of the
query, such as internal IO error.
QueryResultSet<HistoryRecord> findByKeywords(String[] keywords,
String field)
throws RuntimeException
keywords - array of keywords we search forfield - the field where to look for the keyword
RuntimeException - Thrown if an exception occurs during the execution of the
query, such as internal IO error.
QueryResultSet<HistoryRecord> findByKeywords(String[] keywords,
String field,
boolean caseSensitive)
throws RuntimeException
keywords - array of keywords we search forfield - the field where to look for the keywordcaseSensitive - is keywords search case sensitive
RuntimeException - Thrown if an exception occurs during the execution of the
query, such as internal IO error.
QueryResultSet<HistoryRecord> findByPeriod(Date startDate,
Date endDate,
String[] keywords,
String field)
throws UnsupportedOperationException
startDate - start of the interval in which we searchendDate - end of the interval in which we searchkeywords - array of keywords we search forfield - the field where to look for the keyword
UnsupportedOperationException - Thrown if an exception occurs during the execution of the
query, such as internal IO error.
QueryResultSet<HistoryRecord> findByPeriod(Date startDate,
Date endDate,
String[] keywords,
String field,
boolean caseSensitive)
throws UnsupportedOperationException
startDate - start of the interval in which we searchendDate - end of the interval in which we searchkeywords - array of keywords we search forfield - the field where to look for the keywordcaseSensitive - is keywords search case sensitive
UnsupportedOperationException - Thrown if an exception occurs during the execution of the
query, such as internal IO error.
QueryResultSet<HistoryRecord> findLast(int count)
throws RuntimeException
count - messages count
RuntimeException
QueryResultSet<HistoryRecord> findFirstRecordsAfter(Date date,
int count)
throws RuntimeException
date - messages after datecount - messages count
RuntimeException
QueryResultSet<HistoryRecord> findLastRecordsBefore(Date date,
int count)
throws RuntimeException
date - messages before datecount - messages count
RuntimeExceptionvoid addSearchProgressListener(HistorySearchProgressListener listener)
listener - HistorySearchProgressListenervoid removeSearchProgressListener(HistorySearchProgressListener listener)
listener - HistorySearchProgressListener
int countRecords()
throws UnsupportedOperationException
UnsupportedOperationException - Thrown if an exception occurs during the execution of the
query, such as internal IO error.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||