com.bericotech.clavin.resolver
Class ResolvedLocation

java.lang.Object
  extended by com.bericotech.clavin.resolver.ResolvedLocation

public class ResolvedLocation
extends Object

Object produced by resolving a location name against gazetteer records. Encapsulates a GeoName object representing the best match between a given location name and gazetter record, along with some information about the geographic entity resolution process.


Field Summary
 float confidence
           
 boolean fuzzy
           
 GeoName geoname
           
 LocationOccurrence location
           
 String matchedName
           
 
Constructor Summary
ResolvedLocation(org.apache.lucene.document.Document luceneDoc, LocationOccurrence location, boolean fuzzy)
          Builds a ResolvedLocation from a document retrieved from the Lucene index representing the geographic entity resolved from a location name.
 
Method Summary
 boolean equals(Object obj)
          Tests equivalence between ResolvedLocation objects.
 String toString()
          For pretty-printing.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

geoname

public GeoName geoname

location

public LocationOccurrence location

matchedName

public String matchedName

fuzzy

public boolean fuzzy

confidence

public float confidence
Constructor Detail

ResolvedLocation

public ResolvedLocation(org.apache.lucene.document.Document luceneDoc,
                        LocationOccurrence location,
                        boolean fuzzy)
Builds a ResolvedLocation from a document retrieved from the Lucene index representing the geographic entity resolved from a location name.

Parameters:
luceneDoc - document from Lucene index representing a gazetteer record
Method Detail

equals

public boolean equals(Object obj)
Tests equivalence between ResolvedLocation objects.

Overrides:
equals in class Object
Parameters:
obj - the other object being compared against

toString

public String toString()
For pretty-printing.

Overrides:
toString in class Object


Copyright © 2013 Berico Technologies. All rights reserved.