|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.objects.AbstractObject2FloatFunction<K>
it.unimi.dsi.fastutil.objects.AbstractObject2FloatMap<K>
it.unimi.dsi.fastutil.objects.Object2FloatOpenHashMap<String>
tl.lin.data.map.String2FloatOpenHashMapWritable
public class String2FloatOpenHashMapWritable
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2FloatMap |
|---|
it.unimi.dsi.fastutil.objects.AbstractObject2FloatMap.BasicEntry<K> |
| Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.Hash |
|---|
it.unimi.dsi.fastutil.Hash.Strategy<K> |
| Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.objects.Object2FloatMap |
|---|
it.unimi.dsi.fastutil.objects.Object2FloatMap.Entry<K>, it.unimi.dsi.fastutil.objects.Object2FloatMap.FastEntrySet<K> |
| Field Summary |
|---|
| Fields inherited from class it.unimi.dsi.fastutil.objects.Object2FloatOpenHashMap |
|---|
entries, f, key, keys, mask, maxFill, n, size, used, value, values |
| Fields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2FloatFunction |
|---|
defRetValue |
| Fields inherited from interface it.unimi.dsi.fastutil.Hash |
|---|
DEFAULT_GROWTH_FACTOR, DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR, FAST_LOAD_FACTOR, FREE, OCCUPIED, PRIMES, REMOVED, VERY_FAST_LOAD_FACTOR |
| Constructor Summary | |
|---|---|
String2FloatOpenHashMapWritable()
Creates a String2IntOpenHashMapWritable object. |
|
| Method Summary | |
|---|---|
static String2FloatOpenHashMapWritable |
create(byte[] bytes)
Creates object from serialized representation. |
static String2FloatOpenHashMapWritable |
create(DataInput in)
Creates object from serialized representation. |
int |
dot(String2FloatOpenHashMapWritable m)
Computes the dot product of this map with another map. |
void |
increment(String key)
Increments the key. |
void |
increment(String key,
float n)
Increments the key. |
void |
plus(String2FloatOpenHashMapWritable m)
Adds values of keys from another map to this map. |
void |
readFields(DataInput in)
Deserializes the map. |
byte[] |
serialize()
Returns the serialized representation of this object as a byte array. |
void |
write(DataOutput out)
Serializes the map. |
| Methods inherited from class it.unimi.dsi.fastutil.objects.Object2FloatOpenHashMap |
|---|
add, addTo, clear, clone, containsKey, containsValue, getFloat, growthFactor, growthFactor, hashCode, isEmpty, keySet, object2FloatEntrySet, put, put, rehash, rehash, remove, removeFloat, shiftKeys, size, trim, trim, values |
| Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2FloatMap |
|---|
containsValue, entrySet, equals, putAll, toString |
| Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2FloatFunction |
|---|
defaultReturnValue, defaultReturnValue, get |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.fastutil.objects.Object2FloatFunction |
|---|
defaultReturnValue, defaultReturnValue |
| Methods inherited from interface it.unimi.dsi.fastutil.Function |
|---|
get |
| Methods inherited from interface java.util.Map |
|---|
get |
| Constructor Detail |
|---|
public String2FloatOpenHashMapWritable()
String2IntOpenHashMapWritable object.
| Method Detail |
|---|
public void readFields(DataInput in)
throws IOException
readFields in interface org.apache.hadoop.io.Writablein - source for raw byte representation
IOException
public void write(DataOutput out)
throws IOException
write in interface org.apache.hadoop.io.Writableout - where to write the raw byte representation
IOException
public byte[] serialize()
throws IOException
IOException
public static String2FloatOpenHashMapWritable create(DataInput in)
throws IOException
in - source of serialized representation
IOException
public static String2FloatOpenHashMapWritable create(byte[] bytes)
throws IOException
bytes - source of serialized representation
IOExceptionpublic void plus(String2FloatOpenHashMapWritable m)
m - the other mappublic int dot(String2FloatOpenHashMapWritable m)
m - the other mappublic void increment(String key)
key - key to increment
public void increment(String key,
float n)
key - key to incrementn - amount to increment
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||