Interface TraceSearcher


public interface TraceSearcher
Allows searching for traces within the scope of the process function.
  • Method Details

    • search

      default SearchResult search(String query, int count) throws InterruptedException, ExecutionException
      Searches in Hansken for Traces matching provided query, scoped to the image under extraction.
      Parameters:
      query - Search query to match traces. This is a HQL query.
      count - Maximum number of traces to return.
      Returns:
      SearchResult containing traces matching the provided query.
      Throws:
      InterruptedException - if a thread searching for traces is interrupted.
      ExecutionException - if searching for traces is throws an exception.
    • search

      default SearchResult search(String query, int count, SearchOptions options) throws InterruptedException, ExecutionException
      Searches in Hansken for Traces matching provided query.
      Parameters:
      query - Search query to match traces. This is a HQL query.
      count - Maximum number of traces to return.
      options - SearchOptions object containing various search options.
      Returns:
      SearchResult containing traces matching the provided query.
      Throws:
      InterruptedException - if a thread searching for traces is interrupted.
      ExecutionException - if searching for traces is throws an exception.
    • search

      SearchResult search(String query, int count, SearchScope scope, int start, List<SearchSortOption> sort) throws InterruptedException, ExecutionException
      Searches in Hansken for Traces matching provided query.
      Parameters:
      query - Search query to match traces. This is a HQL query.
      count - Maximum number of traces to return.
      scope - Scope the search to image or project level.
      start - Starting index of traces.
      sort - Field to sort on.
      Returns:
      SearchResult containing traces matching the provided query.
      Throws:
      InterruptedException - if a thread searching for traces is interrupted.
      ExecutionException - if searching for traces is throws an exception.