com.bigdata.btree
Class BigdataMap.Entry

java.lang.Object
  extended by com.bigdata.btree.BigdataMap.Entry
All Implemented Interfaces:
Map.Entry<K,V>
Enclosing class:
BigdataMap<K,V>

protected class BigdataMap.Entry
extends Object
implements Map.Entry<K,V>

Note: Since the same ITuple instance is returned for each tuple by many ITupleIterators there is a side-effect that invalidates the last visited BigdataMap.Entry object. This side-effect could be removed by eagerly materializing the key and value from the ITuple rather than doing it lazily but that maps the Map interface either blow up (the key can not be recovered), do more work for cases where the key is going to be stored in the value, and work efficiently only for those cases where the key can be directly decoded, e.g., int, long, float, double, etc.

Version:
$Id: BigdataMap.java 3672 2010-09-28 23:39:42Z thompsonbry $
Author:
Bryan Thompson

Constructor Summary
BigdataMap.Entry(ITuple tuple)
           
 
Method Summary
 K getKey()
           
 V getValue()
           
 V setValue(V value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map.Entry
equals, hashCode
 

Constructor Detail

BigdataMap.Entry

public BigdataMap.Entry(ITuple tuple)
Method Detail

getKey

public K getKey()
Specified by:
getKey in interface Map.Entry<K,V>

getValue

public V getValue()
Specified by:
getValue in interface Map.Entry<K,V>

setValue

public V setValue(V value)
Specified by:
setValue in interface Map.Entry<K,V>


Copyright © 2006-2011 SYSTAP, LLC. All Rights Reserved.