Record Class BlockfileMetadataReader.BlockfileMetadataReaderConfig<T>
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.io.read.metadata.BlockfileMetadataReader.BlockfileMetadataReaderConfig<T>
- Enclosing class:
BlockfileMetadataReader<T>
public static record BlockfileMetadataReader.BlockfileMetadataReaderConfig<T>(BlockfileStorage storage, BlockfileHeaderBlock.BlockfileHeaderCodec headerCodec, Optional<Long> knownFileLength)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileMetadataReaderConfig(BlockfileStorage storage, BlockfileHeaderBlock.BlockfileHeaderCodec headerCodec, Optional<Long> knownFileLength) Creates an instance of aBlockfileMetadataReaderConfigrecord 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 theheaderCodecrecord component.Returns the value of theknownFileLengthrecord component.storage()Returns the value of thestoragerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileMetadataReaderConfig
public BlockfileMetadataReaderConfig(BlockfileStorage storage, BlockfileHeaderBlock.BlockfileHeaderCodec headerCodec, Optional<Long> knownFileLength) Creates an instance of aBlockfileMetadataReaderConfigrecord class.- Parameters:
storage- the value for thestoragerecord componentheaderCodec- the value for theheaderCodecrecord componentknownFileLength- the value for theknownFileLengthrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
storage
Returns the value of thestoragerecord component.- Returns:
- the value of the
storagerecord component
-
headerCodec
Returns the value of theheaderCodecrecord component.- Returns:
- the value of the
headerCodecrecord component
-
knownFileLength
-