Class QueryInfoExtractor
java.lang.Object
jadex.providedservice.impl.search.QueryInfoExtractor
- All Implemented Interfaces:
IKeyExtractor<ServiceQueryInfo<?>>
Extractor for query infos.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKey type for the query id.static final StringKey type for the service interface.static final StringKey type for the id.static final StringKey type for the owner.static final StringKey type for the owner.static final StringKey type for the service platform.static final StringKey type for the service provider.static final StringKey type for the service id.static final StringKey type for the service tags.static final StringKey type for the unrestricted services.static final String[]The key types.static final String[]The indexable types.Fields inherited from interface jadex.providedservice.impl.search.IKeyExtractor
MATCH_ALWAYS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the specification for the indexer.getKeyMatchingMode(String keytype, ServiceQueryInfo<?> query) Extracts the matching mode from a multivalued term.String[]Get the key names for this type of extractor.getKeyValues(String keytype, ServiceQueryInfo<?> sqi) Get the keys per keytype.
-
Field Details
-
KEY_TYPE_INTERFACE
Key type for the service interface.- See Also:
-
KEY_TYPE_TAGS
Key type for the service tags.- See Also:
-
KEY_TYPE_OWNER
Key type for the owner.- See Also:
-
KEY_TYPE_PROVIDER
Key type for the service provider.- See Also:
-
KEY_TYPE_PLATFORM
Key type for the service platform.- See Also:
-
KEY_TYPE_NETWORKS
Key type for the id.- See Also:
-
KEY_TYPE_OWNER_PLATORM
Key type for the owner.- See Also:
-
KEY_TYPE_SID
Key type for the service id.- See Also:
-
KEY_TYPE_ID
Key type for the query id.- See Also:
-
KEY_TYPE_UNRESTRICTED
Key type for the unrestricted services.- See Also:
-
QUERY_KEY_TYPES
The key types. -
QUERY_KEY_TYPES_INDEXABLE
The indexable types.
-
-
Constructor Details
-
QueryInfoExtractor
public QueryInfoExtractor()
-
-
Method Details
-
getKeyValues
Get the keys per keytype.- Specified by:
getKeyValuesin interfaceIKeyExtractor<ServiceQueryInfo<?>>- Parameters:
keytype- The key type.value- The value.- Returns:
- The key values.
-
getKeyMatchingMode
Extracts the matching mode from a multivalued term. true = AND, false = OR- Specified by:
getKeyMatchingModein interfaceIKeyExtractor<ServiceQueryInfo<?>>- Parameters:
keytype- The type of key being extracted.value- The value.- Returns:
- The key matching mode.
-
getKeyNames
Get the key names for this type of extractor.- Specified by:
getKeyNamesin interfaceIKeyExtractor<ServiceQueryInfo<?>>- Returns:
- The key names.
-
getIndexerSpec
Gets the specification for the indexer.- Returns:
- The specification for the indexer.
-