| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
E - The type of entities stored in this RandomAccessDataset.@Immutable public interface RandomAccessDataset<E>
 A Dataset that supports random access operations on entities.
 
 Implementations of RandomAccessDataset are immutable.
 
Dataset| Method Summary | |
|---|---|
 boolean | 
delete(E entity)
Deletes the entity passed to this method in the dataset.  | 
 void | 
delete(Key key)
Deletes the entity in the dataset with Key key. | 
 E | 
get(Key key)
Return the entity stored in the dataset at the row specified with Key key. | 
 long | 
increment(Key key,
          String fieldName,
          long amount)
Increment a field named fieldName on the entity by the
 specified amount. | 
 boolean | 
put(E entity)
Put the entity into the dataset.  | 
| Methods inherited from interface org.kitesdk.data.Dataset | 
|---|
dropPartition, getDescriptor, getName, getPartition, getPartitions, getUri | 
| Methods inherited from interface org.kitesdk.data.RefinableView | 
|---|
from, fromAfter, to, toBefore, with | 
| Methods inherited from interface org.kitesdk.data.View | 
|---|
deleteAll, getDataset, getType, includes, isEmpty, newReader, newWriter | 
| Method Detail | 
|---|
E get(Key key)
Key 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
long increment(Key key,
               String fieldName,
               long amount)
fieldName on the entity by the
 specified amount.
key - The key of the entity to incrementfieldName - 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 key.
key - The key of the entity to delete.boolean delete(E entity)
entity object.
.
entity - The entity, whose checkConflict field can be validated before the
          delete is performed
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||