use of com.hazelcast.collection.impl.list.ListContainer in project hazelcast by hazelcast.
the class ListIndexOfOperation method run.
@Override
public void run() throws Exception {
ListContainer listContainer = getOrCreateListContainer();
response = listContainer.indexOf(last, value);
}
use of com.hazelcast.collection.impl.list.ListContainer in project hazelcast by hazelcast.
the class ListRemoveOperation method run.
@Override
public void run() throws Exception {
ListContainer listContainer = getOrCreateListContainer();
final CollectionItem item = listContainer.remove(index);
itemId = item.getItemId();
response = item.getValue();
}
use of com.hazelcast.collection.impl.list.ListContainer in project hazelcast by hazelcast.
the class ListSetBackupOperation method run.
@Override
public void run() throws Exception {
ListContainer listContainer = getOrCreateListContainer();
listContainer.setBackup(oldItemId, itemId, value);
}
use of com.hazelcast.collection.impl.list.ListContainer in project hazelcast by hazelcast.
the class ListSetOperation method run.
@Override
public void run() throws Exception {
ListContainer listContainer = getOrCreateListContainer();
itemId = listContainer.nextId();
CollectionItem item = listContainer.set(index, itemId, value);
oldItemId = item.getItemId();
response = item.getValue();
}
use of com.hazelcast.collection.impl.list.ListContainer in project hazelcast by hazelcast.
the class ListSubOperation method run.
@Override
public void run() throws Exception {
ListContainer listContainer = getOrCreateListContainer();
List<Data> sub = listContainer.sub(from, to);
response = new SerializableList(sub);
}
Aggregations