public interface TagSearchEngine
Modifier and Type | Method and Description |
---|---|
org.apache.directory.api.ldap.model.cursor.Cursor<Tag> |
find(long startRevision,
long endRevision,
RevisionOrder order)
Enumerates over the tags of all snapshots taken between a specific revision
range inclusive.
|
org.apache.directory.api.ldap.model.cursor.Cursor<Tag> |
find(RevisionOrder order)
Finds all the snapshot tags taken since revision 0 until the current
revision.
|
org.apache.directory.api.ldap.model.cursor.Cursor<Tag> |
findAfter(long revision,
RevisionOrder order)
Finds all the snapshot tags taken after a specific revision.
|
org.apache.directory.api.ldap.model.cursor.Cursor<Tag> |
findBefore(long revision,
RevisionOrder order)
Finds all the snapshot tags taken before a specific revision.
|
boolean |
has(long revision)
Checks to see if a snapshot exists for a specific revision.
|
Tag |
lookup(long revision)
Gets the tag for a specific snapshot if that snapshot exists.
|
Tag lookup(long revision) throws Exception
revision
- the revision number to use to check for a snapshotException
- if there is a problem accessing the storeboolean has(long revision) throws Exception
revision
- the revision number to use to check for a snapshotException
- if there is a problem accessing the storeorg.apache.directory.api.ldap.model.cursor.Cursor<Tag> find(RevisionOrder order) throws Exception
order
- the revision order in which to return snapshot tagsException
- if there is a problem accessing the storeorg.apache.directory.api.ldap.model.cursor.Cursor<Tag> findBefore(long revision, RevisionOrder order) throws Exception
revision
- the revision number to get snapshots beforeorder
- the revision order in which to return snapshot tagsException
- if there is a problem accessing the storeIllegalArgumentException
- if the revision is greater than the current revision
or less than 0.org.apache.directory.api.ldap.model.cursor.Cursor<Tag> findAfter(long revision, RevisionOrder order) throws Exception
revision
- the revision number to get snapshots afterorder
- the revision order in which to return snapshot tagsException
- if there is a problem accessing the storeIllegalArgumentException
- if the revision is greater than the current revision
or less than 0.org.apache.directory.api.ldap.model.cursor.Cursor<Tag> find(long startRevision, long endRevision, RevisionOrder order) throws Exception
startRevision
- the revision to start on inclusiveendRevision
- the revision to end on inclusiveorder
- the revision order in which to return snapshot tagsException
- if there is a problem accessing the storeIllegalArgumentException
- if the revision range is not constructed properly
or if either revision number is greater than the current revision or less than 0.Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.