org.carrot2.source.ambient
Class AmbientDocumentSourceDescriptor.AttributeBuilder

java.lang.Object
  extended by org.carrot2.source.ambient.FubDocumentSourceDescriptor.AttributeBuilder
      extended by org.carrot2.source.ambient.AmbientDocumentSourceDescriptor.AttributeBuilder
Enclosing class:
AmbientDocumentSourceDescriptor

public static class AmbientDocumentSourceDescriptor.AttributeBuilder
extends FubDocumentSourceDescriptor.AttributeBuilder

Attribute map builder for the AmbientDocumentSource 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 AmbientDocumentSourceDescriptor.AttributeBuilder(Map<String,Object> map)
          Creates a builder backed by the provided map.
 
Method Summary
 AmbientDocumentSourceDescriptor.AttributeBuilder results(int value)
           
 long resultsTotal()
           
 AmbientDocumentSourceDescriptor.AttributeBuilder topic(AmbientDocumentSource.AmbientTopic value)
          Ambient Topic.
 AmbientDocumentSourceDescriptor.AttributeBuilder topic(Class<? extends AmbientDocumentSource.AmbientTopic> clazz)
          Ambient Topic.
 
Methods inherited from class org.carrot2.source.ambient.FubDocumentSourceDescriptor.AttributeBuilder
documents, minTopicSize, query, topicIds
 
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

AmbientDocumentSourceDescriptor.AttributeBuilder

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

Method Detail

topic

public AmbientDocumentSourceDescriptor.AttributeBuilder topic(AmbientDocumentSource.AmbientTopic value)
Ambient Topic. The Ambient Topic to load documents from.

See Also:
AmbientDocumentSource.topic

topic

public AmbientDocumentSourceDescriptor.AttributeBuilder topic(Class<? extends AmbientDocumentSource.AmbientTopic> clazz)
Ambient Topic. The Ambient Topic to load documents from.

See Also:
AmbientDocumentSource.topic

results

public AmbientDocumentSourceDescriptor.AttributeBuilder results(int value)
See Also:
AmbientDocumentSource.results

resultsTotal

public long resultsTotal()
See Also:
AmbientDocumentSource.resultsTotal


Copyright (c) Dawid Weiss, Stanislaw Osinski