public static class CommonAttributesDescriptor.AttributeBuilder extends Object
CommonAttributes 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 |
CommonAttributesDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
List<Cluster> |
clusters()
Clusters created by the clustering algorithm.
|
List<Document> |
documents()
Documents returned by the search engine/ document retrieval system or
documents passed as input to the clustering algorithm.
|
CommonAttributesDescriptor.AttributeBuilder |
documents(org.carrot2.util.attribute.IObjectFactory<? extends List<Document>> value)
Documents returned by the search engine/ document retrieval system or
documents passed as input to the clustering algorithm.
|
CommonAttributesDescriptor.AttributeBuilder |
documents(List<Document> value)
Documents returned by the search engine/ document retrieval system or
documents passed as input to the clustering algorithm.
|
String |
processingResultTitle()
Processing result title.
|
Long |
processingTimeAlgorithm()
Algorithm processing time in milliseconds.
|
Long |
processingTimeSource()
Data source processing time in milliseconds.
|
Long |
processingTimeTotal()
Total processing time in milliseconds.
|
CommonAttributesDescriptor.AttributeBuilder |
query(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Query to perform.
|
CommonAttributesDescriptor.AttributeBuilder |
query(String value)
Query to perform.
|
CommonAttributesDescriptor.AttributeBuilder |
results(int value)
Maximum number of documents/ search results to fetch.
|
CommonAttributesDescriptor.AttributeBuilder |
results(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
Maximum number of documents/ search results to fetch.
|
Long |
resultsTotal()
Estimated total number of matching documents.
|
CommonAttributesDescriptor.AttributeBuilder |
start(int value)
Index of the first document/ search result to fetch.
|
CommonAttributesDescriptor.AttributeBuilder |
start(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
Index of the first document/ search result to fetch.
|
public CommonAttributesDescriptor.AttributeBuilder start(int value)
CommonAttributes.startpublic CommonAttributesDescriptor.AttributeBuilder start(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
CommonAttributes.startpublic CommonAttributesDescriptor.AttributeBuilder results(int value)
CommonAttributes.resultspublic CommonAttributesDescriptor.AttributeBuilder results(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
CommonAttributes.resultspublic CommonAttributesDescriptor.AttributeBuilder query(String value)
CommonAttributes.querypublic CommonAttributesDescriptor.AttributeBuilder query(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
CommonAttributes.querypublic Long resultsTotal()
CommonAttributes.resultsTotalpublic CommonAttributesDescriptor.AttributeBuilder documents(List<Document> value)
CommonAttributes.documentspublic CommonAttributesDescriptor.AttributeBuilder documents(org.carrot2.util.attribute.IObjectFactory<? extends List<Document>> value)
CommonAttributes.documentspublic List<Document> documents()
CommonAttributes.documentspublic List<Cluster> clusters()
CommonAttributes.clusterspublic Long processingTimeTotal()
CommonAttributes.processingTimeTotal and CommonAttributes.processingTimeAlgorithm.CommonAttributes.processingTimeTotalpublic Long processingTimeSource()
IDocumentSources in the chain, including the
IProcessingComponent.beforeProcessing() and
IProcessingComponent.afterProcessing() hooks.public Long processingTimeAlgorithm()
IClusteringAlgorithms in the chain, including the
IProcessingComponent.beforeProcessing() and
IProcessingComponent.afterProcessing() hooks.public String processingResultTitle()