Record Class ConfigMerger.MergedConfig
java.lang.Object
java.lang.Record
org.apache.tika.pipes.core.config.ConfigMerger.MergedConfig
- Record Components:
json- the merged configuration; load it withTikaJsonConfig.load(java.io.InputStream)so env references resolvefetcherId- the primary generated fetcher ID (may be null if no fetchers were added)emitterId- the primary generated emitter ID (may be null if no emitters were added)
- Enclosing class:
ConfigMerger
public static record ConfigMerger.MergedConfig(byte[] json, String fetcherId, String emitterId)
extends Record
Result of an in-memory config merge.
-
Constructor Summary
ConstructorsConstructorDescriptionMergedConfig(byte[] json, String fetcherId, String emitterId) Creates an instance of aMergedConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theemitterIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefetcherIdrecord component.final inthashCode()Returns a hash code value for this object.byte[]json()Returns the value of thejsonrecord component.load()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
load
- Throws:
TikaConfigException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
json
public byte[] json()Returns the value of thejsonrecord component.- Returns:
- the value of the
jsonrecord component
-
fetcherId
Returns the value of thefetcherIdrecord component.- Returns:
- the value of the
fetcherIdrecord component
-
emitterId
Returns the value of theemitterIdrecord component.- Returns:
- the value of the
emitterIdrecord component
-