Record Class DriverFiles.Entry
java.lang.Object
java.lang.Record
com.complexible.stardog.virtual.api.DriverFiles.Entry
- Record Components:
property- the driver property this file is the value of, egLocationpath- the entry's path within the directory materialized forproperty, ornullwhen the property is a single file rather than a directorycontent- the bytes to write
- Enclosing class:
DriverFiles
public static record DriverFiles.Entry(String property, @Nullable String path, byte[] content)
extends Record
One file supplied by the client, destined for a single driver property.
A record for brevity, but not a value: content is an array, so the generated
equals/hashCode compare identities rather than bytes. Nothing compares entries, and
DriverFiles.contentHash(java.lang.String, java.util.SortedMap<java.lang.String, java.util.List<com.complexible.stardog.virtual.api.DriverFiles.Entry>>) is what stands in for their value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]content()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.property()Returns the value of thepropertyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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). -
property
Returns the value of thepropertyrecord component.- Returns:
- the value of the
propertyrecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
content
public byte[] content()Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-