public class ORecordLazyMap extends OTrackedMap<OIdentifiable> implements ORecordLazyMultiValue
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
ORecordElement.STATUS
genericClass, sourceRecord
Constructor and Description |
---|
ORecordLazyMap(ODocument iSourceRecord,
byte iRecordType) |
ORecordLazyMap(ODocument iSourceRecord,
Map<Object,OIdentifiable> iOrigin) |
ORecordLazyMap(ORecordElement iSourceRecord) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsValue(Object o) |
void |
convertLinks2Records()
Browse all the set to convert all the items into records.
|
boolean |
convertRecords2Links()
Browse all the set to convert all the items into links.
|
boolean |
detach()
Detaches the object.
|
OIdentifiable |
get(Object iKey) |
byte |
getRecordType() |
boolean |
isAutoConvertToRecord() |
OIdentifiable |
put(Object key,
OIdentifiable value) |
Iterator<OIdentifiable> |
rawIterator() |
OIdentifiable |
remove(Object o) |
void |
setAutoConvertToRecord(boolean convertToRecord) |
int |
size() |
String |
toString() |
Collection<OIdentifiable> |
values() |
disableTracking, enableTracking, getGenericClass, getOwner, getTimeLine, getTransactionTimeLine, isModified, isTransactionModified, putAll, putInternal, replace, returnOriginalState, setDirty, setDirtyNoChanged, transactionClear
entrySet, forEach, getOrDefault, keySet, removeEldestEntry, replaceAll
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, replace, replace
equals, hashCode
finalize, getClass, notify, notifyAll, wait, wait, wait
nestedDisable, nestedEnabled, nestedTransactionClear
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, putIfAbsent, remove, replace, replace
public ORecordLazyMap(ORecordElement iSourceRecord)
public ORecordLazyMap(ODocument iSourceRecord, byte iRecordType)
public ORecordLazyMap(ODocument iSourceRecord, Map<Object,OIdentifiable> iOrigin)
public boolean containsValue(Object o)
containsValue
in interface Map<Object,OIdentifiable>
containsValue
in class LinkedHashMap<Object,OIdentifiable>
public OIdentifiable get(Object iKey)
get
in interface Map<Object,OIdentifiable>
get
in class LinkedHashMap<Object,OIdentifiable>
public OIdentifiable put(Object key, OIdentifiable value)
put
in interface Map<Object,OIdentifiable>
put
in class OTrackedMap<OIdentifiable>
public Collection<OIdentifiable> values()
values
in interface Map<Object,OIdentifiable>
values
in class LinkedHashMap<Object,OIdentifiable>
public OIdentifiable remove(Object o)
remove
in interface Map<Object,OIdentifiable>
remove
in class OTrackedMap<OIdentifiable>
public void clear()
clear
in interface Map<Object,OIdentifiable>
clear
in class OTrackedMap<OIdentifiable>
public String toString()
toString
in class AbstractMap<Object,OIdentifiable>
public boolean isAutoConvertToRecord()
isAutoConvertToRecord
in interface OAutoConvertToRecord
public void setAutoConvertToRecord(boolean convertToRecord)
setAutoConvertToRecord
in interface OAutoConvertToRecord
public void convertLinks2Records()
ORecordLazyMultiValue
It converts only items that already loaded into memory from storage. To convert records that
will be fetched from disk later use OAutoConvertToRecord.setAutoConvertToRecord(boolean)
convertLinks2Records
in interface ORecordLazyMultiValue
public boolean convertRecords2Links()
ORecordLazyMultiValue
convertRecords2Links
in interface ORecordLazyMultiValue
public byte getRecordType()
public Iterator<OIdentifiable> rawIterator()
rawIterator
in interface ORecordLazyMultiValue
public boolean detach()
ODetachable
detach
in interface ODetachable
public int size()
size
in interface OSizeable
size
in interface Map<Object,OIdentifiable>
size
in class HashMap<Object,OIdentifiable>
Copyright © 2009–2020 OrientDB. All rights reserved.