|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.core.attribute.CommonAttributesDescriptor.AttributeBuilder
public static class CommonAttributesDescriptor.AttributeBuilder
Attribute map builder for the CommonAttributes 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 |
CommonAttributesDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map. |
| Method Summary | |
|---|---|
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(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(String value)
Query to perform. |
CommonAttributesDescriptor.AttributeBuilder |
results(int 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Map<String,Object> map
| Constructor Detail |
|---|
protected CommonAttributesDescriptor.AttributeBuilder(Map<String,Object> map)
| Method Detail |
|---|
public CommonAttributesDescriptor.AttributeBuilder start(int value)
CommonAttributes.startpublic CommonAttributesDescriptor.AttributeBuilder results(int value)
CommonAttributes.resultspublic CommonAttributesDescriptor.AttributeBuilder query(String value)
CommonAttributes.querypublic Long resultsTotal()
CommonAttributes.resultsTotalpublic CommonAttributesDescriptor.AttributeBuilder documents(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.
CommonAttributes.processingTimeSourcepublic Long processingTimeAlgorithm()
IClusteringAlgorithms in the chain, including the
IProcessingComponent.beforeProcessing() and
IProcessingComponent.afterProcessing() hooks.
CommonAttributes.processingTimeAlgorithmpublic String processingResultTitle()
CommonAttributes.processingResultTitle
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||