Package org.apache.polaris.service.types
Record Class PolicyIdentifier
java.lang.Object
java.lang.Record
org.apache.polaris.service.types.PolicyIdentifier
public record PolicyIdentifier(org.apache.iceberg.catalog.Namespace namespace, String name)
extends Record
Represents a modified version of the PolicyIdentifier that is different from the one generated by
the OpenAPI generator
the open api generation inlines the namespace definition, generates a List<String>
directly, instead of generating a Namespace class. This version uses Namespace for
namespace field.
TODO: make code generation use Namespace directly
-
Constructor Summary
ConstructorsConstructorDescriptionPolicyIdentifier(org.apache.iceberg.catalog.Namespace namespace, String name) Creates an instance of aPolicyIdentifierrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.polaris.service.types.PolicyIdentifierBuilderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.org.apache.iceberg.catalog.NamespaceReturns the value of thenamespacerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PolicyIdentifier
Creates an instance of aPolicyIdentifierrecord class.- Parameters:
namespace- the value for thenamespacerecord componentname- the value for thenamerecord component
-
-
Method Details
-
builder
public static org.apache.polaris.service.types.PolicyIdentifierBuilder builder() -
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). -
namespace
public org.apache.iceberg.catalog.Namespace namespace()Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-