com.hammurapi.extract

## Class AbstractExtractor<T,V,C>

- java.lang.Object
- - com.hammurapi.extract.ExtractorBase<T,V,C>
  - - com.hammurapi.extract.AbstractExtractor<T,V,C>

- Type Parameters:
    `T` -
    `V` -
    `C` -
  All Implemented Interfaces:
    Extractor<T,V,C>
  Direct Known Subclasses:
    AbstractPredicate, CompiledExtractorBase

      public abstract class AbstractExtractor<T,V,C>
      extends ExtractorBase<T,V,C>

  Base class for extractors.

- - ### Field Summary

    - ### Fields inherited from class com.hammurapi.extract.ExtractorBase

      `cost, costUnit, initialCost, invocations, nanos, totalCost`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AbstractExtractor(double initialCost, TimeUnit costUnit, boolean contextDependent, int... parameterIndices)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `isContextDependent()`
    `Set<Integer>` | `parameterIndices()`

    - ### Methods inherited from class com.hammurapi.extract.ExtractorBase

      `compareTo, createCacheEntry, equals, extract, extractInternal, getCost`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AbstractExtractor

          public AbstractExtractor(double initialCost,
                           TimeUnit costUnit,
                           boolean contextDependent,
                           int... parameterIndices)

  - ### Method Detail

    - #### parameterIndices

          public Set<Integer> parameterIndices()

      Returns:
        Indexes of objects which this extractor uses for computations.

    - #### isContextDependent

          public boolean isContextDependent()

      Returns:
        True if extractor uses context for extraction. False if only object(s) are used.