public final class QueueWrappingColumnView<K,V> extends Object implements QueueColumnView
ColumnViewInternal.DOp, ColumnViewInternal.MarshableFilter, ColumnViewInternal.MarshableOrderBy, ColumnViewInternal.SortedFilter
Constructor and Description |
---|
QueueWrappingColumnView(RequestContext requestContext,
Asset asset,
@NotNull QueueView<String,V> queueView) |
Modifier and Type | Method and Description |
---|---|
Asset |
asset() |
boolean |
canDeleteRows() |
int |
changedRow(@NotNull Map<String,Object> row,
@NotNull Map<String,Object> oldRow)
used to add, update and delete rows
called when ever the user modify the cells and the data changes
|
@NotNull List<Column> |
columns() |
boolean |
containsRowWithKey(@NotNull List keys) |
@Nullable Predicate<QueueView.Excerpt<String,V>> |
filter(@Nullable List<ColumnViewInternal.MarshableFilter> filters) |
@NotNull ClosableIterator<ChronicleQueueRow> |
iterator(@NotNull ColumnViewInternal.SortedFilter filters) |
@Nullable ObjectSubscription |
objectSubscription() |
void |
registerChangeListener(@NotNull Runnable r)
called whenever some data in the underlying structure has changed and hence the visual
layer has to be refreshed
|
int |
rowCount(@NotNull ColumnViewInternal.SortedFilter filters) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
predicate, toPredicate
public QueueWrappingColumnView(RequestContext requestContext, Asset asset, @NotNull @NotNull QueueView<String,V> queueView)
public void registerChangeListener(@NotNull @NotNull Runnable r)
ColumnViewInternal
registerChangeListener
in interface ColumnViewInternal
r
- to refresh the visual layer@NotNull public @NotNull ClosableIterator<ChronicleQueueRow> iterator(@NotNull @NotNull ColumnViewInternal.SortedFilter filters)
iterator
in interface ColumnViewInternal
public boolean containsRowWithKey(@NotNull @NotNull List keys)
containsRowWithKey
in interface ColumnViewInternal
@Nullable public @Nullable ObjectSubscription objectSubscription()
objectSubscription
in interface ColumnViewInternal
public Asset asset()
asset
in interface ColumnViewInternal
@NotNull public @NotNull List<Column> columns()
columns
in interface ColumnViewInternal
public boolean canDeleteRows()
canDeleteRows
in interface ColumnViewInternal
public int changedRow(@NotNull @NotNull Map<String,Object> row, @NotNull @NotNull Map<String,Object> oldRow)
ColumnViewInternal
changedRow
in interface ColumnViewInternal
row
- if row
is empty, the row is removed, based on the key in oldRow
oldRow
- if oldRow
is empty, the row is added , based on the key in row
@Nullable public @Nullable Predicate<QueueView.Excerpt<String,V>> filter(@Nullable @Nullable List<ColumnViewInternal.MarshableFilter> filters)
public int rowCount(@NotNull @NotNull ColumnViewInternal.SortedFilter filters)
rowCount
in interface ColumnViewInternal
filters
- if sortedFilter
== null or empty all the total number of rows is
returnedCopyright © 2021. All rights reserved.