Class PropertyIteratorBase
java.lang.Object
org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
org.odpi.openmetadata.frameworks.connectors.properties.PropertyIteratorBase
- Direct Known Subclasses:
APIOperations
,Certifications
,CommentReplies
,Comments
,Connections
,ExternalIdentifiers
,ExternalReferences
,InformalTags
,Licenses
,Likes
,Locations
,NoteLogs
,Notes
,Ratings
,RelatedAssets
,RelatedMediaReferences
,SchemaAttributes
Base class for the iterators supporting asset universe
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ModifierConstructorDescriptionprotected
PropertyIteratorBase
(int maxCacheSize) Typical Constructor creates an iterator with the supplied list of comments.protected
PropertyIteratorBase
(PropertyIteratorBase template) Copy/clone constructor sets up details of the parent asset from the template -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ElementBase
cloneElement
(ElementBase template) Method implemented by a subclass that ensures the cloning process is a deep clone.protected abstract List<ElementBase>
getCachedList
(int cacheStartPointer, int maximumSize) Method implemented by subclass to retrieve the next cached list of elements.Methods inherited from class org.odpi.openmetadata.frameworks.connectors.properties.beans.PropertyBase
equals, getHeaderVersion, hashCode, setHeaderVersion
-
Field Details
-
pagingIterator
-
-
Constructor Details
-
PropertyIteratorBase
protected PropertyIteratorBase(int maxCacheSize) Typical Constructor creates an iterator with the supplied list of comments.- Parameters:
maxCacheSize
- maximum number of elements that should be retrieved from the property server and cached in the element list at any one time. If a number less than one is supplied, 1 is used.
-
PropertyIteratorBase
Copy/clone constructor sets up details of the parent asset from the template- Parameters:
template
- PropertyIteratorBase to copy
-
-
Method Details
-
cloneElement
Method implemented by a subclass that ensures the cloning process is a deep clone.- Parameters:
template
- object to clone- Returns:
- new cloned object.
-
getCachedList
protected abstract List<ElementBase> getCachedList(int cacheStartPointer, int maximumSize) throws PropertyServerException Method implemented by subclass to retrieve the next cached list of elements.- Parameters:
cacheStartPointer
- where to start the cache.maximumSize
- maximum number of elements in the cache.- Returns:
- list of elements corresponding to the supplied cache pointers.
- Throws:
PropertyServerException
- there is a problem retrieving elements from the property (metadata) server.
-