This topic type will be removed in a future release
@Deprecated public interface PagedRecordOrderedUpdateFactory extends PagedUpdateFactory
paged record
topics.
An ordered paged record topic is one that has declared
or comparator
ordering
.
Instances of this factory can be obtained from the TopicUpdateControl
feature using TopicUpdateControl.updateFactory(Class)
, for example:
TopicUpdateControl updateControl = session.feature(TopicUpdateControl.class);
PagedRecordOrderedUpdateFactory factory = updateControl.updateFactory(PagedRecordOrderedUpdateFactory.class);
Modifier and Type | Method and Description |
---|---|
Update |
add(Record line)
Deprecated.
Create an update that will add a line to the paged topic.
|
Update |
remove(Record line)
Deprecated.
Create an update that will remove a line of data from the paged topic.
|
Update |
update(Record line)
Deprecated.
Create an update that will update a line within the paged topic.
|
removeAll
Update add(Record line) throws IllegalArgumentException
The line will be added at the position indicated by the
ordering policy
of the topic. Duplicates will be
handled according to the duplicates policy
indicated
for the topic.
line
- the line to addIllegalArgumentException
- if line
is nullUpdate update(Record line) throws IllegalArgumentException
An update will involve removing a line that matches the supplied line
according to the ordering policy
and then adding
the new line.
Where there is more than one line that matches, the match would be made
according to the duplicates policy
. If there is no
line that matches the new line, the result would be the same as for a
simple add.
line
- the line of data to use for updateIllegalArgumentException
- if line
is nullUpdate remove(Record line) throws IllegalArgumentException
The ordering policy
is used to locate a line that
matches the specified line and that line is then removed. If no match is
found, no action occurs. If there is more than one line that matches, the
line removed would depend upon the duplicates policy
.
Only as much data as is needed to match a line according to its ordering policy is needed to locate a line for removal. For example, if the policy only orders on the first field of the Record, that is the only field that will be used when locating the line to remove.
line
- a record representing the line to removeIllegalArgumentException
- if line
is nullCopyright © 2016 Push Technology Ltd. All Rights Reserved.