Interface IKeyExtractor<T>

All Known Implementing Classes:
QueryInfoExtractor, ServiceKeyExtractor

public interface IKeyExtractor<T>
Interface denoting key extraction functionality for indexers.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Match any value constant for values.
  • Method Summary

    Modifier and Type
    Method
    Description
    getKeyMatchingMode(String keytype, T value)
    Extracts the matching mode from a multivalued term.
    Get the key names for this type of extractor.
    getKeyValues(String keytype, T value)
    Extracts key value from an object.
  • Field Details

    • MATCH_ALWAYS

      static final String MATCH_ALWAYS
      Match any value constant for values. Indexer checks if value is ANY and then it always matches.
      See Also:
  • Method Details

    • getKeyValues

      Set<String> getKeyValues(String keytype, T value)
      Extracts key value from an object.
      Parameters:
      keytype - The type of key being extracted.
      value - The value.
      Returns:
      The keys matching the type.
    • getKeyMatchingMode

      Boolean getKeyMatchingMode(String keytype, T value)
      Extracts the matching mode from a multivalued term. true = AND, false = OR
      Parameters:
      keytype - The type of key being extracted.
      value - The value.
      Returns:
      The key matching mode.
    • getKeyNames

      String[] getKeyNames()
      Get the key names for this type of extractor.
      Returns:
      The key names.