Record Class BlockfileCompactor.BlockfileCompactorParams
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.io.compact.BlockfileCompactor.BlockfileCompactorParams
- Enclosing class:
BlockfileCompactor
public static record BlockfileCompactor.BlockfileCompactorParams(Supplier<Boolean> shouldStop, int targetNumFiles, boolean prune, BlockfileMergerParams mergerParams)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileCompactorParams(Supplier<Boolean> shouldStop, int targetNumFiles, boolean prune, BlockfileMergerParams mergerParams) Creates an instance of aBlockfileCompactorParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themergerParamsrecord component.booleanprune()Returns the value of theprunerecord component.Returns the value of theshouldStoprecord component.intReturns the value of thetargetNumFilesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileCompactorParams
public BlockfileCompactorParams(Supplier<Boolean> shouldStop, int targetNumFiles, boolean prune, BlockfileMergerParams mergerParams) Creates an instance of aBlockfileCompactorParamsrecord class.- Parameters:
shouldStop- the value for theshouldStoprecord componenttargetNumFiles- the value for thetargetNumFilesrecord componentprune- the value for theprunerecord componentmergerParams- the value for themergerParamsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
shouldStop
-
targetNumFiles
public int targetNumFiles()Returns the value of thetargetNumFilesrecord component.- Returns:
- the value of the
targetNumFilesrecord component
-
prune
public boolean prune()Returns the value of theprunerecord component.- Returns:
- the value of the
prunerecord component
-
mergerParams
Returns the value of themergerParamsrecord component.- Returns:
- the value of the
mergerParamsrecord component
-