Record Class GCSEmitterConfig
java.lang.Object
java.lang.Record
org.apache.tika.pipes.emitter.gcs.GCSEmitterConfig
-
Constructor Summary
ConstructorsConstructorDescriptionGCSEmitterConfig(String projectId, String bucket, String prefix, String fileExtension) Creates an instance of aGCSEmitterConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbucket()Returns the value of thebucketrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileExtensionrecord component.Get the prefix, stripping any trailing slash.final inthashCode()Returns a hash code value for this object.static GCSEmitterConfigprefix()Returns the value of theprefixrecord component.Returns the value of theprojectIdrecord component.final StringtoString()Returns a string representation of this record class.voidvalidate()
-
Constructor Details
-
GCSEmitterConfig
Creates an instance of aGCSEmitterConfigrecord class.- Parameters:
projectId- the value for theprojectIdrecord componentbucket- the value for thebucketrecord componentprefix- the value for theprefixrecord componentfileExtension- the value for thefileExtensionrecord component
-
-
Method Details
-
load
- Throws:
TikaConfigException
-
validate
- Throws:
TikaConfigException
-
getNormalizedPrefix
Get the prefix, stripping any trailing slash. -
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). -
projectId
Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-
bucket
Returns the value of thebucketrecord component.- Returns:
- the value of the
bucketrecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
fileExtension
Returns the value of thefileExtensionrecord component.- Returns:
- the value of the
fileExtensionrecord component
-