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 class
AttributeFamilyDescriptor.Builder
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CFG_REPLICATION_CONSUMER_NAME_GENERATOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<AttributeDescriptor<?>>
getAttributes()
java.util.Map<java.lang.String,java.lang.Object>
getCfg()
java.util.Optional<java.lang.String>
getSource()
Retrieve optional name of source attribute family, if this is replica.int
hashCode()
boolean
isProxy()
Check if this proxied family.static AttributeFamilyDescriptor.Builder
newBuilder()
AttributeFamilyProxyDescriptor
toProxy()
Convert this object to proxy descriptor.java.lang.String
toString()
-
-
-
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()
-
getCfg
public java.util.Map<java.lang.String,java.lang.Object> getCfg()
-
getAttributes
public java.util.List<AttributeDescriptor<?>> getAttributes()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in 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:
true
if proxied family
-
toProxy
public AttributeFamilyProxyDescriptor toProxy()
Convert this object to proxy descriptor.- Returns:
- this object cast to
AttributeFamilyProxyDescriptor
-
-