Package io.datarouter.bytes.blockfile
Record Class BlockfileGroup<T>
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.BlockfileGroup<T>
public record BlockfileGroup<T>(BlockfileStorage storage, BlockfileValueBlockFormats registeredValueBlockFormats, BlockfileIndexBlockFormats registeredIndexBlockFormats, BlockfileCompressors registeredCompressors, BlockfileChecksummers registeredChecksummers)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileGroup(BlockfileStorage storage, BlockfileValueBlockFormats registeredValueBlockFormats, BlockfileIndexBlockFormats registeredIndexBlockFormats, BlockfileCompressors registeredCompressors, BlockfileChecksummers registeredChecksummers) Creates an instance of aBlockfileGrouprecord 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.newMetadataReaderBuilder(String pathAndFile) newReaderBuilder(BlockfileMetadataReader<T> metadataReader, Function<BlockfileRow, T> rowDecoder) For cases where you need to obtain something from the header/footer before creating the reader.newReaderBuilder(String pathAndFile, Function<BlockfileRow, T> rowDecoder) newReaderBuilderKnownFileLength(String pathAndFile, long knownFileLength, Function<BlockfileRow, T> rowDecoder) newWriterBuilder(String name) Returns the value of theregisteredChecksummersrecord component.Returns the value of theregisteredCompressorsrecord component.Returns the value of theregisteredIndexBlockFormatsrecord component.Returns the value of theregisteredValueBlockFormatsrecord component.storage()Returns the value of thestoragerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileGroup
public BlockfileGroup(BlockfileStorage storage, BlockfileValueBlockFormats registeredValueBlockFormats, BlockfileIndexBlockFormats registeredIndexBlockFormats, BlockfileCompressors registeredCompressors, BlockfileChecksummers registeredChecksummers) Creates an instance of aBlockfileGrouprecord class.- Parameters:
storage- the value for thestoragerecord componentregisteredValueBlockFormats- the value for theregisteredValueBlockFormatsrecord componentregisteredIndexBlockFormats- the value for theregisteredIndexBlockFormatsrecord componentregisteredCompressors- the value for theregisteredCompressorsrecord componentregisteredChecksummers- the value for theregisteredChecksummersrecord component
-
-
Method Details
-
newWriterBuilder
-
newMetadataReaderBuilder
-
newReaderBuilder
public BlockfileReaderBuilder<T> newReaderBuilder(BlockfileMetadataReader<T> metadataReader, Function<BlockfileRow, T> rowDecoder) For cases where you need to obtain something from the header/footer before creating the reader. -
newReaderBuilder
public BlockfileReaderBuilder<T> newReaderBuilder(String pathAndFile, Function<BlockfileRow, T> rowDecoder) -
newReaderBuilderKnownFileLength
public BlockfileReaderBuilder<T> newReaderBuilderKnownFileLength(String pathAndFile, long knownFileLength, Function<BlockfileRow, T> rowDecoder) -
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
-
registeredValueBlockFormats
Returns the value of theregisteredValueBlockFormatsrecord component.- Returns:
- the value of the
registeredValueBlockFormatsrecord component
-
registeredIndexBlockFormats
Returns the value of theregisteredIndexBlockFormatsrecord component.- Returns:
- the value of the
registeredIndexBlockFormatsrecord component
-
registeredCompressors
Returns the value of theregisteredCompressorsrecord component.- Returns:
- the value of the
registeredCompressorsrecord component
-
registeredChecksummers
Returns the value of theregisteredChecksummersrecord component.- Returns:
- the value of the
registeredChecksummersrecord component
-