it.unimi.dsi.mg4j.index
Class TermMaps

java.lang.Object
  extended by it.unimi.dsi.mg4j.index.TermMaps

Deprecated. Use StringMap and related classes.

@Deprecated
public class TermMaps
extends Object

A class providing static methods and objects that do useful things with term maps and prefix maps.

Author:
Sebastiano Vigna
See Also:
TermMaps.SynchronizedTermMap, PrefixMap

Nested Class Summary
protected static class TermMaps.SynchronizedPrefixMap
          Deprecated.  
protected static class TermMaps.SynchronizedTermMap
          Deprecated.  
protected static class TermMaps.SynchronizedTermPrefixMap
          Deprecated.  
 
Method Summary
static PrefixMap synchronize(PrefixMap prefixMap)
          Deprecated. Returns a synchronized prefix map backed by the given prefix map.
static TermMap synchronize(TermMap termMap)
          Deprecated. Returns a synchronized term map backed by the given term map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

synchronize

public static TermMap synchronize(TermMap termMap)
Deprecated. 
Returns a synchronized term map backed by the given term map.

If the provided term map implements also PrefixMap, the synchronized view will, too.

Parameters:
termMap - the term map to be wrapped in a synchronized map.
Returns:
a synchronized view of the specified term map.

synchronize

public static PrefixMap synchronize(PrefixMap prefixMap)
Deprecated. 
Returns a synchronized prefix map backed by the given prefix map.

If the provided prefix map implements also TermMaps.SynchronizedTermMap, the synchronized view will, too.

Parameters:
prefixMap - the prefix map to be wrapped in a synchronized map.
Returns:
a synchronized view of the specified prefix map.