public static class FubDocumentSourceDescriptor.AttributeBuilder extends Object
FubDocumentSource component. You can use this
builder as a type-safe alternative to populating the attribute map using attribute keys.| Modifier and Type | Field and Description |
|---|---|
Map<String,Object> |
map
The attribute map populated by this builder.
|
| Modifier | Constructor and Description |
|---|---|
protected |
FubDocumentSourceDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
List<Document> |
documents() |
FubDocumentSourceDescriptor.AttributeBuilder |
includeDocumentsWithoutTopic(boolean value)
Include documents without topics.
|
FubDocumentSourceDescriptor.AttributeBuilder |
includeDocumentsWithoutTopic(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
Include documents without topics.
|
FubDocumentSourceDescriptor.AttributeBuilder |
minTopicSize(int value)
Minimum topic size.
|
FubDocumentSourceDescriptor.AttributeBuilder |
minTopicSize(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
Minimum topic size.
|
String |
query() |
Set<Object> |
topicIds()
Topics and subtopics covered in the output documents.
|
public List<Document> documents()
FubDocumentSource.documentspublic Set<Object> topicIds()
FubDocumentSource.documents and it may vary for the same main topic based e.g. on the
requested number of requested results or FubDocumentSource.minTopicSize.FubDocumentSource.topicIdspublic String query()
FubDocumentSource.querypublic FubDocumentSourceDescriptor.AttributeBuilder minTopicSize(int value)
FubDocumentSource.minTopicSizepublic FubDocumentSourceDescriptor.AttributeBuilder minTopicSize(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
FubDocumentSource.minTopicSizepublic FubDocumentSourceDescriptor.AttributeBuilder includeDocumentsWithoutTopic(boolean value)
public FubDocumentSourceDescriptor.AttributeBuilder includeDocumentsWithoutTopic(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)