Record Class CLNParseRequest
java.lang.Object
java.lang.Record
com.io7m.calino.parser.api.CLNParseRequest
- Record Components:
decompressors- The decompressor factorychannel- The file channelsource- The data sourcedescriptorLengthLimit- The maximum descriptor lengthkeyValueDatumLimit- The maximum value of a metadata key or value
public record CLNParseRequest(CLNDecompressorFactoryType decompressors, SeekableByteChannel channel, URI source, long descriptorLengthLimit, long keyValueDatumLimit)
extends Record
A parse request.
-
Constructor Summary
ConstructorsConstructorDescriptionCLNParseRequest(CLNDecompressorFactoryType decompressors, SeekableByteChannel channel, URI source, long descriptorLengthLimit, long keyValueDatumLimit) A parse request. -
Method Summary
Modifier and TypeMethodDescriptionstatic CLNParseRequestBuilderTypebuilder(CLNDecompressorFactoryType inDecompressors, SeekableByteChannel inChannel, URI inSource) Create a new mutable request builder.channel()Returns the value of thechannelrecord component.Returns the value of thedecompressorsrecord component.longReturns the value of thedescriptorLengthLimitrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thekeyValueDatumLimitrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CLNParseRequest
public CLNParseRequest(CLNDecompressorFactoryType decompressors, SeekableByteChannel channel, URI source, long descriptorLengthLimit, long keyValueDatumLimit) A parse request.- Parameters:
decompressors- The decompressor factorychannel- The file channelsource- The data sourcedescriptorLengthLimit- The maximum descriptor lengthkeyValueDatumLimit- The maximum value of a metadata key or value
-
-
Method Details
-
builder
public static CLNParseRequestBuilderType builder(CLNDecompressorFactoryType inDecompressors, SeekableByteChannel inChannel, URI inSource) Create a new mutable request builder.- Parameters:
inDecompressors- The decompressor factoryinChannel- The file channelinSource- The data source- Returns:
- A request builder
-
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 thecomparemethod from their corresponding wrapper classes. -
decompressors
Returns the value of thedecompressorsrecord component.- Returns:
- the value of the
decompressorsrecord component
-
channel
-
source
-
descriptorLengthLimit
public long descriptorLengthLimit()Returns the value of thedescriptorLengthLimitrecord component.- Returns:
- the value of the
descriptorLengthLimitrecord component
-
keyValueDatumLimit
public long keyValueDatumLimit()Returns the value of thekeyValueDatumLimitrecord component.- Returns:
- the value of the
keyValueDatumLimitrecord component
-