Class DateEarlierBSimFilterType

All Implemented Interfaces:
Comparable<BSimFilterType>

public class DateEarlierBSimFilterType extends DateBSimFilterType
A BsimFilterType for filtering on functions in programs created before the filter date.
  • Field Details

  • Constructor Details

    • DateEarlierBSimFilterType

      public DateEarlierBSimFilterType(String sub)
  • Method Details

    • gatherSQLEffect

      public void gatherSQLEffect(SQLEffects effect, FilterAtom atom, IDSQLResolution resolution) throws SQLException
      Description copied from class: BSimFilterType
      Gather all pieces to successfully convert this filter element into an SQL clause
      Specified by:
      gatherSQLEffect in class BSimFilterType
      Parameters:
      effect - is SQLEffects container for this filter elements pieces and others
      atom - holds the values for a particular instantiation of this filter element
      resolution - is the IDResolution containing relevant row ids for the filter, which must have been precalculated
      Throws:
      SQLException - for errors building the SQL clause
    • gatherElasticEffect

      public void gatherElasticEffect(ElasticEffects effect, FilterAtom atom, IDElasticResolution resolution) throws ElasticException
      Description copied from class: BSimFilterType
      Gather pieces necessary to emit this filter as part of an elasticsearch query document
      Specified by:
      gatherElasticEffect in class BSimFilterType
      Parameters:
      effect - is the ElasticEffects container holding the pieces
      atom - holds the values for a particular instantiation of this filter element
      resolution - contains relevant ids for the filter, which must have been precalculated
      Throws:
      ElasticException - for errors building the JSON subdocument
    • evaluate

      public boolean evaluate(ExecutableRecord rec, String value)
      Description copied from class: BSimFilterType
      Evaluate this filter for a specific ExecutableRecord and a specific filter -value-
      Overrides:
      evaluate in class DateBSimFilterType
      Parameters:
      rec - is the ExecutableRecord to filter against
      value - is the String value for an instantiated filter
      Returns:
      true if this element would allow the ExecutableRecord to pass the filter