E- The type of entities stored in this
@Immutable public interface RandomAccessDataset<E> extends Dataset<E>
Dataset that supports random access operations on entities.
RandomAccessDataset are immutable.
|Modifier and Type||Method and Description|
Deletes the entity passed to this method in the dataset.
Deletes the entity in the dataset with
Return the entity stored in the dataset at the row specified with
Increment a field named
Put the entity into the dataset.
getDescriptor, getName, getNamespace, getUri
key. Return null if no such entity exists.
key- The key of the entity to get
boolean put(E entity)
entity- The entity to store
fieldNameon the entity by the specified amount.
key- The key of the entity to increment
fieldName- The name of the field on the entity to increment. If the fieldName doesn't exist, an exception is thrown.
amount- The amount to increment the field by
void delete(Key key)
key- The key of the entity to delete.
boolean delete(E entity)
entity- The entity, whose checkConflict field can be validated before the delete is performed
Copyright © 2013–2015. All rights reserved.