Record Class DatabaseAuditServiceImpl.WindowScan

java.lang.Object
java.lang.Record
fr.becpg.repo.audit.service.impl.DatabaseAuditServiceImpl.WindowScan
Enclosing class:
DatabaseAuditServiceImpl

private static record DatabaseAuditServiceImpl.WindowScan(DatabaseAuditPlugin plugin, AuditQuery auditQuery, List<String> filters, List<AuditFilter> inMemoryFilters) extends Record
What every window of a scan is read with: the filters the database reads with, one query each, and the filters then applied in memory.
  • Field Details

    • plugin

      private final DatabaseAuditPlugin plugin
      The field for the plugin record component.
    • auditQuery

      private final AuditQuery auditQuery
      The field for the auditQuery record component.
    • filters

      private final List<String> filters
      The field for the filters record component.
    • inMemoryFilters

      private final List<AuditFilter> inMemoryFilters
      The field for the inMemoryFilters record component.
  • Constructor Details

    • WindowScan

      private WindowScan(DatabaseAuditPlugin plugin, AuditQuery auditQuery, List<String> filters, List<AuditFilter> inMemoryFilters)
      Creates an instance of a WindowScan record class.
      Parameters:
      plugin - the value for the plugin record component
      auditQuery - the value for the auditQuery record component
      filters - the value for the filters record component
      inMemoryFilters - the value for the inMemoryFilters record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • plugin

      public DatabaseAuditPlugin plugin()
      Returns the value of the plugin record component.
      Returns:
      the value of the plugin record component
    • auditQuery

      public AuditQuery auditQuery()
      Returns the value of the auditQuery record component.
      Returns:
      the value of the auditQuery record component
    • filters

      public List<String> filters()
      Returns the value of the filters record component.
      Returns:
      the value of the filters record component
    • inMemoryFilters

      public List<AuditFilter> inMemoryFilters()
      Returns the value of the inMemoryFilters record component.
      Returns:
      the value of the inMemoryFilters record component