Interface SnContext

All Known Subinterfaces:
SnIndexContext, SnIndexerBatchContext, SnIndexerContext, SnSearchContext, SnSuggestContext
All Known Implementing Classes:
DefaultSnContext, DefaultSnIndexContext, DefaultSnIndexerBatchContext, DefaultSnIndexerContext, DefaultSnSearchContext, DefaultSnSuggestContext

public interface SnContext
Represents a context.
  • Method Details

    • getIndexConfiguration

      SnIndexConfiguration getIndexConfiguration()
      Returns the index configuration.
      Returns:
      the index configuration
    • getIndexType

      SnIndexType getIndexType()
      Returns the index type.
      Returns:
      the index type
    • getQualifiers

      Map<String,List<SnQualifier>> getQualifiers()
      Returns the qualifiers.
      Returns:
      the qualifiers
    • getAttributes

      Map<String,Object> getAttributes()
      Returns a mutable Map that can be used to store attributes associated with this SnContext.
      Returns:
      the map containing the attributes
    • addException

      void addException(Exception exception)
      Adds a new exception to this context.
      Parameters:
      exception - - the exception
    • getExceptions

      List<Exception> getExceptions()
      Returns the exceptions for this context.
      Returns:
      the exceptions for this context