Package cz.o2.proxima.core.repository
Class AttributeFamilyDescriptor
- java.lang.Object
-
- cz.o2.proxima.core.repository.AttributeFamilyDescriptor
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
AttributeFamilyProxyDescriptor
@Evolving public class AttributeFamilyDescriptor extends java.lang.Object implements java.io.Serializable
A family of attributes with the same storage.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttributeFamilyDescriptor.Builder
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCFG_REPLICATION_CONSUMER_NAME_GENERATOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<AttributeDescriptor<?>>getAttributes()java.util.Optional<java.lang.String>getSource()Retrieve optional name of source attribute family, if this is replica.inthashCode()booleanisProxy()Check if this proxied family.static AttributeFamilyDescriptor.BuildernewBuilder()AttributeFamilyProxyDescriptortoProxy()Convert this object to proxy descriptor.java.lang.StringtoString()
-
-
-
Field Detail
-
CFG_REPLICATION_CONSUMER_NAME_GENERATOR
public static final java.lang.String CFG_REPLICATION_CONSUMER_NAME_GENERATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
newBuilder
public static AttributeFamilyDescriptor.Builder newBuilder()
-
getAttributes
public java.util.List<AttributeDescriptor<?>> getAttributes()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getSource
public java.util.Optional<java.lang.String> getSource()
Retrieve optional name of source attribute family, if this is replica. The source might not be explicitly specified (in which case this method returnsOptional.empty()and the source is determined automatically.- Returns:
- optional specified source family
-
isProxy
public boolean isProxy()
Check if this proxied family.- Returns:
trueif proxied family
-
toProxy
public AttributeFamilyProxyDescriptor toProxy()
Convert this object to proxy descriptor.- Returns:
- this object cast to
AttributeFamilyProxyDescriptor
-
-