public interface HistoryReader
Modifier and Type | Method and Description |
---|---|
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(java.util.Date endDate)
Searches the history for all records with timestamp before
endDate.
|
QueryResultSet<HistoryRecord> |
findByKeyword(java.lang.String keyword,
java.lang.String field)
Searches the history for all records containing the keyword.
|
QueryResultSet<HistoryRecord> |
findByKeyword(java.lang.String keyword,
java.lang.String field,
boolean caseSensitive)
Searches the history for all records containing the keyword.
|
QueryResultSet<HistoryRecord> |
findByKeywords(java.lang.String[] keywords,
java.lang.String field)
Searches the history for all records containing all keywords.
|
QueryResultSet<HistoryRecord> |
findByKeywords(java.lang.String[] keywords,
java.lang.String field,
boolean caseSensitive)
Searches the history for all records containing all keywords.
|
QueryResultSet<HistoryRecord> |
findByPeriod(java.util.Date startDate,
java.util.Date endDate)
Searches the history for all records with timestamp between
startDate and endDate.
|
QueryResultSet<HistoryRecord> |
findByPeriod(java.util.Date startDate,
java.util.Date endDate,
java.lang.String[] keywords,
java.lang.String field)
Searches for all history records containing all keywords,
with timestamp between startDate and endDate.
|
QueryResultSet<HistoryRecord> |
findByPeriod(java.util.Date startDate,
java.util.Date endDate,
java.lang.String[] keywords,
java.lang.String field,
boolean caseSensitive)
Searches for all history records containing all keywords,
with timestamp between startDate and endDate.
|
QueryResultSet<HistoryRecord> |
findByStartDate(java.util.Date startDate)
Searches the history for all records with timestamp after
startDate.
|
QueryResultSet<HistoryRecord> |
findFirstRecordsAfter(java.util.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> |
findLast(int count,
java.lang.String[] keywords,
java.lang.String field,
boolean caseSensitive)
Returns the supplied number of recent messages
containing all keywords.
|
QueryResultSet<HistoryRecord> |
findLastRecordsBefore(java.util.Date date,
int count)
Returns the supplied number of recent messages before the given date
|
void |
removeSearchProgressListener(HistorySearchProgressListener listener)
Removing progress listener
|
QueryResultSet<HistoryRecord> findByStartDate(java.util.Date startDate) throws java.lang.RuntimeException
startDate
- the date after all records will be returnedjava.lang.RuntimeException
- Thrown if an exception occurs during the execution of the
query, such as internal IO error.QueryResultSet<HistoryRecord> findByEndDate(java.util.Date endDate) throws java.lang.RuntimeException
endDate
- the date before which all records will be returnedjava.lang.RuntimeException
- Thrown if an exception occurs during the execution of the
query, such as internal IO error.QueryResultSet<HistoryRecord> findByPeriod(java.util.Date startDate, java.util.Date endDate) throws java.lang.RuntimeException
startDate
- start of the interval in which we searchendDate
- end of the interval in which we searchjava.lang.RuntimeException
- Thrown if an exception occurs during the execution of the
query, such as internal IO error.QueryResultSet<HistoryRecord> findByKeyword(java.lang.String keyword, java.lang.String field) throws java.lang.RuntimeException
keyword
- the keyword to search forfield
- the field where to look for the keywordjava.lang.RuntimeException
- Thrown if an exception occurs during the execution of the
query, such as internal IO error.QueryResultSet<HistoryRecord> findByKeyword(java.lang.String keyword, java.lang.String field, boolean caseSensitive) throws java.lang.RuntimeException
keyword
- the keyword to search forfield
- the field where to look for the keywordcaseSensitive
- is keywords search case sensitivejava.lang.RuntimeException
- Thrown if an exception occurs during the execution of the
query, such as internal IO error.QueryResultSet<HistoryRecord> findByKeywords(java.lang.String[] keywords, java.lang.String field) throws java.lang.RuntimeException
keywords
- array of keywords we search forfield
- the field where to look for the keywordjava.lang.RuntimeException
- Thrown if an exception occurs during the execution of the
query, such as internal IO error.QueryResultSet<HistoryRecord> findByKeywords(java.lang.String[] keywords, java.lang.String field, boolean caseSensitive) throws java.lang.RuntimeException
keywords
- array of keywords we search forfield
- the field where to look for the keywordcaseSensitive
- is keywords search case sensitivejava.lang.RuntimeException
- Thrown if an exception occurs during the execution of the
query, such as internal IO error.QueryResultSet<HistoryRecord> findByPeriod(java.util.Date startDate, java.util.Date endDate, java.lang.String[] keywords, java.lang.String field) throws java.lang.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 keywordjava.lang.UnsupportedOperationException
- Thrown if an exception occurs during the execution of the
query, such as internal IO error.QueryResultSet<HistoryRecord> findByPeriod(java.util.Date startDate, java.util.Date endDate, java.lang.String[] keywords, java.lang.String field, boolean caseSensitive) throws java.lang.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 sensitivejava.lang.UnsupportedOperationException
- Thrown if an exception occurs during the execution of the
query, such as internal IO error.QueryResultSet<HistoryRecord> findLast(int count) throws java.lang.RuntimeException
count
- messages countjava.lang.RuntimeException
QueryResultSet<HistoryRecord> findLast(int count, java.lang.String[] keywords, java.lang.String field, boolean caseSensitive) throws java.lang.RuntimeException
count
- messages countkeywords
- array of keywords we search forfield
- the field where to look for the keywordcaseSensitive
- is keywords search case sensitivejava.lang.RuntimeException
QueryResultSet<HistoryRecord> findFirstRecordsAfter(java.util.Date date, int count) throws java.lang.RuntimeException
date
- messages after datecount
- messages countjava.lang.RuntimeException
QueryResultSet<HistoryRecord> findLastRecordsBefore(java.util.Date date, int count) throws java.lang.RuntimeException
date
- messages before datecount
- messages countjava.lang.RuntimeException
void addSearchProgressListener(HistorySearchProgressListener listener)
listener
- HistorySearchProgressListenervoid removeSearchProgressListener(HistorySearchProgressListener listener)
listener
- HistorySearchProgressListenerint countRecords() throws java.lang.UnsupportedOperationException
java.lang.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.
Distributable under Apache license.