public class QueryInfoExtractor extends java.lang.Object implements IKeyExtractor<ServiceQueryInfo<?>>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_TYPE_ID
Key type for the query id.
|
static java.lang.String |
KEY_TYPE_INTERFACE
Key type for the service interface.
|
static java.lang.String |
KEY_TYPE_NETWORKS
Key type for the id.
|
static java.lang.String |
KEY_TYPE_OWNER
Key type for the owner.
|
static java.lang.String |
KEY_TYPE_OWNER_PLATORM
Key type for the owner.
|
static java.lang.String |
KEY_TYPE_PLATFORM
Key type for the service platform.
|
static java.lang.String |
KEY_TYPE_PROVIDER
Key type for the service provider.
|
static java.lang.String |
KEY_TYPE_SID
Key type for the service id.
|
static java.lang.String |
KEY_TYPE_TAGS
Key type for the service tags.
|
static java.lang.String |
KEY_TYPE_UNRESTRICTED
Key type for the unrestricted services.
|
static java.lang.String[] |
QUERY_KEY_TYPES
The key types.
|
static java.lang.String[] |
QUERY_KEY_TYPES_INDEXABLE
The indexable types.
|
MATCH_ALWAYS
Constructor and Description |
---|
QueryInfoExtractor() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Tuple2<java.lang.String,java.lang.String[]>> |
getIndexerSpec(IServiceIdentifier sid)
Gets the specification for the indexer.
|
java.lang.Boolean |
getKeyMatchingMode(java.lang.String keytype,
ServiceQueryInfo<?> query)
Extracts the matching mode from a multivalued term.
|
java.lang.String[] |
getKeyNames()
Get the key names for this type of extractor.
|
java.util.Set<java.lang.String> |
getKeyValues(java.lang.String keytype,
ServiceQueryInfo<?> sqi)
Get the keys per keytype.
|
public static final java.lang.String KEY_TYPE_INTERFACE
public static final java.lang.String KEY_TYPE_TAGS
public static final java.lang.String KEY_TYPE_OWNER
public static final java.lang.String KEY_TYPE_PROVIDER
public static final java.lang.String KEY_TYPE_PLATFORM
public static final java.lang.String KEY_TYPE_NETWORKS
public static final java.lang.String KEY_TYPE_OWNER_PLATORM
public static final java.lang.String KEY_TYPE_SID
public static final java.lang.String KEY_TYPE_ID
public static final java.lang.String KEY_TYPE_UNRESTRICTED
public static final java.lang.String[] QUERY_KEY_TYPES
public static final java.lang.String[] QUERY_KEY_TYPES_INDEXABLE
public java.util.Set<java.lang.String> getKeyValues(java.lang.String keytype, ServiceQueryInfo<?> sqi)
getKeyValues
in interface IKeyExtractor<ServiceQueryInfo<?>>
keytype
- The key type.value
- The value.public java.lang.Boolean getKeyMatchingMode(java.lang.String keytype, ServiceQueryInfo<?> query)
getKeyMatchingMode
in interface IKeyExtractor<ServiceQueryInfo<?>>
keytype
- The type of key being extracted.value
- The value.public java.lang.String[] getKeyNames()
getKeyNames
in interface IKeyExtractor<ServiceQueryInfo<?>>
public java.util.List<Tuple2<java.lang.String,java.lang.String[]>> getIndexerSpec(IServiceIdentifier sid)