it.unimi.dsi.mg4j.index
Class AbstractPrefixMap

java.lang.Object
  extended by it.unimi.dsi.mg4j.index.AbstractPrefixMap
All Implemented Interfaces:
PrefixMap

Deprecated. Use PrefixMap and related classes.

@Deprecated
public abstract class AbstractPrefixMap
extends Object
implements PrefixMap

An abstract implementation of a map from prefixes to term intervals.

Subclasses need just to implement PrefixMap.getInterval(CharSequence) (and, optionally getPrefix(Interval)).

Since:
0.9
Author:
Sebastiano Vigna

Constructor Summary
AbstractPrefixMap()
          Deprecated.  
 
Method Summary
 CharSequence getPrefix(Interval interval)
          Deprecated. Returns the maximum prefix common to all terms in the given nonempty interval (optional operation).
 MutableString getPrefix(Interval interval, MutableString prefix)
          Deprecated. Writes in the given mutable string the maximum prefix common to all terms in the given nonempty interval (optional operation).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.mg4j.index.PrefixMap
getInterval, hasPrefixes, size
 

Constructor Detail

AbstractPrefixMap

public AbstractPrefixMap()
Deprecated. 
Method Detail

getPrefix

public CharSequence getPrefix(Interval interval)
Deprecated. 
Description copied from interface: PrefixMap
Returns the maximum prefix common to all terms in the given nonempty interval (optional operation).

Specified by:
getPrefix in interface PrefixMap
Parameters:
interval - an interval.
Returns:
the maximum prefix common to all terms in the given nonempty interval.

getPrefix

public MutableString getPrefix(Interval interval,
                               MutableString prefix)
Deprecated. 
Description copied from interface: PrefixMap
Writes in the given mutable string the maximum prefix common to all terms in the given nonempty interval (optional operation).

Specified by:
getPrefix in interface PrefixMap
Parameters:
interval - an interval.
prefix - a mutable string that will be filled with the maximum prefix common to all terms in the given nonempty interval.
Returns:
prefix.