Record Class BlockfileCompressor
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.encoding.compression.BlockfileCompressor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbytesToName(byte[] bytes) Returns the value of thedecoderSupplierrecord component.Returns the value of theencodedNamerecord component.Returns the value of theencoderSupplierrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]Function<byte[], byte[]> Function<byte[], byte[]> final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileCompressor
public BlockfileCompressor(String encodedName, Supplier<Function<byte[], byte[]>> encoderSupplier, Supplier<Function<byte[], byte[]>> decoderSupplier) Creates an instance of aBlockfileCompressorrecord class.- Parameters:
encodedName- the value for theencodedNamerecord componentencoderSupplier- the value for theencoderSupplierrecord componentdecoderSupplier- the value for thedecoderSupplierrecord component
-
-
Method Details
-
nameToBytes
public byte[] nameToBytes() -
bytesToName
-
newEncoder
-
newDecoder
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
encodedName
Returns the value of theencodedNamerecord component.- Returns:
- the value of the
encodedNamerecord component
-
encoderSupplier
-
decoderSupplier
-