Package fr.becpg.repo.audit.service.impl
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final AuditQueryThe field for theauditQueryrecord component.The field for thefiltersrecord component.private final List<AuditFilter> The field for theinMemoryFiltersrecord component.private final DatabaseAuditPluginThe field for thepluginrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateWindowScan(DatabaseAuditPlugin plugin, AuditQuery auditQuery, List<String> filters, List<AuditFilter> inMemoryFilters) Creates an instance of aWindowScanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauditQueryrecord component.final booleanIndicates whether some other object is "equal to" this one.filters()Returns the value of thefiltersrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinMemoryFiltersrecord component.plugin()Returns the value of thepluginrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
plugin
The field for thepluginrecord component. -
auditQuery
The field for theauditQueryrecord component. -
filters
The field for thefiltersrecord component. -
inMemoryFilters
The field for theinMemoryFiltersrecord component.
-
-
Constructor Details
-
WindowScan
private WindowScan(DatabaseAuditPlugin plugin, AuditQuery auditQuery, List<String> filters, List<AuditFilter> inMemoryFilters) Creates an instance of aWindowScanrecord class.- Parameters:
plugin- the value for thepluginrecord componentauditQuery- the value for theauditQueryrecord componentfilters- the value for thefiltersrecord componentinMemoryFilters- the value for theinMemoryFiltersrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
plugin
Returns the value of thepluginrecord component.- Returns:
- the value of the
pluginrecord component
-
auditQuery
Returns the value of theauditQueryrecord component.- Returns:
- the value of the
auditQueryrecord component
-
filters
Returns the value of thefiltersrecord component.- Returns:
- the value of the
filtersrecord component
-
inMemoryFilters
Returns the value of theinMemoryFiltersrecord component.- Returns:
- the value of the
inMemoryFiltersrecord component
-