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 valuestrictness- The parser strictness
public record CLNParseRequest(CLNDecompressorFactoryType decompressors, SeekableByteChannel channel, URI source, long descriptorLengthLimit, long keyValueDatumLimit, CLNParseRequest.CLNParseStrictness strictness)
extends Record
A parse request.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe strictness of parsing. -
Constructor Summary
ConstructorsConstructorDescriptionCLNParseRequest(CLNDecompressorFactoryType decompressors, SeekableByteChannel channel, URI source, long descriptorLengthLimit, long keyValueDatumLimit, CLNParseRequest.CLNParseStrictness strictness) 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.Returns the value of thestrictnessrecord 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, CLNParseRequest.CLNParseStrictness strictness) 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 valuestrictness- The parser strictness
-
-
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
-
strictness
Returns the value of thestrictnessrecord component.- Returns:
- the value of the
strictnessrecord component
-