public class TimelineStoreImpl extends Object implements TimelineStore
| Constructor and Description |
|---|
TimelineStoreImpl(SyncClient client,
TimelineSchema schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the writer and thread pool.
|
TimelineQueue |
createTimelineQueue(TimelineIdentifier identifier)
Create and get the timeline queue with specified identifier.
|
void |
dropAllTables()
Drop the table of timeline.
|
void |
flush()
Flush all the messages in buffer, wait until finish writing.
|
void |
prepareTables()
Create the table of timeline.
|
SearchResult<TimelineEntry> |
search(SearchParameter searchParameter)
Search timeline entries by search parameter.
|
SearchResult<TimelineEntry> |
search(SearchQuery searchQuery)
Search TimelineEntry by search parameter.
|
public TimelineStoreImpl(SyncClient client, TimelineSchema schema)
public TimelineQueue createTimelineQueue(TimelineIdentifier identifier)
TimelineStorecreateTimelineQueue in interface TimelineStoreidentifier - The identifier of timeline.public SearchResult<TimelineEntry> search(SearchParameter searchParameter)
TimelineStoresearch in interface TimelineStoresearchParameter - The parameter of search, which will convert to SearchQuery.public SearchResult<TimelineEntry> search(SearchQuery searchQuery)
TimelineStoresearch in interface TimelineStoresearchQuery - The SearchQuery of search, which is self-defined query condition.public void prepareTables()
TimelineStoreprepareTables in interface TimelineStorepublic void dropAllTables()
TimelineStoredropAllTables in interface TimelineStorepublic void flush()
TimelineStoreflush in interface TimelineStorepublic void close()
TimelineStoreclose in interface TimelineStoreCopyright © 2024. All Rights Reserved.