public class RelatedTermsDictionaryLookup extends com.exalead.gni.GNIObject implements java.lang.Iterable<RelatedTermsEntry>
Constructor and Description |
---|
RelatedTermsDictionaryLookup(RelatedTermsDictResource resource)
Initialize a new RelatedTermsDictionaryLookup
|
RelatedTermsDictionaryLookup(RelatedTermsDictResource resource,
boolean hideCounter) |
Modifier and Type | Method and Description |
---|---|
void |
dump()
Dump the resource
|
protected void |
finalize() |
int |
getBestId(MOTPipeInterface pipe,
java.lang.String displayForm,
int gid) |
java.lang.String |
getDisplayForm(int kid)
Get the associated display form
|
long |
getDocumentCount() |
long |
getFreq(int kid)
Get the associated frequency
|
java.lang.String |
getKeywordDisplayForm(java.lang.String keyword) |
long |
getKeywordFrequency(java.lang.String keyword) |
boolean |
isEmpty() |
java.util.Iterator<RelatedTermsEntry> |
iterator()
Get an iterator
|
public RelatedTermsDictionaryLookup(RelatedTermsDictResource resource)
resource
- The resource to usepublic RelatedTermsDictionaryLookup(RelatedTermsDictResource resource, boolean hideCounter)
public java.util.Iterator<RelatedTermsEntry> iterator()
iterator
in interface java.lang.Iterable<RelatedTermsEntry>
public java.lang.String getDisplayForm(int kid)
kid
- The keyword IDpublic java.lang.String getKeywordDisplayForm(java.lang.String keyword)
public long getFreq(int kid)
kid
- The kwyword IDpublic long getKeywordFrequency(java.lang.String keyword)
public long getDocumentCount()
public int getBestId(MOTPipeInterface pipe, java.lang.String displayForm, int gid)
public boolean isEmpty()
public void dump()
protected void finalize()
finalize
in class java.lang.Object
Copyright © 2013 Dassault Systèmes, All Rights Reserved.