public interface AssociationSnapshot
Interface implemented by the datastore dialect to avoid data duplication in memory (if possible). Note that this snapshot will not be modified by the Hibernate OGM engine
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(RowKey rowKey)
Whether this snapshot contains the specified key or not.
|
Tuple |
get(RowKey rowKey)
Get the row associated to the
RowKey. |
Iterable<RowKey> |
getRowKeys()
Returns an iterable with the rows contained in this snapshot.
|
int |
size()
Returns the number of rows contained in this snapshot.
|
Tuple get(RowKey rowKey)
RowKey.rowKey - the identifier of the row in the associationnull otherwise.boolean containsKey(RowKey rowKey)
rowKey - the identifier of the row in the associationtrue if the snapshot contains the row identified by the RowKey. false otherwiseint size()
Copyright © 2010-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.