org.carrot2.source
Class SearchEngineStatsDescriptor.AttributeBuilder

java.lang.Object
  extended by org.carrot2.source.SearchEngineStatsDescriptor.AttributeBuilder
Enclosing class:
SearchEngineStatsDescriptor

public static class SearchEngineStatsDescriptor.AttributeBuilder
extends Object

Attribute map builder for the SearchEngineStats component. You can use this builder as a type-safe alternative to populating the attribute map using attribute keys.


Field Summary
 Map<String,Object> map
          The attribute map populated by this builder.
 
Constructor Summary
protected SearchEngineStatsDescriptor.AttributeBuilder(Map<String,Object> map)
          Creates a builder backed by the provided map.
 
Method Summary
 int pageRequests()
          Number of individual page requests issued by this data source.
 int queries()
          Number queries handled successfully by this data source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

public final Map<String,Object> map
The attribute map populated by this builder.

Constructor Detail

SearchEngineStatsDescriptor.AttributeBuilder

protected SearchEngineStatsDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.

Method Detail

queries

public int queries()
Number queries handled successfully by this data source.

See Also:
SearchEngineStats.queries

pageRequests

public int pageRequests()
Number of individual page requests issued by this data source.

See Also:
SearchEngineStats.pageRequests


Copyright (c) Dawid Weiss, Stanislaw Osinski