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.Serializable
Attribute descriptor with associated accessors.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(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.int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
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
-
getWriter
public java.util.Optional<AttributeWriterBase> getWriter()
Retrieve writer for this family. Empty if this family is not writable.- Returns:
- optional
AttributeWriterBase
of 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
CommitLogReader
of this family
-
getBatchReader
public java.util.Optional<BatchLogReader> getBatchReader()
Retrieve batch reader of this family.- Returns:
- optional
BatchLogReader
of 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
RandomAccessReader
of this family
-
getCachedView
public java.util.Optional<CachedView> getCachedView()
Retrieve cached view. Empty if the attribute family cannot create cached view.- Returns:
- optional
CachedView
of 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
-
-