Package cz.o2.proxima.direct.core
Class DirectAttributeFamilyDescriptor
- java.lang.Object
-
- cz.o2.proxima.direct.core.DirectAttributeFamilyDescriptor
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
DirectAttributeFamilyProxyDescriptor
public class DirectAttributeFamilyDescriptor extends java.lang.Object implements java.io.SerializableAttribute descriptor with associated accessors.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.List<AttributeDescriptor<?>>getAttributes()java.util.Optional<BatchLogReader>getBatchReader()Retrieve batch reader of this family.java.util.Optional<CachedView>getCachedView()Retrieve cached view.java.util.Optional<CommitLogReader>getCommitLogReader()Retrieve a commit log reader of this family.java.util.Optional<RandomAccessReader>getRandomAccessReader()Retrieve a random access reader.java.util.Optional<java.lang.String>getSource()Retrieve optional name of source attribute family, if this is replica.java.util.Optional<AttributeWriterBase>getWriter()Retrieve writer for this family.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
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
-
getWriter
public java.util.Optional<AttributeWriterBase> getWriter()
Retrieve writer for this family. Empty if this family is not writable.- Returns:
- optional
AttributeWriterBaseof this family
-
getCommitLogReader
public java.util.Optional<CommitLogReader> getCommitLogReader()
Retrieve a commit log reader of this family. Empty if this attribute family is not a commit log.- Returns:
- optional
CommitLogReaderof this family
-
getBatchReader
public java.util.Optional<BatchLogReader> getBatchReader()
Retrieve batch reader of this family.- Returns:
- optional
BatchLogReaderof this family
-
getRandomAccessReader
public java.util.Optional<RandomAccessReader> getRandomAccessReader()
Retrieve a random access reader. Empty if this attribute family is not a random access.- Returns:
- optional
RandomAccessReaderof this family
-
getCachedView
public java.util.Optional<CachedView> getCachedView()
Retrieve cached view. Empty if the attribute family cannot create cached view.- Returns:
- optional
CachedViewof this family
-
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
-
-