Skip navigation links
A B C D E F G H I J K L M N O P Q R S T U V W _ 

A

AbstractTreeNode<T> - Class in com.cloudant.sync.util
Internal utility class
AbstractTreeNode(T) - Constructor for class com.cloudant.sync.util.AbstractTreeNode
 
add(DocumentRevision) - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Adds a new DocumentRevision to the document.
addAttachment(SQLDatabase, String, DocumentRevision, PreparedAttachment) - Static method in class com.cloudant.sync.datastore.AttachmentManager
 
addAttachment(Attachment, long) - Method in class com.cloudant.sync.datastore.MultipartAttachmentWriter
Add an attachment to be streamed as a subsequent MIME body.
addAttachmentsToRevision(SQLDatabase, String, DocumentRevision, List<PreparedAttachment>) - Static method in class com.cloudant.sync.datastore.AttachmentManager
 
addChild(AbstractTreeNode<T>) - Method in class com.cloudant.sync.util.AbstractTreeNode
 
addListener(ReplicationService.ReplicationCompleteListener) - Method in class com.cloudant.sync.replication.ReplicationService
Add a listener to the set of ReplicationService.ReplicationCompleteListeners that are notified when replications complete.
addReplicators(Replicator...) - Method in class com.cloudant.sync.replication.ReplicationPolicyManager
 
addRequestInterceptors(HttpConnectionRequestInterceptor...) - Method in class com.cloudant.sync.replication.ReplicatorBuilder
addRequestInterceptors(List<HttpConnectionRequestInterceptor>) - Method in class com.cloudant.sync.replication.ReplicatorBuilder
Adds interceptors to the list of request interceptors to use for each request made by this replication.
addResponseInterceptors(HttpConnectionResponseInterceptor...) - Method in class com.cloudant.sync.replication.ReplicatorBuilder
addResponseInterceptors(List<HttpConnectionResponseInterceptor>) - Method in class com.cloudant.sync.replication.ReplicatorBuilder
Adds interceptors to the list of response interceptors to use for each response received by this replication.
addValuesToKey(K, Collection<V>) - Method in class com.cloudant.common.ValueListMap
Add a collection of one or more values to the map under the existing key or creating a new key if it does not yet exist in the map.
addValueToKey(K, V) - Method in class com.cloudant.common.ValueListMap
Add a value to the map under the existing key or creating a new key if it does not yet exist.
allReplicationsComplete() - Method in interface com.cloudant.sync.replication.ReplicationService.ReplicationCompleteListener
Callback to indicate that all replications passed to ReplicationService.setReplicators(Replicator[]) are complete.
allReplicationsComplete() - Method in class com.cloudant.sync.replication.ReplicationService.SimpleReplicationCompleteListener
 
allReplicationsCompleted() - Method in interface com.cloudant.sync.replication.ReplicationPolicyManager.ReplicationsCompletedListener
 
allReplicationsCompleted() - Method in class com.cloudant.sync.replication.ReplicationService
 
ANDROID_RUNTIME - Static variable in class com.cloudant.sync.util.Misc
 
AndroidSQLite - Class in com.cloudant.sync.sqlite.android
 
AndroidSQLite(SQLiteDatabase) - Constructor for class com.cloudant.sync.sqlite.android.AndroidSQLite
 
AndroidSQLiteCursor - Class in com.cloudant.sync.sqlite.android
 
AndroidSQLiteCursor(Cursor) - Constructor for class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
asBytes() - Method in interface com.cloudant.sync.datastore.DocumentBody
Returns copy of the data as a byte array.
asBytes() - Method in class com.cloudant.sync.datastore.DocumentRevision
Returns the JSON body of the document revision as a byte array.
asMap() - Method in interface com.cloudant.sync.datastore.DocumentBody
Returns a shallow copy of the underlying data as a map.
asMap() - Method in class com.cloudant.sync.datastore.DocumentRevision
Returns the JSON body of the document revision as a Map object.
Attachment - Class in com.cloudant.sync.datastore
Base class for Attachments
Attachment(String, String, Attachment.Encoding) - Constructor for class com.cloudant.sync.datastore.Attachment
 
attachment - Variable in class com.cloudant.sync.datastore.PreparedAttachment
 
Attachment.Encoding - Enum in com.cloudant.sync.datastore
 
ATTACHMENT_DISK_VERSION - Static variable in class com.cloudant.sync.datastore.encryption.EncryptionConstants
 
AttachmentException - Exception in com.cloudant.sync.datastore
Created by Rhys Short on 05/02/15.
AttachmentException() - Constructor for exception com.cloudant.sync.datastore.AttachmentException
 
AttachmentException(String) - Constructor for exception com.cloudant.sync.datastore.AttachmentException
 
AttachmentException(Exception) - Constructor for exception com.cloudant.sync.datastore.AttachmentException
 
AttachmentException(String, Exception) - Constructor for exception com.cloudant.sync.datastore.AttachmentException
 
AttachmentManager - Class in com.cloudant.sync.datastore
An AttachmentManager handles attachment related tasks: adding, removing and retrieving attachments for documents from disk.
AttachmentManager() - Constructor for class com.cloudant.sync.datastore.AttachmentManager
 
AttachmentManager.NameGenerationException - Exception in com.cloudant.sync.datastore
 
AttachmentNotSavedException - Exception in com.cloudant.sync.datastore
Created by Rhys Short on 05/02/15.
AttachmentNotSavedException() - Constructor for exception com.cloudant.sync.datastore.AttachmentNotSavedException
 
AttachmentNotSavedException(String) - Constructor for exception com.cloudant.sync.datastore.AttachmentNotSavedException
 
AttachmentNotSavedException(Exception) - Constructor for exception com.cloudant.sync.datastore.AttachmentNotSavedException
 
AttachmentNotSavedException(String, Exception) - Constructor for exception com.cloudant.sync.datastore.AttachmentNotSavedException
 
attachments - Variable in class com.cloudant.sync.datastore.ForceInsertItem
 
attachmentsForRevision(DocumentRevision) - Method in class com.cloudant.sync.datastore.DatastoreImpl
Returns all attachments for the revision.
AttachmentsForRevisionCallable - Class in com.cloudant.sync.datastore.callables
Get all Attachments for a given internal sequence number
AttachmentsForRevisionCallable(String, AttachmentStreamFactory, long) - Constructor for class com.cloudant.sync.datastore.callables.AttachmentsForRevisionCallable
 
AttachmentStreamFactory - Class in com.cloudant.sync.datastore
Class to manage returning appropriate streams to access on disk attachments.
AttachmentStreamFactory(KeyProvider) - Constructor for class com.cloudant.sync.datastore.AttachmentStreamFactory
Creates a factory Attachment objects can use to read/write attachments.
attachmentUri(String, String) - Method in class com.cloudant.mazha.CouchURIHelper
Returns URI for Attachment having attachmentId for documentId.
attachmentUri(String, Map<String, Object>, String) - Method in class com.cloudant.mazha.CouchURIHelper
Returns URI for Attachment having attachmentId for documentId with query.
atts_since - Variable in class com.cloudant.mazha.BulkGetRequest
 
available - Variable in class com.cloudant.sync.datastore.callables.InsertRevisionCallable
 
available() - Method in class com.cloudant.sync.datastore.encryption.EncryptedAttachmentInputStream
 

B

Base64InputStreamFactory - Class in com.cloudant.android
Created by tomblench on 07/07/2014.
Base64InputStreamFactory() - Constructor for class com.cloudant.android.Base64InputStreamFactory
 
Base64OutputStreamFactory - Class in com.cloudant.android
Created by tomblench on 07/07/2014.
Base64OutputStreamFactory() - Constructor for class com.cloudant.android.Base64OutputStreamFactory
 
batchesReplicated - Variable in class com.cloudant.sync.notifications.ReplicationCompleted
The total number of batches replicated by the ReplicationCompleted.replicator
batchLimitPerRun(int) - Method in class com.cloudant.sync.replication.ReplicatorBuilder.Pull
Sets the number of batches to pull in one replication run
batchLimitPerRun(int) - Method in class com.cloudant.sync.replication.ReplicatorBuilder.Push
Sets the number of batches to push in one replication run
beginTransaction() - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
beginTransaction() - Method in class com.cloudant.sync.sqlite.SQLDatabase
Begins a transaction in EXCLUSIVE mode.
body - Variable in class com.cloudant.sync.datastore.LocalDocument
The body of the local document
build() - Method in class com.cloudant.sync.datastore.DocumentRevisionBuilder
Builds and returns the DocumentRevision for this builder.
build() - Method in class com.cloudant.sync.replication.ReplicatorBuilder
Builds a replicator based on the configuration set.
build() - Method in class com.cloudant.sync.replication.ReplicatorBuilder.Pull
 
build() - Method in class com.cloudant.sync.replication.ReplicatorBuilder.Push
 
buildBindArguments(ContentValues, String[]) - Static method in class com.cloudant.sync.sqlite.sqlite4java.QueryBuilder
 
buildProjected() - Method in class com.cloudant.sync.datastore.DocumentRevisionBuilder
Builds and returns the ProjectedDocumentRevision for this builder.
buildSelectCountQuery(String, String) - Static method in class com.cloudant.sync.sqlite.sqlite4java.QueryBuilder
 
buildSelectQuery(String, String[], String, String, String, String, String) - Static method in class com.cloudant.sync.sqlite.sqlite4java.QueryBuilder
 
buildUpdateQuery(String, ContentValues, String, String[]) - Static method in class com.cloudant.sync.sqlite.sqlite4java.QueryBuilder
 
bulkCreateDocs(Object...) - Method in class com.cloudant.mazha.CouchClient
 
bulkCreateDocs(List<?>) - Method in class com.cloudant.mazha.CouchClient
 
bulkCreateDocs(List<DocumentRevision>) - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
bulkCreateSerializedDocs(String...) - Method in class com.cloudant.mazha.CouchClient
Bulk insert a list of document that are serialized to JSON data already.
bulkCreateSerializedDocs(List<String>) - Method in class com.cloudant.mazha.CouchClient
Bulk insert a list of document that are serialized to JSON data already.
bulkCreateSerializedDocs(List<String>) - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
bulkDocsUri() - Method in class com.cloudant.mazha.CouchURIHelper
Returns URI for _bulk_docs endpoint.
BulkGetRequest - Class in com.cloudant.mazha
Represents a bulk GET request for documents This is in the format which the _bulk_get endpoint understands, where <doc id, rev id> pairs are given.
BulkGetRequest() - Constructor for class com.cloudant.mazha.BulkGetRequest
 
BulkGetRequest - Class in com.cloudant.sync.replication
Represents a bulk GET request for documents This is in the format which the replicator understands, (also the format used for querying docs with open_revs and for the _revs_diff endpoint) where a list of rev ids is given for each doc id
BulkGetRequest(String, List<String>, List<String>) - Constructor for class com.cloudant.sync.replication.BulkGetRequest
 
BulkGetResponse - Class in com.cloudant.mazha
 
BulkGetResponse() - Constructor for class com.cloudant.mazha.BulkGetResponse
 
BulkGetResponse.Doc - Class in com.cloudant.mazha
 
BulkGetResponse.Result - Class in com.cloudant.mazha
 
bulkGetRevisions(List<BulkGetRequest>, boolean) - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
bulkInsertSize(int) - Method in class com.cloudant.sync.replication.ReplicatorBuilder.Push
Sets the number of documents to bulk insert into the CouchDB instance at a time
bulkReadDocsWithOpenRevisions(List<BulkGetRequest>, boolean) - Method in class com.cloudant.mazha.CouchClient
Return an iterator representing the result of calling the _bulk_docs endpoint.
bySequence(long) - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns a DocumentRevision from this DocumentRevisionTree with a particular sequence number.
bytesToString(byte[]) - Static method in class com.cloudant.sync.util.JSONUtils
 

C

CachingKeyProvider - Class in com.cloudant.sync.datastore.encryption
Given a user-provided KeyProvider, it provides an in-memory cache for retrieving an EncryptionKey.
CachingKeyProvider(KeyProvider) - Constructor for class com.cloudant.sync.datastore.encryption.CachingKeyProvider
Creates a CachingKeyProvider containing a KeyProvider whose EncryptionKey can be cached
call() - Method in class com.cloudant.common.RetriableTask
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.AttachmentsForRevisionCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.ChangesCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.CompactCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.DeleteAllRevisionsCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.DeleteDocumentCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.DeleteLocalDocumentCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.DoForceInsertExistingDocumentWithHistoryCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.DoForceInsertNewDocumentWithHistoryCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.ForceInsertCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.GetAllDocumentIdsCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.GetAllDocumentsCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.GetAllRevisionsOfDocumentCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.GetConflictedDocumentIdsCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.GetDocumentCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.GetDocumentCountCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.GetDocumentsWithIdsCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.GetDocumentsWithInternalIdsCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.GetLastSequenceCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.GetLocalDocumentCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.GetNumericIdCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.GetPossibleAncestorRevisionIdsCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.GetSequenceCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.InsertDocumentHistoryIntoExistingTreeCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.InsertDocumentHistoryToNewTreeCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.InsertDocumentIDCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.InsertLocalDocumentCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.InsertRevisionCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.PickWinningRevisionCallable
Execute the callable, selecting and marking the new winning revision.
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.ResolveConflictsForDocumentCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.RevsDiffBatchCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.SetCurrentCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.UpdateDocumentBodyCallable
 
call(SQLDatabase) - Method in class com.cloudant.sync.datastore.callables.UpdateDocumentFromRevisionCallable
 
call(SQLDatabase) - Method in interface com.cloudant.sync.sqlite.SQLCallable
 
changeLimitPerBatch(int) - Method in class com.cloudant.sync.replication.ReplicatorBuilder.Pull
Sets the number of changes to fetch from the _changes feed per batch
changeLimitPerBatch(int) - Method in class com.cloudant.sync.replication.ReplicatorBuilder.Push
Sets the number of changes to fetch from the _changes feed per batch
ChangeNotifyingMap<K,V> - Interface in com.cloudant.common
 
changes(Object) - Method in class com.cloudant.mazha.CouchClient
 
changes(Object, Integer) - Method in class com.cloudant.mazha.CouchClient
 
changes(String, Map<String, String>, Object, Integer) - Method in class com.cloudant.mazha.CouchClient
 
changes(Map<String, Object>) - Method in class com.cloudant.mazha.CouchClient
 
Changes - Class in com.cloudant.sync.datastore
Changes objects describe a list of changes to the datastore.
Changes(long, List<DocumentRevision>) - Constructor for class com.cloudant.sync.datastore.Changes
Construct a list of changes
changes(long, int) - Method in interface com.cloudant.sync.datastore.Datastore
Returns a list of changed documents, from since to since + limit, inclusive.
changes(long, int) - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
changes(Object, int) - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
changes(PullFilter, Object, int) - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
ChangesCallable - Class in com.cloudant.sync.datastore.callables
Return the list of changes to the datastore, starting at a given `since` sequence value, limited to a maximum number of `limit` changes
ChangesCallable(long, int, String, AttachmentStreamFactory) - Constructor for class com.cloudant.sync.datastore.callables.ChangesCallable
 
ChangesResult - Class in com.cloudant.mazha
Object representation of changes feed, example: { "last_seq": 35, "results": [ { "changes": [ { "rev": "1-bd42b942b8b672f0289cf3cd1f67044c" } ], "id": "2013-09-23T20:50:56.251Z", "seq": 27 }, { "changes": [ { "rev": "29-3f4dabfb32290e557ac1d16b2e8f069c" }, { "rev": "29-01fcbf8a3f1457eff21e18f7766d3b45" }, { "rev": "26-30722da17ad35cf1860f126dba391d67" } ], "id": "2013-09-10T17:47:17.770Z", "seq": 35 } ] }
ChangesResult() - Constructor for class com.cloudant.mazha.ChangesResult
 
ChangesResult.Row - Class in com.cloudant.mazha
Represent a row in Changes result.
ChangesResult.Row.Rev - Class in com.cloudant.mazha
Represent a Change rev.
changesUri(Map<String, Object>) - Method in class com.cloudant.mazha.CouchURIHelper
Returns URI for _changes endpoint using passed query.
checkArgument(boolean, String) - Static method in class com.cloudant.sync.util.Misc
Check an argument meets a condition and throw an IllegalArgumentException if it doesn't.
checkCurrentRevisionIsInRevisionHistory(DocumentRevision, List<String>) - Static method in class com.cloudant.sync.datastore.DatastoreImpl
 
checkInterrupted() - Static method in class com.cloudant.sync.util.ThreadUtils
 
checkNotNull(Object, String) - Static method in class com.cloudant.sync.util.Misc
Check that a parameter is not null and throw IllegalArgumentException with a message of errorMessagePrefix + " must not be null." if it is null, defaulting to "Parameter must not be null.".
checkNotNullOrEmpty(String, String) - Static method in class com.cloudant.sync.util.Misc
Check that a string parameter is not null or empty and throw IllegalArgumentException with a message of errorMessagePrefix + " must not be empty." if it is empty, defaulting to "Parameter must not be empty".
checkState(boolean, String) - Static method in class com.cloudant.sync.util.Misc
Check if a condition is true and throw an IllegalStateException with the given errorMessage if it is not.
CIPHER - Static variable in class com.cloudant.sync.datastore.encryption.EncryptionConstants
 
clear() - Method in class com.cloudant.android.ContentValues
Removes all values.
close() - Method in interface com.cloudant.sync.datastore.Datastore
Close the datastore
close() - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
close() - Method in class com.cloudant.sync.datastore.encryption.EncryptedAttachmentInputStream
 
close() - Method in class com.cloudant.sync.datastore.encryption.EncryptedAttachmentOutputStream
 
close() - Method in class com.cloudant.sync.query.IndexManager
 
close() - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
close() - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
close() - Method in interface com.cloudant.sync.sqlite.Cursor
Close the cursor and release all resource associated
close() - Method in class com.cloudant.sync.sqlite.SQLDatabase
Close the database
close() - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
closeCursorQuietly(Cursor) - Static method in class com.cloudant.sync.util.DatabaseUtils
 
CollectionUtils - Class in com.cloudant.sync.util
 
CollectionUtils() - Constructor for class com.cloudant.sync.util.CollectionUtils
 
columnName(int) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
columnName(int) - Method in interface com.cloudant.sync.sqlite.Cursor
Returns the column name at the given zero-based column index
columnName(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
columnType(int) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
columnType(int) - Method in interface com.cloudant.sync.sqlite.Cursor
Returns data type of the given column's value.
columnType(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
com.cloudant.android - package com.cloudant.android
 
com.cloudant.common - package com.cloudant.common
 
com.cloudant.library - package com.cloudant.library
 
com.cloudant.mazha - package com.cloudant.mazha
 
com.cloudant.mazha.json - package com.cloudant.mazha.json
 
com.cloudant.sync.datastore - package com.cloudant.sync.datastore
 
com.cloudant.sync.datastore.callables - package com.cloudant.sync.datastore.callables
 
com.cloudant.sync.datastore.encryption - package com.cloudant.sync.datastore.encryption
 
com.cloudant.sync.datastore.migrations - package com.cloudant.sync.datastore.migrations
 
com.cloudant.sync.event - package com.cloudant.sync.event
 
com.cloudant.sync.notifications - package com.cloudant.sync.notifications
 
com.cloudant.sync.query - package com.cloudant.sync.query
 
com.cloudant.sync.replication - package com.cloudant.sync.replication
 
com.cloudant.sync.sqlite - package com.cloudant.sync.sqlite
 
com.cloudant.sync.sqlite.android - package com.cloudant.sync.sqlite.android
 
com.cloudant.sync.sqlite.sqlite4java - package com.cloudant.sync.sqlite.sqlite4java
 
com.cloudant.sync.util - package com.cloudant.sync.util
 
COMMAND_DEVICE_REBOOTED - Static variable in class com.cloudant.sync.replication.PeriodicReplicationService
 
COMMAND_NONE - Static variable in class com.cloudant.sync.replication.ReplicationService
 
COMMAND_START_PERIODIC_REPLICATION - Static variable in class com.cloudant.sync.replication.PeriodicReplicationService
 
COMMAND_START_REPLICATION - Static variable in class com.cloudant.sync.replication.ReplicationService
 
COMMAND_STOP_PERIODIC_REPLICATION - Static variable in class com.cloudant.sync.replication.PeriodicReplicationService
 
COMMAND_STOP_REPLICATION - Static variable in class com.cloudant.sync.replication.ReplicationService
 
compact() - Method in interface com.cloudant.sync.datastore.Datastore
Compacts the sqlDatabase storage by removing the bodies and attachments of obsolete revisions.
compact() - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
CompactCallable - Class in com.cloudant.sync.datastore.callables
Compact datastore by deleting JSON and attachments of non-leaf revisions
CompactCallable(String) - Constructor for class com.cloudant.sync.datastore.callables.CompactCallable
 
compactDatabase() - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
compactDatabase() - Method in class com.cloudant.sync.sqlite.SQLDatabase
For SQLite database, this is to call: this.execSQL("VACUUM");
compareTo(Attachment) - Method in class com.cloudant.sync.datastore.Attachment
 
compareTo(DocumentRevision) - Method in class com.cloudant.sync.datastore.DocumentRevision
 
compareTo(AbstractTreeNode<DocumentRevision>) - Method in class com.cloudant.sync.datastore.DocumentRevisionTree.DocumentRevisionNode
 
complete(ReplicationCompleted) - Method in class com.cloudant.sync.replication.ReplicationPolicyManager.ReplicationListener
 
complete(ReplicationStrategyCompleted) - Method in class com.cloudant.sync.replication.ReplicatorImpl
 
CONFLICT_ABORT - Static variable in class com.cloudant.sync.sqlite.SQLDatabase
When a constraint violation occurs,no ROLLBACK is executed so changes from prior commands within the same transaction are preserved.
CONFLICT_FAIL - Static variable in class com.cloudant.sync.sqlite.SQLDatabase
When a constraint violation occurs, the command aborts with a return code SQLITE_CONSTRAINT.
CONFLICT_IGNORE - Static variable in class com.cloudant.sync.sqlite.SQLDatabase
When a constraint violation occurs, the one row that contains the constraint violation is not inserted or changed.
CONFLICT_NONE - Static variable in class com.cloudant.sync.sqlite.SQLDatabase
Use the following when no conflict action is specified.
CONFLICT_REPLACE - Static variable in class com.cloudant.sync.sqlite.SQLDatabase
When a UNIQUE constraint violation occurs, the pre-existing rows that are causing the constraint violation are removed prior to inserting or updating the current row.
CONFLICT_ROLLBACK - Static variable in class com.cloudant.sync.sqlite.SQLDatabase
When a constraint violation occurs, an immediate ROLLBACK occurs, thus ending the current transaction, and the command aborts with a return code of SQLITE_CONSTRAINT.
ConflictException - Exception in com.cloudant.sync.datastore
Thrown when there is a conflict updating a datastore, for example trying to update a document but passing in an incorrect revision ID.
ConflictException(String) - Constructor for exception com.cloudant.sync.datastore.ConflictException
 
ConflictException(Exception) - Constructor for exception com.cloudant.sync.datastore.ConflictException
 
ConflictException(String, Exception) - Constructor for exception com.cloudant.sync.datastore.ConflictException
 
ConflictException() - Constructor for exception com.cloudant.sync.datastore.ConflictException
 
ConflictResolver - Interface in com.cloudant.sync.datastore
Interface to implement conflicts resolving algorithm.
contains(String) - Method in class com.cloudant.mazha.CouchClient
 
containsDocument(String, String) - Method in interface com.cloudant.sync.datastore.Datastore
Returns whether this datastore contains a particular revision of a document.
containsDocument(String) - Method in interface com.cloudant.sync.datastore.Datastore
Returns whether this datastore contains any revisions of a document.
containsDocument(String, String) - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
containsDocument(String) - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
containsKey(String) - Method in class com.cloudant.android.ContentValues
Returns true if this object has the named value.
ContentValues - Class in com.cloudant.android
 
ContentValues() - Constructor for class com.cloudant.android.ContentValues
Creates an empty set of values using the default initial size
ContentValues(int) - Constructor for class com.cloudant.android.ContentValues
Creates an empty set of values using the given initial size
ContentValues(ContentValues) - Constructor for class com.cloudant.android.ContentValues
Creates a set of values copied from the given set
copyAttachment(SQLDatabase, long, long, String) - Static method in class com.cloudant.sync.datastore.AttachmentManager
Copy a single attachment for a given revision to a new revision.
copyAttachmentsToRevision(SQLDatabase, List<SavedAttachment>, DocumentRevision) - Static method in class com.cloudant.sync.datastore.AttachmentManager
 
CouchClient - Class in com.cloudant.mazha
 
CouchClient(URI, List<HttpConnectionRequestInterceptor>, List<HttpConnectionResponseInterceptor>) - Constructor for class com.cloudant.mazha.CouchClient
 
CouchClient.MissingRevisions - Class in com.cloudant.mazha
 
CouchClientWrapper - Class in com.cloudant.sync.replication
 
CouchClientWrapper(CouchClient) - Constructor for class com.cloudant.sync.replication.CouchClientWrapper
 
CouchClientWrapper(URI, List<HttpConnectionRequestInterceptor>, List<HttpConnectionResponseInterceptor>) - Constructor for class com.cloudant.sync.replication.CouchClientWrapper
 
CouchConstants - Class in com.cloudant.common
 
CouchConstants() - Constructor for class com.cloudant.common.CouchConstants
 
CouchDbInfo - Class in com.cloudant.mazha
 
CouchDbInfo() - Constructor for class com.cloudant.mazha.CouchDbInfo
 
CouchException - Exception in com.cloudant.mazha
 
CouchException() - Constructor for exception com.cloudant.mazha.CouchException
 
CouchException(String, int) - Constructor for exception com.cloudant.mazha.CouchException
 
CouchException(String, Throwable, int) - Constructor for exception com.cloudant.mazha.CouchException
 
CouchURIHelper - Class in com.cloudant.mazha
Helper class to create url for Couch client.
CouchURIHelper(URI) - Constructor for class com.cloudant.mazha.CouchURIHelper
Returns a CouchURIHelper for a given Cloudant or CouchDB instance.
CouchUtils - Class in com.cloudant.common
 
CouchUtils() - Constructor for class com.cloudant.common.CouchUtils
 
CouchUtils - Class in com.cloudant.sync.util
Internal utility class
CouchUtils() - Constructor for class com.cloudant.sync.util.CouchUtils
 
create(Object) - Method in class com.cloudant.mazha.CouchClient
 
create(byte[]) - Static method in class com.cloudant.sync.datastore.DocumentBodyFactory
Returns a new DocumentBody object from JSON data.
create(Map) - Static method in class com.cloudant.sync.datastore.DocumentBodyFactory
Returns a new DocumentBody object from Map serializable as JSON.
create(Object) - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
createAndroidSQLite(String) - Static method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
createDatabase() - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
createDb() - Method in class com.cloudant.mazha.CouchClient
 
createDocument(DocumentRevs) - Static method in class com.cloudant.sync.datastore.DocumentRevsUtils
 
createDocumentFromRevision(DocumentRevision) - Method in interface com.cloudant.sync.datastore.Datastore
Adds a new document with body and attachments from rev.
createDocumentFromRevision(DocumentRevision) - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
createMultipartWriter(Map<String, Object>, List<? extends Attachment>, boolean, int) - Static method in class com.cloudant.sync.datastore.RevisionHistoryHelper
Create a MultipartAttachmentWriter object needed to subsequently write the JSON body and attachments as a MIME multipart/related stream
createRevisionIdHistory(DocumentRevs) - Static method in class com.cloudant.sync.datastore.DocumentRevsUtils
Create the list of the revision ids in ascending order.
createSQLDatabase(String, KeyProvider) - Static method in class com.cloudant.sync.sqlite.SQLDatabaseFactory
SQLCipher-based implementation for creating database.
createUUID() - Static method in class com.cloudant.common.CouchUtils
 
createUUID() - Static method in class com.cloudant.sync.util.Misc
 
current - Variable in class com.cloudant.sync.datastore.callables.InsertRevisionCallable
 
CURRENT_REVISION_CLAUSES - Static variable in class com.cloudant.sync.datastore.DatastoreImpl
 
Cursor - Interface in com.cloudant.sync.sqlite
 

D

data - Variable in class com.cloudant.sync.datastore.callables.InsertRevisionCallable
 
DatabaseClosed - Class in com.cloudant.sync.notifications
Event for database closed
DatabaseClosed(String) - Constructor for class com.cloudant.sync.notifications.DatabaseClosed
Event for database closed
DatabaseCreated - Class in com.cloudant.sync.notifications
Event for database created, it is only posted when the database is created on the disk.
DatabaseCreated(String) - Constructor for class com.cloudant.sync.notifications.DatabaseCreated
Event for database created for the first time.
DatabaseDeleted - Class in com.cloudant.sync.notifications
Event for database delete
DatabaseDeleted(String) - Constructor for class com.cloudant.sync.notifications.DatabaseDeleted
Event for database delete
DatabaseModified - Class in com.cloudant.sync.notifications
 
DatabaseModified(String) - Constructor for class com.cloudant.sync.notifications.DatabaseModified
Generic event for database create/delete
DatabaseNotFoundException - Exception in com.cloudant.sync.replication
 
DatabaseNotFoundException(String) - Constructor for exception com.cloudant.sync.replication.DatabaseNotFoundException
 
DatabaseOpened - Class in com.cloudant.sync.notifications
Event for database opened.
DatabaseOpened(String) - Constructor for class com.cloudant.sync.notifications.DatabaseOpened
Event for database opened.
DatabaseUtils - Class in com.cloudant.sync.util
 
DatabaseUtils() - Constructor for class com.cloudant.sync.util.DatabaseUtils
 
Datastore - Interface in com.cloudant.sync.datastore
The Datastore is the core interaction point for create, delete and update operations (CRUD) for within Cloudant Sync.
DatastoreException - Exception in com.cloudant.sync.datastore
Created by Rhys Short on 05/02/15.
DatastoreException() - Constructor for exception com.cloudant.sync.datastore.DatastoreException
 
DatastoreException(String) - Constructor for exception com.cloudant.sync.datastore.DatastoreException
 
DatastoreException(Throwable) - Constructor for exception com.cloudant.sync.datastore.DatastoreException
 
DatastoreException(String, Throwable) - Constructor for exception com.cloudant.sync.datastore.DatastoreException
 
DatastoreImpl - Class in com.cloudant.sync.datastore
 
DatastoreImpl(String, String) - Constructor for class com.cloudant.sync.datastore.DatastoreImpl
 
DatastoreImpl(String, String, KeyProvider) - Constructor for class com.cloudant.sync.datastore.DatastoreImpl
Constructor for single thread SQLCipher-based datastore.
DatastoreManager - Class in com.cloudant.sync.datastore
Manages a set of Datastore objects, with their underlying disk storage residing in a given directory.
DatastoreManager(String) - Constructor for class com.cloudant.sync.datastore.DatastoreManager
Deprecated.
Use DatastoreManager.getInstance(String) to guarantee only a single DatastoreManager instance is created per storage path.
DatastoreManager(File) - Constructor for class com.cloudant.sync.datastore.DatastoreManager
Deprecated.
Use DatastoreManager.getInstance(File) to guarantee only a single DatastoreManager instance is created per storage path.
DatastoreNotCreatedException - Exception in com.cloudant.sync.datastore
Created by Rhys Short on 05/02/15.
DatastoreNotCreatedException() - Constructor for exception com.cloudant.sync.datastore.DatastoreNotCreatedException
 
DatastoreNotCreatedException(String) - Constructor for exception com.cloudant.sync.datastore.DatastoreNotCreatedException
 
DatastoreNotCreatedException(Exception) - Constructor for exception com.cloudant.sync.datastore.DatastoreNotCreatedException
 
DatastoreNotCreatedException(String, Exception) - Constructor for exception com.cloudant.sync.datastore.DatastoreNotCreatedException
 
dbName - Variable in class com.cloudant.sync.notifications.DatabaseModified
 
DBOperationResponse - Class in com.cloudant.mazha
 
DBOperationResponse() - Constructor for class com.cloudant.mazha.DBOperationResponse
 
DBUtils - Class in com.cloudant.sync.sqlite.sqlite4java
 
DBUtils() - Constructor for class com.cloudant.sync.sqlite.sqlite4java.DBUtils
 
DEFAULT_TRIES - Static variable in class com.cloudant.common.RetriableTask
 
DEFAULT_WAIT_TIME - Static variable in class com.cloudant.common.RetriableTask
 
delete(String, String) - Method in class com.cloudant.mazha.CouchClient
 
delete(String, String) - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
delete(String, String, String[]) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
delete(String, String, String[]) - Method in class com.cloudant.sync.sqlite.SQLDatabase
Convenience method for deleting rows in the database.
DeleteAllRevisionsCallable - Class in com.cloudant.sync.datastore.callables
Delete all Revisions for a given Document ID
DeleteAllRevisionsCallable(String) - Constructor for class com.cloudant.sync.datastore.callables.DeleteAllRevisionsCallable
 
deleted - Variable in class com.cloudant.sync.datastore.callables.InsertRevisionCallable
 
deleteDatastore(String) - Method in class com.cloudant.sync.datastore.DatastoreManager
Deletes a datastore's files from disk.
deleteDb() - Method in class com.cloudant.mazha.CouchClient
 
deleteDocument(String) - Method in interface com.cloudant.sync.datastore.Datastore
Delete all leaf revisions for the document
deleteDocument(String) - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
DeleteDocumentCallable - Class in com.cloudant.sync.datastore.callables
Delete a Document for given Document ID and Revision ID.
DeleteDocumentCallable(String, String) - Constructor for class com.cloudant.sync.datastore.callables.DeleteDocumentCallable
 
deleteDocumentFromRevision(DocumentRevision) - Method in interface com.cloudant.sync.datastore.Datastore
Deletes a document from the datastore.
deleteDocumentFromRevision(DocumentRevision) - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
deleteIndexNamed(String) - Method in class com.cloudant.sync.query.IndexManager
Delete an index.
deleteLocalDocument(String) - Method in class com.cloudant.sync.datastore.DatastoreImpl
Deletes a local document.
DeleteLocalDocumentCallable - Class in com.cloudant.sync.datastore.callables
Delete a local (non-replicated) Document
DeleteLocalDocumentCallable(String) - Constructor for class com.cloudant.sync.datastore.callables.DeleteLocalDocumentCallable
 
depth(long) - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns the distance a revision is down the branch it's on.
depth() - Method in class com.cloudant.sync.util.AbstractTreeNode
 
describeContents() - Method in class com.cloudant.android.ContentValues
 
deserialize(JsonParser, DeserializationContext) - Method in class com.cloudant.mazha.json.OpenRevisionDeserializer
 
deserialize(byte[]) - Static method in class com.cloudant.sync.util.JSONUtils
 
deserialize(byte[], Class<T>) - Static method in class com.cloudant.sync.util.JSONUtils
 
Doc() - Constructor for class com.cloudant.mazha.BulkGetResponse.Doc
 
docId - Variable in class com.cloudant.sync.datastore.LocalDocument
The ID of the local document
docNumericId - Variable in class com.cloudant.sync.datastore.callables.InsertRevisionCallable
 
docs - Variable in class com.cloudant.mazha.BulkGetResponse.Result
 
Document - Class in com.cloudant.mazha
 
Document() - Constructor for class com.cloudant.mazha.Document
 
DocumentBody - Interface in com.cloudant.sync.datastore
Interface for DocumentRevisionTree body.
DocumentBodyFactory - Class in com.cloudant.sync.datastore
Factory class to create DocumentBody objects from either JSON byte-streams or java Map objects.
DocumentBodyFactory() - Constructor for class com.cloudant.sync.datastore.DocumentBodyFactory
 
DocumentConflictException - Exception in com.cloudant.mazha
 
DocumentConflictException(String) - Constructor for exception com.cloudant.mazha.DocumentConflictException
 
DocumentCreated - Class in com.cloudant.sync.notifications
 
DocumentCreated(DocumentRevision) - Constructor for class com.cloudant.sync.notifications.DocumentCreated
Event for document create
DocumentDeleted - Class in com.cloudant.sync.notifications
 
DocumentDeleted(DocumentRevision, DocumentRevision) - Constructor for class com.cloudant.sync.notifications.DocumentDeleted
Event for document delete
DocumentException - Exception in com.cloudant.sync.datastore
Created by Rhys Short on 05/02/15.
DocumentException() - Constructor for exception com.cloudant.sync.datastore.DocumentException
 
DocumentException(String) - Constructor for exception com.cloudant.sync.datastore.DocumentException
 
DocumentException(Throwable) - Constructor for exception com.cloudant.sync.datastore.DocumentException
 
DocumentException(String, Throwable) - Constructor for exception com.cloudant.sync.datastore.DocumentException
 
documentIds() - Method in class com.cloudant.sync.query.QueryResult
Returns a list of the document ids in this query result.
DocumentModified - Class in com.cloudant.sync.notifications
 
DocumentModified(DocumentRevision, DocumentRevision) - Constructor for class com.cloudant.sync.notifications.DocumentModified
Generic event for document create/update/delete
DocumentNotFoundException - Exception in com.cloudant.sync.datastore
Thrown when a document cannot be found.
DocumentNotFoundException() - Constructor for exception com.cloudant.sync.datastore.DocumentNotFoundException
 
DocumentNotFoundException(String, String) - Constructor for exception com.cloudant.sync.datastore.DocumentNotFoundException
Creates a document not found exception with the default message
DocumentNotFoundException(String) - Constructor for exception com.cloudant.sync.datastore.DocumentNotFoundException
 
DocumentNotFoundException(String, Throwable) - Constructor for exception com.cloudant.sync.datastore.DocumentNotFoundException
 
DocumentNotFoundException(String, String, Throwable) - Constructor for exception com.cloudant.sync.datastore.DocumentNotFoundException
 
DocumentNotFoundException(Exception) - Constructor for exception com.cloudant.sync.datastore.DocumentNotFoundException
 
DocumentRevision - Class in com.cloudant.sync.datastore
A single revision of a document within a datastore.
DocumentRevision() - Constructor for class com.cloudant.sync.datastore.DocumentRevision
 
DocumentRevision(String) - Constructor for class com.cloudant.sync.datastore.DocumentRevision
 
DocumentRevision(String, String) - Constructor for class com.cloudant.sync.datastore.DocumentRevision
 
DocumentRevisionBuilder - Class in com.cloudant.sync.datastore
Build DocumentRevisions in a chained manner.
DocumentRevisionBuilder() - Constructor for class com.cloudant.sync.datastore.DocumentRevisionBuilder
 
DocumentRevisionNode(DocumentRevision) - Constructor for class com.cloudant.sync.datastore.DocumentRevisionTree.DocumentRevisionNode
 
DocumentRevisionTree - Class in com.cloudant.sync.datastore
Describes the document tree for a single document within the datastore.
DocumentRevisionTree() - Constructor for class com.cloudant.sync.datastore.DocumentRevisionTree
Construct an empty tree.
DocumentRevisionTree(DocumentRevision) - Constructor for class com.cloudant.sync.datastore.DocumentRevisionTree
Construct a tree with a single root.
DocumentRevisionTree.DocumentRevisionNode - Class in com.cloudant.sync.datastore
A node in a document's revision tree history.
DocumentRevs - Class in com.cloudant.mazha
This is a typical response about the a others along its revisions history information.
DocumentRevs() - Constructor for class com.cloudant.mazha.DocumentRevs
 
DocumentRevs.Revisions - Class in com.cloudant.mazha
 
DocumentRevsList - Class in com.cloudant.sync.datastore
List of DocumentRevs.
DocumentRevsList(List<DocumentRevs>) - Constructor for class com.cloudant.sync.datastore.DocumentRevsList
 
DocumentRevsUtils - Class in com.cloudant.sync.datastore
 
DocumentRevsUtils() - Constructor for class com.cloudant.sync.datastore.DocumentRevsUtils
 
documentsReplicated - Variable in class com.cloudant.sync.notifications.ReplicationCompleted
The total number of documents replicated by the ReplicationCompleted.replicator
DocumentUpdated - Class in com.cloudant.sync.notifications
 
DocumentUpdated(DocumentRevision, DocumentRevision) - Constructor for class com.cloudant.sync.notifications.DocumentUpdated
Event for document update
documentUri(String) - Method in class com.cloudant.mazha.CouchURIHelper
Returns URI for documentId.
documentUri(String, Map<String, Object>) - Method in class com.cloudant.mazha.CouchURIHelper
Returns URI for documentId with query.
DoForceInsertExistingDocumentWithHistoryCallable - Class in com.cloudant.sync.datastore.callables
Force insert a Revision where the Document already exists in the local database (ie at least one Revision already exists)
DoForceInsertExistingDocumentWithHistoryCallable(DocumentRevision, long, List<String>, Map<String, Object>, String, AttachmentStreamFactory) - Constructor for class com.cloudant.sync.datastore.callables.DoForceInsertExistingDocumentWithHistoryCallable
 
DoForceInsertNewDocumentWithHistoryCallable - Class in com.cloudant.sync.datastore.callables
Force insert a Revision where the Document does not exist in the local database (ie no Revisions exist).
DoForceInsertNewDocumentWithHistoryCallable(DocumentRevision, List<String>) - Constructor for class com.cloudant.sync.datastore.callables.DoForceInsertNewDocumentWithHistoryCallable
 

E

EMPTY - Static variable in class com.cloudant.sync.datastore.DocumentBodyFactory
Returns a DocumentBody object representing an empty document body.
emptyJSONObjectAsBytes() - Static method in class com.cloudant.sync.util.JSONUtils
 
encodedLength - Variable in class com.cloudant.sync.datastore.PreparedAttachment
 
encoding - Variable in class com.cloudant.sync.datastore.Attachment
Encoding - Plain or GZIP
EncryptedAttachmentInputStream - Class in com.cloudant.sync.datastore.encryption
An EncryptedAttachmentInputStream handles reading AES encrypted data from disk, first reading the attachment file's header to determine the IV and checking the on-disk version is readable.
EncryptedAttachmentInputStream(InputStream, byte[]) - Constructor for class com.cloudant.sync.datastore.encryption.EncryptedAttachmentInputStream
Creates an input stream with a key.
EncryptedAttachmentOutputStream - Class in com.cloudant.sync.datastore.encryption
An EncryptedAttachmentOutputStream handles writing AES encrypted data to disk, combining the encrypted data with a header specifying the IV used during encryption.
EncryptedAttachmentOutputStream(OutputStream, byte[], byte[]) - Constructor for class com.cloudant.sync.datastore.encryption.EncryptedAttachmentOutputStream
Creates an output stream with a key and IV.
EncryptionConstants - Class in com.cloudant.sync.datastore.encryption
Class to hold encryption related constants.
EncryptionConstants() - Constructor for class com.cloudant.sync.datastore.encryption.EncryptionConstants
 
EncryptionKey - Class in com.cloudant.sync.datastore.encryption
Class to enforce restrictions on encryption keys used with the datastore.
EncryptionKey(byte[]) - Constructor for class com.cloudant.sync.datastore.encryption.EncryptionKey
 
endTransaction() - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
endTransaction() - Method in class com.cloudant.sync.sqlite.SQLDatabase
End a transaction.
ensureIndexed(List<Object>) - Method in class com.cloudant.sync.query.IndexManager
Add a single, possibly compound, index for the given field names.
ensureIndexed(List<Object>, String) - Method in class com.cloudant.sync.query.IndexManager
Add a single, possibly compound, index for the given field names.
ensureIndexed(List<Object>, String, IndexType) - Method in class com.cloudant.sync.query.IndexManager
Add a single, possibly compound, index for the given field names.
ensureIndexed(List<Object>, String, IndexType, Map<String, String>) - Method in class com.cloudant.sync.query.IndexManager
Add a single, possibly compound, index for the given field names.
enumValue(String) - Static method in enum com.cloudant.sync.query.IndexType
Converts a string to its Enum value.
equals(Object) - Method in class com.cloudant.android.ContentValues
 
equals(Object) - Method in class com.cloudant.mazha.Document
 
equals(Object) - Method in class com.cloudant.sync.datastore.DocumentRevision
 
equals(Object) - Method in class com.cloudant.sync.datastore.DocumentRevisionTree.DocumentRevisionNode
 
equals(Object) - Method in class com.cloudant.sync.notifications.ReplicationCompleted
 
equals(Object) - Method in class com.cloudant.sync.notifications.ReplicationErrored
 
equals(Object) - Method in class com.cloudant.sync.replication.BulkGetRequest
 
equals(Object) - Method in class com.cloudant.sync.util.AbstractTreeNode
 
equals(AbstractTreeNode<T>) - Method in class com.cloudant.sync.util.AbstractTreeNode
 
error(ReplicationErrored) - Method in class com.cloudant.sync.replication.ReplicationPolicyManager.ReplicationListener
 
error(ReplicationStrategyErrored) - Method in class com.cloudant.sync.replication.ReplicatorImpl
 
errorInfo - Variable in class com.cloudant.sync.notifications.ReplicationErrored
Error information about the error that occurred
ErrorInfo - Class in com.cloudant.sync.replication
Describes errors which happen during replication, and usually contains any exception thrown in the ErrorInfo.t field.
ErrorInfo(Throwable) - Constructor for class com.cloudant.sync.replication.ErrorInfo
Construct an instance with a Throwable.
EventBus - Class in com.cloudant.sync.event
A publish/subscribe event bus for sync notifications.
EventBus() - Constructor for class com.cloudant.sync.event.EventBus
 
execSQL(String) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
execSQL(String, Object[]) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
execSQL(String, Object[]) - Method in class com.cloudant.sync.sqlite.SQLDatabase
Execute a single SQL statement that is NOT a SELECT/INSERT/UPDATE/DELETE.
execSQL(String) - Method in class com.cloudant.sync.sqlite.SQLDatabase
Execute a single SQL statement that is NOT a SELECT or any other SQL statement that returns data.
executeRequest(Q) - Method in class com.cloudant.sync.replication.QueuingExecutorCompletionService
Subclasses should override this method with the desired execution method, which will ultimately be wrapped in a Callable for submission to the ExecutorCompletionService.
exists() - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
extensionDataFolder(String) - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
EXTRA_COMMAND - Static variable in class com.cloudant.sync.replication.ReplicationService
 
EXTRA_INTENT - Static variable in class com.cloudant.sync.replication.ReplicationService
 

F

FIELD_TYPE_BLOB - Static variable in interface com.cloudant.sync.sqlite.Cursor
Value returned by Cursor.columnType(int) if the specified column type is blob
FIELD_TYPE_FLOAT - Static variable in interface com.cloudant.sync.sqlite.Cursor
Value returned by Cursor.columnType(int) if the specified column type is float
FIELD_TYPE_INTEGER - Static variable in interface com.cloudant.sync.sqlite.Cursor
Value returned by Cursor.columnType(int) if the specified column type is integer
FIELD_TYPE_NULL - Static variable in interface com.cloudant.sync.sqlite.Cursor
Value returned by Cursor.columnType(int) if the specified column is null
FIELD_TYPE_STRING - Static variable in interface com.cloudant.sync.sqlite.Cursor
Value returned by Cursor.columnType(int) if the specified column type is string
fileFromKey(SQLDatabase, byte[], String, boolean) - Static method in class com.cloudant.sync.datastore.AttachmentManager
Lookup or create a on disk File representation of blob, in db using key.
filename - Variable in class com.cloudant.sync.sqlite.SQLDatabase
 
filter(PullFilter) - Method in class com.cloudant.sync.replication.ReplicatorBuilder.Pull
Sets the filter to use for a pull replication
filter(PushFilter) - Method in class com.cloudant.sync.replication.ReplicatorBuilder.Push
Sets the filter to use for this replication
find(Map<String, Object>) - Method in class com.cloudant.sync.query.IndexManager
 
find(Map<String, Object>, long, long, List<String>, List<Map<String, String>>) - Method in class com.cloudant.sync.query.IndexManager
 
findExistingAttachments(Collection<? extends Attachment>) - Static method in class com.cloudant.sync.datastore.AttachmentManager
Return a list of the existing attachments in the list passed in.
findNewAttachments(Collection<? extends Attachment>) - Static method in class com.cloudant.sync.datastore.AttachmentManager
Return a list of the new attachments in the list passed in.
findRevisionsIdForOpenRev(String) - Method in class com.cloudant.mazha.GetOpenRevisionsResponse
 
finishedReplication(Replicator) - Method in class com.cloudant.sync.replication.ReplicationPolicyManager.ReplicationListener
 
flush() - Method in class com.cloudant.sync.datastore.encryption.EncryptedAttachmentOutputStream
 
forceInsert(DocumentRevision, List<String>, Map<String, Object>, Map<String[], List<PreparedAttachment>>, boolean) - Method in class com.cloudant.sync.datastore.DatastoreImpl
Deprecated.
forceInsert(List<ForceInsertItem>) - Method in class com.cloudant.sync.datastore.DatastoreImpl
Inserts one or more revisions of a document into the database.
forceInsert(DocumentRevision, String...) - Method in class com.cloudant.sync.datastore.DatastoreImpl
Inserts a revision of a document with an existing revision ID
ForceInsertCallable - Class in com.cloudant.sync.datastore.callables
Force insert a list of items (Revisions) obtained by pull Replication into the local database
ForceInsertCallable(List<ForceInsertItem>, String, AttachmentStreamFactory) - Constructor for class com.cloudant.sync.datastore.callables.ForceInsertCallable
 
ForceInsertItem - Class in com.cloudant.sync.datastore
Created by tomblench on 22/01/16.
ForceInsertItem(DocumentRevision, List<String>, Map<String, Object>, Map<String[], List<PreparedAttachment>>, boolean) - Constructor for class com.cloudant.sync.datastore.ForceInsertItem
 
from(S) - Method in class com.cloudant.sync.replication.ReplicatorBuilder
Sets the source database for the replication
fromJson(Reader, TypeReference<T>) - Method in class com.cloudant.mazha.json.JSONHelper
 
fromJson(Reader, Class<T>) - Method in class com.cloudant.mazha.json.JSONHelper
 
fromJson(Reader) - Method in class com.cloudant.mazha.json.JSONHelper
 
fromJsonToList(Reader, TypeReference<T>) - Method in class com.cloudant.mazha.json.JSONHelper
 
FULL_DOCUMENT_COLS - Static variable in class com.cloudant.sync.datastore.DatastoreImpl
 

G

generateDocumentId() - Static method in class com.cloudant.common.CouchUtils
 
generateDocumentId() - Static method in class com.cloudant.sync.util.CouchUtils
 
generateNextLocalRevisionId(String) - Static method in class com.cloudant.common.CouchUtils
 
generateNextLocalRevisionId(String) - Static method in class com.cloudant.sync.util.CouchUtils
 
generateNextRevisionId(String) - Static method in class com.cloudant.common.CouchUtils
 
generateNextRevisionId(String) - Static method in class com.cloudant.sync.util.CouchUtils
 
generationFromRevId(String) - Static method in class com.cloudant.common.CouchUtils
 
generationFromRevId(String) - Static method in class com.cloudant.sync.util.CouchUtils
 
get(InputStream) - Static method in class com.cloudant.android.Base64InputStreamFactory
 
get(OutputStream) - Static method in class com.cloudant.android.Base64OutputStreamFactory
 
get(String) - Method in class com.cloudant.android.ContentValues
Gets a value.
get(Future<T>) - Static method in class com.cloudant.sync.datastore.DatastoreImpl
 
get(int) - Method in class com.cloudant.sync.datastore.DocumentRevsList
 
get(Class<T>, String) - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
GET_ALL_LEAFS - Static variable in class com.cloudant.sync.datastore.callables.PickWinningRevisionCallable
 
GET_DOC_NUMERIC_ID - Static variable in class com.cloudant.sync.datastore.DatastoreImpl
 
GET_DOCUMENT_CURRENT_REVISION - Static variable in class com.cloudant.sync.datastore.DatastoreImpl
 
GET_DOCUMENT_GIVEN_REVISION - Static variable in class com.cloudant.sync.datastore.DatastoreImpl
 
GET_METADATA_CURRENT_REVISION - Static variable in class com.cloudant.sync.datastore.DatastoreImpl
 
GET_METADATA_GIVEN_REVISION - Static variable in class com.cloudant.sync.datastore.DatastoreImpl
 
GET_NON_DELETED_LEAFS - Static variable in class com.cloudant.sync.datastore.callables.PickWinningRevisionCallable
 
getAllDocumentIds() - Method in interface com.cloudant.sync.datastore.Datastore
Enumerates the current winning revision for all documents in the datastore and return a list of their document identifiers.
getAllDocumentIds() - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
GetAllDocumentIdsCallable - Class in com.cloudant.sync.datastore.callables
Retrieve all docIds from the database.
GetAllDocumentIdsCallable() - Constructor for class com.cloudant.sync.datastore.callables.GetAllDocumentIdsCallable
 
getAllDocuments(int, int, boolean) - Method in interface com.cloudant.sync.datastore.Datastore
Enumerates the current winning revision for all documents in the datastore.
getAllDocuments(int, int, boolean) - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
GetAllDocumentsCallable - Class in com.cloudant.sync.datastore.callables
Get all non-deleted winning Revisions of Documents, ordered by Document ID, starting from `offset` and with maximum `limit` results.
GetAllDocumentsCallable(int, int, boolean, String, AttachmentStreamFactory) - Constructor for class com.cloudant.sync.datastore.callables.GetAllDocumentsCallable
 
getAllRevisionsOfDocument(String) - Method in class com.cloudant.sync.datastore.DatastoreImpl
Returns DocumentRevisionTree of a document.
GetAllRevisionsOfDocumentCallable - Class in com.cloudant.sync.datastore.callables
Get all Revisions for a given Document ID, in the form of a DocumentRevisionTree
GetAllRevisionsOfDocumentCallable(String, String, AttachmentStreamFactory) - Constructor for class com.cloudant.sync.datastore.callables.GetAllRevisionsOfDocumentCallable
 
getAsBoolean(String) - Method in class com.cloudant.android.ContentValues
Gets a value and converts it to a Boolean.
getAsByte(String) - Method in class com.cloudant.android.ContentValues
Gets a value and converts it to a Byte.
getAsByteArray(String) - Method in class com.cloudant.android.ContentValues
Gets a value that is a byte array.
getAsDouble(String) - Method in class com.cloudant.android.ContentValues
Gets a value and converts it to a Double.
getAsFloat(String) - Method in class com.cloudant.android.ContentValues
Gets a value and converts it to a Float.
getAsInteger(String) - Method in class com.cloudant.android.ContentValues
Gets a value and converts it to an Integer.
getAsLong(String) - Method in class com.cloudant.android.ContentValues
Gets a value and converts it to a Long.
getAsShort(String) - Method in class com.cloudant.android.ContentValues
Gets a value and converts it to a Short.
getAsString(String) - Method in class com.cloudant.android.ContentValues
Gets a value and converts it to a String.
getAttachment(String, String, String) - Method in class com.cloudant.sync.datastore.DatastoreImpl
Returns attachment attachmentName for the revision.
getAttachments() - Method in class com.cloudant.mazha.DocumentRevs
 
getAttachments() - Method in class com.cloudant.sync.datastore.DocumentRevision
top level key: _attachments
getAttachmentStream(String, String, String, boolean) - Method in class com.cloudant.mazha.CouchClient
 
getAttachmentStream(String, String, String, String, String) - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
getBlob(int) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
getBlob(int) - Method in interface com.cloudant.sync.sqlite.Cursor
Returns the value of the requested column as a byte array.
getBlob(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
getBlob(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
getBody() - Method in class com.cloudant.sync.datastore.DocumentRevision
the rest of the document
getBoundary() - Method in class com.cloudant.sync.datastore.MultipartAttachmentWriter
 
getChanges() - Method in class com.cloudant.mazha.ChangesResult.Row
 
getCheckpoint(String) - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
getColumnCount() - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
getColumnCount() - Method in interface com.cloudant.sync.sqlite.Cursor
Return total number of columns
getColumnCount() - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
getColumnIndex(String) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
getColumnIndex(String) - Method in interface com.cloudant.sync.sqlite.Cursor
Returns the zero-based index for the given column name, or -1 if the column doesn't exist.
getColumnIndex(String) - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
getColumnIndexOrThrow(String) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
getColumnIndexOrThrow(String) - Method in interface com.cloudant.sync.sqlite.Cursor
Returns the zero-based index for the given column name, or throws IllegalArgumentException if the column doesn't exist.
getColumnIndexOrThrow(String) - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
getConflictedDocumentIds() - Method in interface com.cloudant.sync.datastore.Datastore
Return @Iterable<String> over ids to all the Documents with conflicted revisions.
getConflictedDocumentIds() - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
GetConflictedDocumentIdsCallable - Class in com.cloudant.sync.datastore.callables
Get all document IDs of Documents having conflicted Revisions: more than one non-deleted leaf Revision
GetConflictedDocumentIdsCallable() - Constructor for class com.cloudant.sync.datastore.callables.GetConflictedDocumentIdsCallable
 
getContentLength() - Method in class com.cloudant.sync.datastore.MultipartAttachmentWriter
 
getCouchClient() - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
getCount() - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
getCount() - Method in interface com.cloudant.sync.sqlite.Cursor
 
getCount() - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
getCurrentRevision() - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns the DocumentRevision that is the current winning revision for this DocumentRevisionTree.
getData() - Method in class com.cloudant.sync.util.AbstractTreeNode
 
getDataSize() - Method in class com.cloudant.mazha.CouchDbInfo
 
getDatastoreName() - Method in interface com.cloudant.sync.datastore.Datastore
Returns the name of this datastore.
getDatastoreName() - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
getDbInfo() - Method in class com.cloudant.mazha.CouchClient
 
getDbName() - Method in class com.cloudant.mazha.CouchDbInfo
 
getDeleted() - Method in class com.cloudant.mazha.DocumentRevs
 
getDiskFormatVersion() - Method in class com.cloudant.mazha.CouchDbInfo
 
getDiskSize() - Method in class com.cloudant.mazha.CouchDbInfo
 
getDoc() - Method in class com.cloudant.mazha.ChangesResult.Row
 
getDocConflictRevs(String) - Method in class com.cloudant.mazha.CouchClient
Convenience method to get document with all the conflicts revisions.
getDocCount() - Method in class com.cloudant.mazha.CouchDbInfo
 
getDocDelCount() - Method in class com.cloudant.mazha.CouchDbInfo
 
getDocId() - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns the document ID
getDocRevisions(String, String) - Method in class com.cloudant.mazha.CouchClient
Get document along with its revision history, and the result is converted to a DocumentRevs object.
getDocRevisions(String, String, TypeReference<T>) - Method in class com.cloudant.mazha.CouchClient
 
getDocument(String) - Method in class com.cloudant.mazha.CouchClient
 
getDocument(String, Class<T>) - Method in class com.cloudant.mazha.CouchClient
 
getDocument(String, Map<String, Object>, TypeReference<T>) - Method in class com.cloudant.mazha.CouchClient
 
getDocument(String, String) - Method in class com.cloudant.mazha.CouchClient
 
getDocument(String, String, TypeReference<T>) - Method in class com.cloudant.mazha.CouchClient
 
getDocument(String, String, Class<T>) - Method in class com.cloudant.mazha.CouchClient
 
getDocument(String) - Method in interface com.cloudant.sync.datastore.Datastore
Returns the current winning revision of a document.
getDocument(String, String) - Method in interface com.cloudant.sync.datastore.Datastore
Retrieves a given revision of a document.
getDocument(String) - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
getDocument(String, String) - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
GetDocumentCallable - Class in com.cloudant.sync.datastore.callables
Get the Document for a given Document ID and Revision ID
GetDocumentCallable(String, String, String, AttachmentStreamFactory) - Constructor for class com.cloudant.sync.datastore.callables.GetDocumentCallable
 
getDocumentCount() - Method in interface com.cloudant.sync.datastore.Datastore
Return the number of documents in the datastore
getDocumentCount() - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
GetDocumentCountCallable - Class in com.cloudant.sync.datastore.callables
Get the total number of Documents in the database.
GetDocumentCountCallable() - Constructor for class com.cloudant.sync.datastore.callables.GetDocumentCountCallable
 
getDocumentRevs() - Method in class com.cloudant.mazha.OkOpenRevision
 
getDocumentStream(String, String) - Method in class com.cloudant.mazha.CouchClient
 
getDocumentsWithIds(List<String>) - Method in interface com.cloudant.sync.datastore.Datastore
Returns the current winning revisions for a set of documents.
getDocumentsWithIds(List<String>) - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
GetDocumentsWithIdsCallable - Class in com.cloudant.sync.datastore.callables
Get a List of Document Revisions by Document ID
GetDocumentsWithIdsCallable(List<String>, String, AttachmentStreamFactory) - Constructor for class com.cloudant.sync.datastore.callables.GetDocumentsWithIdsCallable
 
GetDocumentsWithInternalIdsCallable - Class in com.cloudant.sync.datastore.callables
Get a list of the winning (current) Revisions matching a list of internal (numeric) Document IDs
GetDocumentsWithInternalIdsCallable(List<Long>, String, AttachmentStreamFactory) - Constructor for class com.cloudant.sync.datastore.callables.GetDocumentsWithInternalIdsCallable
 
getDocWithOpenRevisions(String, Collection<String>, Collection<String>, boolean) - Method in class com.cloudant.mazha.CouchClient
Convenience method to get document with revision history for a given list of open revisions.
getEncodingFromString(String) - Static method in class com.cloudant.sync.datastore.Attachment
 
getEncryptionKey() - Method in class com.cloudant.sync.datastore.encryption.CachingKeyProvider
 
getEncryptionKey() - Method in interface com.cloudant.sync.datastore.encryption.KeyProvider
 
getEncryptionKey() - Method in class com.cloudant.sync.datastore.encryption.NullKeyProvider
 
getEncryptionKey() - Method in class com.cloudant.sync.datastore.encryption.SimpleKeyProvider
 
getError() - Method in exception com.cloudant.mazha.CouchException
 
getError() - Method in class com.cloudant.mazha.Response
 
getEventBus() - Method in interface com.cloudant.sync.datastore.Datastore
Returns the EventBus which this Datastore posts Document Notification Events to.
getEventBus() - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
getEventBus() - Method in class com.cloudant.sync.datastore.DatastoreManager
Returns the EventBus which this DatastoreManager posts Database Notification Events to.
getEventBus() - Method in interface com.cloudant.sync.replication.Replicator
Returns an EventBus that clients can use to listen for state changes for this replicator.
getEventBus() - Method in class com.cloudant.sync.replication.ReplicatorImpl
 
getException() - Method in class com.cloudant.sync.replication.ErrorInfo
Returns the Throwable this instance was constructed with.
getFirstLocalDocRevisionId() - Static method in class com.cloudant.common.CouchUtils
 
getFirstLocalDocRevisionId() - Static method in class com.cloudant.sync.util.CouchUtils
 
getFirstRevisionId() - Static method in class com.cloudant.common.CouchUtils
 
getFirstRevisionId() - Static method in class com.cloudant.sync.util.CouchUtils
 
getFloat(int) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
getFloat(int) - Method in interface com.cloudant.sync.sqlite.Cursor
Returns the value of the requested column as a float.
getFloat(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
getFloat(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
getFullRevisionFromCurrentCursor(Cursor, List<? extends Attachment>) - Static method in class com.cloudant.sync.datastore.DatastoreImpl
 
getGeneration() - Method in class com.cloudant.sync.datastore.DocumentRevision
 
getId() - Method in class com.cloudant.mazha.ChangesResult.Row
 
getId() - Method in class com.cloudant.mazha.Document
 
getId() - Method in class com.cloudant.mazha.DocumentRevs
 
getId() - Method in class com.cloudant.mazha.Response
 
getId() - Method in class com.cloudant.sync.datastore.DocumentRevision
 
getId() - Method in class com.cloudant.sync.datastore.MultipartAttachmentWriter
 
getId() - Method in interface com.cloudant.sync.replication.Replicator
 
getId() - Method in class com.cloudant.sync.replication.ReplicatorImpl
 
getIdentifier() - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
getIds() - Method in class com.cloudant.mazha.DocumentRevs.Revisions
 
getIds() - Method in class com.cloudant.sync.datastore.Changes
Returns the list of document IDs for the DocumentRevisions in this change set.
getInputStream() - Method in class com.cloudant.sync.datastore.Attachment
Gets contents of attachments as a stream.
getInputStream(File, Attachment.Encoding) - Method in class com.cloudant.sync.datastore.AttachmentStreamFactory
Return a stream to be used to read from the file on disk.
getInputStream() - Method in class com.cloudant.sync.datastore.SavedAttachment
 
getInputStream() - Method in class com.cloudant.sync.datastore.UnsavedFileAttachment
 
getInputStream() - Method in class com.cloudant.sync.datastore.UnsavedStreamAttachment
 
getInstance(String) - Static method in class com.cloudant.sync.datastore.DatastoreManager
Gets a DatastoreManager to manage the specified directory of datastores.
getInstance(File) - Static method in class com.cloudant.sync.datastore.DatastoreManager
Gets a DatastoreManager to manage the specified directory of datastores.
getInstanceStartTime() - Method in class com.cloudant.mazha.CouchDbInfo
 
getInt(int) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
getInt(int) - Method in interface com.cloudant.sync.sqlite.Cursor
Returns the value of the requested column as a long.
getInt(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
getKey() - Method in class com.cloudant.sync.datastore.encryption.EncryptionKey
 
getKeyProvider() - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
getKeyProvider() - Method in class com.cloudant.sync.datastore.encryption.CachingKeyProvider
 
getLastSeq() - Method in class com.cloudant.mazha.ChangesResult
 
getLastSequence() - Method in class com.cloudant.sync.datastore.Changes
Returns the last sequence number of this change set.
getLastSequence() - Method in interface com.cloudant.sync.datastore.Datastore
Retrieves the datastore's current sequence number.
getLastSequence() - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
GetLastSequenceCallable - Class in com.cloudant.sync.datastore.callables
Get the most recent (highest) sequence number for the database
GetLastSequenceCallable() - Constructor for class com.cloudant.sync.datastore.callables.GetLastSequenceCallable
 
getLocalDocument(String) - Method in class com.cloudant.sync.datastore.DatastoreImpl
Returns the current winning revision of a local document.
GetLocalDocumentCallable - Class in com.cloudant.sync.datastore.callables
Get the local Document for a given Document ID
GetLocalDocumentCallable(String) - Constructor for class com.cloudant.sync.datastore.callables.GetLocalDocumentCallable
 
getLong(int) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
getLong(int) - Method in interface com.cloudant.sync.sqlite.Cursor
Returns the value of the requested column as a long.
getLong(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
getLong(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
getMissingRevisionsMap() - Method in class com.cloudant.mazha.GetOpenRevisionsResponse
 
getName() - Method in class com.cloudant.sync.replication.PullFilter
 
getNull(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
GetNumericIdCallable - Class in com.cloudant.sync.datastore.callables
Get the internal numeric ID for a given Document ID
GetNumericIdCallable(String) - Constructor for class com.cloudant.sync.datastore.callables.GetNumericIdCallable
 
getOk() - Method in class com.cloudant.mazha.DBOperationResponse
 
getOk() - Method in class com.cloudant.mazha.Response
 
getOkRevisionMap() - Method in class com.cloudant.mazha.GetOpenRevisionsResponse
 
GetOpenRevisionsResponse - Class in com.cloudant.mazha
Convenience class to access the response of GET document request with open revision options.
GetOpenRevisionsResponse(List<OpenRevision>) - Constructor for class com.cloudant.mazha.GetOpenRevisionsResponse
 
getOthers() - Method in class com.cloudant.mazha.DocumentRevs
 
getOutputStream(File, Attachment.Encoding) - Method in class com.cloudant.sync.datastore.AttachmentStreamFactory
Get stream for writing attachment data to disk.
getParameters() - Method in class com.cloudant.sync.replication.PullFilter
 
getPath() - Method in class com.cloudant.sync.datastore.DatastoreManager
Returns the path to the directory this object manages.
getPath(long) - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns the path as a list of revision IDs from the revision with the given sequence number to the root of the tree containing the revision.
getPathForNode(long) - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns the path (list of DocumentRevisions) from the revision with the given sequence number to the root of the tree containing the revision.
getPossibleAncestorRevisionIDs(String, String, int) - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
GetPossibleAncestorRevisionIdsCallable - Class in com.cloudant.sync.datastore.callables
Given a revision, retrieve all revision IDs that have a generation lower than the passed revision's generation.
GetPossibleAncestorRevisionIdsCallable(String, String, int) - Constructor for class com.cloudant.sync.datastore.callables.GetPossibleAncestorRevisionIdsCallable
Creates a GetPossibleAncestorRevisionIdsCallable object to retrieve revision IDs.
getPublicIdentifier() - Method in class com.cloudant.sync.datastore.DatastoreImpl
Returns the datastore's unique identifier.
getPurgeSeq() - Method in class com.cloudant.mazha.CouchDbInfo
 
getReason() - Method in exception com.cloudant.mazha.CouchException
 
getReason() - Method in class com.cloudant.mazha.Response
 
getResults() - Method in class com.cloudant.mazha.ChangesResult
 
getResults() - Method in class com.cloudant.sync.datastore.Changes
Returns the list of DocumentRevisions in this change set.
getRev() - Method in class com.cloudant.mazha.ChangesResult.Row.Rev
 
getRev() - Method in class com.cloudant.mazha.DocumentRevs
 
getRev() - Method in class com.cloudant.mazha.Response
 
getRevision() - Method in class com.cloudant.mazha.Document
 
getRevision() - Method in class com.cloudant.mazha.MissingOpenRevision
 
getRevision() - Method in class com.cloudant.sync.datastore.DocumentRevision
 
getRevisionIdsSuffix(String...) - Static method in class com.cloudant.common.CouchUtils
 
getRevisionIdSuffix(String) - Static method in class com.cloudant.common.CouchUtils
 
getRevisionIdSuffix(String) - Static method in class com.cloudant.sync.util.CouchUtils
 
getRevisionPath(DocumentRevs) - Static method in class com.cloudant.sync.datastore.RevisionHistoryHelper
Returns the list of revision IDs from a DocumentRevs object.
getRevisions() - Method in class com.cloudant.mazha.DocumentRevs
 
getRevisions(String, Collection<String>, Collection<String>, boolean) - Method in class com.cloudant.sync.replication.CouchClientWrapper
For each open revision, there should be a response of DocumentRevs returned.
getRevisionsFromRawQuery(SQLDatabase, String, String[], String, AttachmentStreamFactory) - Static method in class com.cloudant.sync.datastore.DatastoreImpl
 
getRootUri() - Method in class com.cloudant.mazha.CouchClient
 
getRootUri() - Method in class com.cloudant.mazha.CouchURIHelper
Returns the Root URI for this instance.
getSeq() - Method in class com.cloudant.mazha.ChangesResult.Row
 
getSequence() - Method in class com.cloudant.sync.datastore.DocumentRevision
Returns the sequence number of this revision.
GetSequenceCallable - Class in com.cloudant.sync.datastore.callables
Get the internal sequence number for a given a revision
GetSequenceCallable(String, String) - Constructor for class com.cloudant.sync.datastore.callables.GetSequenceCallable
 
getService() - Method in class com.cloudant.sync.replication.ReplicationService.LocalBinder
 
getSha1(InputStream) - Static method in class com.cloudant.sync.util.Misc
 
getSQLiteVersion() - Method in class com.cloudant.sync.sqlite.SQLDatabaseQueue
Returns the SQLite Version.
getStart() - Method in class com.cloudant.mazha.DocumentRevs.Revisions
 
getState() - Method in interface com.cloudant.sync.replication.Replicator
Returns the Replicator.State this replicator is in.
getState() - Method in class com.cloudant.sync.replication.ReplicatorImpl
 
getStatusCode() - Method in exception com.cloudant.mazha.CouchException
 
getStatusCode() - Method in exception com.cloudant.mazha.ServerException
 
getString(int) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
getString(int) - Method in interface com.cloudant.sync.sqlite.Cursor
Returns the value of the requested column as a String.
getString(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
getString(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
getTotalTries() - Method in class com.cloudant.common.RetriableTask
 
getTriesRemaining() - Method in class com.cloudant.common.RetriableTask
 
getType(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
getTypeName(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
getTypeOfObject(Object) - Static method in class com.cloudant.sync.sqlite.sqlite4java.DBUtils
 
getUpdateSeq() - Method in class com.cloudant.mazha.CouchDbInfo
 
getUserAgentString() - Method in class com.cloudant.library.LibraryVersion
 
getVersion() - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
getVersion() - Method in class com.cloudant.sync.sqlite.SQLDatabase
Gets the database version, and SQLDatabase's version is defined as:
getVersion() - Method in class com.cloudant.sync.sqlite.SQLDatabaseQueue
Returns the current version of the database.

H

hasChanged() - Method in interface com.cloudant.common.ChangeNotifyingMap
 
hasChildren() - Method in class com.cloudant.sync.util.AbstractTreeNode
 
hasConflicts() - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns whether this document is conflicted.
hashCode() - Method in class com.cloudant.android.ContentValues
 
hashCode() - Method in class com.cloudant.mazha.Document
 
hashCode() - Method in class com.cloudant.sync.datastore.DocumentRevision
 
hashCode() - Method in class com.cloudant.sync.datastore.DocumentRevisionTree.DocumentRevisionNode
 
hashCode() - Method in class com.cloudant.sync.notifications.ReplicationCompleted
 
hashCode() - Method in class com.cloudant.sync.notifications.ReplicationErrored
 
hashCode() - Method in class com.cloudant.sync.replication.BulkGetRequest
 
hashCode() - Method in class com.cloudant.sync.util.AbstractTreeNode
 
hasRequestsOutstanding() - Method in class com.cloudant.sync.replication.QueuingExecutorCompletionService
 
HierarchicalUriComponents - Class in com.cloudant.mazha
 
HierarchicalUriComponents() - Constructor for class com.cloudant.mazha.HierarchicalUriComponents
 

I

id - Variable in class com.cloudant.mazha.BulkGetRequest
 
id - Variable in class com.cloudant.mazha.BulkGetResponse.Result
 
ids - Static variable in class com.cloudant.common.CouchConstants
 
INDEX_METADATA_TABLE_NAME - Static variable in class com.cloudant.sync.query.IndexManager
 
IndexManager - Class in com.cloudant.sync.query
Main interface to Cloudant query.
IndexManager(Datastore) - Constructor for class com.cloudant.sync.query.IndexManager
Constructs a new IndexManager which indexes documents in 'datastore'
IndexType - Enum in com.cloudant.sync.query
Denotes the type for an Query Index.
initialiseSequence(long) - Method in class com.cloudant.sync.datastore.DocumentRevision
 
insert(String, ContentValues) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
insert(String, ContentValues) - Method in class com.cloudant.sync.sqlite.SQLDatabase
Convenience method for inserting a row into the database.
insertBatchSize(int) - Method in class com.cloudant.sync.replication.ReplicatorBuilder.Pull
Sets the number of documents to insert into the SQLite database in one transaction
InsertDocumentHistoryIntoExistingTreeCallable - Class in com.cloudant.sync.datastore.callables
Insert a Revision @{code newRevision} into an existing Revision tree according to the history described by @{code revisions}.
InsertDocumentHistoryIntoExistingTreeCallable(DocumentRevision, List<String>, Long, Map<String, Object>) - Constructor for class com.cloudant.sync.datastore.callables.InsertDocumentHistoryIntoExistingTreeCallable
 
InsertDocumentHistoryToNewTreeCallable - Class in com.cloudant.sync.datastore.callables
Insert a Document Revision @{code newRevision} into a new Revision tree.
InsertDocumentHistoryToNewTreeCallable(DocumentRevision, List<String>, Long) - Constructor for class com.cloudant.sync.datastore.callables.InsertDocumentHistoryToNewTreeCallable
 
InsertDocumentIDCallable - Class in com.cloudant.sync.datastore.callables
Insert a new Document ID into the @{docs} table.
InsertDocumentIDCallable(String) - Constructor for class com.cloudant.sync.datastore.callables.InsertDocumentIDCallable
 
insertLocalDocument(String, DocumentBody) - Method in class com.cloudant.sync.datastore.DatastoreImpl
Inserts a local document with an ID and body.
InsertLocalDocumentCallable - Class in com.cloudant.sync.datastore.callables
Insert a local (non-replicated) Document
InsertLocalDocumentCallable(String, DocumentBody) - Constructor for class com.cloudant.sync.datastore.callables.InsertLocalDocumentCallable
 
insertNewWinnerRevisionAdaptor(DocumentBody, DocumentRevision) - Static method in class com.cloudant.sync.datastore.DatastoreImpl
 
InsertRevisionCallable - Class in com.cloudant.sync.datastore.callables
Inserts a new row into the `revs` table, returning new database sequence number.
InsertRevisionCallable() - Constructor for class com.cloudant.sync.datastore.callables.InsertRevisionCallable
 
insertStubRevisionAdaptor(long, String, long) - Static method in class com.cloudant.sync.datastore.DatastoreImpl
 
insertWithOnConflict(String, ContentValues, int) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
insertWithOnConflict(String, ContentValues, int) - Method in class com.cloudant.sync.sqlite.SQLDatabase
 
IntervalTimerReplicationPolicyManager - Class in com.cloudant.sync.replication
This replication policy invokes replications at regular intervals.
IntervalTimerReplicationPolicyManager(int) - Constructor for class com.cloudant.sync.replication.IntervalTimerReplicationPolicyManager
 
InvalidDocumentException - Exception in com.cloudant.sync.datastore
Created by Rhys Short on 05/02/15.
InvalidDocumentException() - Constructor for exception com.cloudant.sync.datastore.InvalidDocumentException
 
InvalidDocumentException(String) - Constructor for exception com.cloudant.sync.datastore.InvalidDocumentException
 
InvalidDocumentException(Exception) - Constructor for exception com.cloudant.sync.datastore.InvalidDocumentException
 
InvalidDocumentException(String, Exception) - Constructor for exception com.cloudant.sync.datastore.InvalidDocumentException
 
isAfterLast() - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
isAfterLast() - Method in interface com.cloudant.sync.sqlite.Cursor
Returns whether the cursor is pointing to the position after the last row.
isAfterLast() - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
isBodyModified() - Method in class com.cloudant.sync.datastore.DocumentRevision
 
isBulkSupported() - Method in class com.cloudant.mazha.CouchClient
 
isBulkSupported() - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
isCompactRunning() - Method in class com.cloudant.mazha.CouchDbInfo
 
isConnectedToWifi(Context) - Static method in class com.cloudant.sync.replication.WifiPeriodicReplicationReceiver
 
isCurrent() - Method in class com.cloudant.sync.datastore.DocumentRevision
 
isDeleted() - Method in class com.cloudant.mazha.ChangesResult.Row
 
isDeleted() - Method in class com.cloudant.sync.datastore.DocumentRevision
 
isFullRevision() - Method in class com.cloudant.sync.datastore.DocumentRevision
Returns true if this revision is a full revision.
isLarge() - Method in class com.cloudant.sync.datastore.SavedAttachment
 
isOpen() - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
isOpen() - Method in class com.cloudant.sync.sqlite.SQLDatabase
 
isRunningOnAndroid() - Static method in class com.cloudant.sync.util.Misc
 
isShutdown() - Method in class com.cloudant.sync.sqlite.SQLDatabaseQueue
Checks if SQLDatabaseQueue.shutdown() has been called
isStringNullOrEmpty(String) - Static method in class com.cloudant.sync.util.Misc
 
isTextSearchEnabled() - Method in class com.cloudant.sync.query.IndexManager
 
isValidDocumentId(String) - Static method in class com.cloudant.common.CouchUtils
 
isValidDocumentId(String) - Static method in class com.cloudant.sync.util.CouchUtils
 
isValidJSON(Map) - Static method in class com.cloudant.sync.util.JSONUtils
 
isValidJSON(String) - Static method in class com.cloudant.sync.util.JSONUtils
 
isValidJSON(byte[]) - Static method in class com.cloudant.sync.util.JSONUtils
 
isValidRevisionId(String) - Static method in class com.cloudant.common.CouchUtils
 
isValidRevisionId(String) - Static method in class com.cloudant.sync.util.CouchUtils
 
iterateChildren() - Method in class com.cloudant.sync.util.AbstractTreeNode
 
iterator() - Method in class com.cloudant.sync.datastore.DocumentRevsList
 
iterator() - Method in class com.cloudant.sync.query.QueryResult
 

J

JacksonModule - Class in com.cloudant.sync.util
Internal utility class
JacksonModule() - Constructor for class com.cloudant.sync.util.JacksonModule
 
join(String, Collection<String>) - Static method in class com.cloudant.sync.util.Misc
Utility to join strings with a separator.
JSONHelper - Class in com.cloudant.mazha.json
 
JSONHelper() - Constructor for class com.cloudant.mazha.json.JSONHelper
 
JSONUtils - Class in com.cloudant.sync.util
Internal utility class
JSONUtils() - Constructor for class com.cloudant.sync.util.JSONUtils
 

K

KEY_ALGORITHM - Static variable in class com.cloudant.sync.datastore.encryption.EncryptionConstants
 
KeyProvider - Interface in com.cloudant.sync.datastore.encryption
Classes implementing this interface provide encryption keys used by the datastore when encryption is enabled.
keySet() - Method in class com.cloudant.android.ContentValues
Returns a set of all of the keys
KeyUtils - Class in com.cloudant.sync.datastore.encryption
Utility methods for manipulating keys.
KeyUtils() - Constructor for class com.cloudant.sync.datastore.encryption.KeyUtils
 

L

leafRevisionIds() - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns the revision IDs for the leaf revisions of this document.
leafRevisions() - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns the leaf revisions
leafRevisions(boolean) - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns the leaf revisions
leafs() - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns a list of the DocumentRevisionTree.DocumentRevisionNodes which are leaf revisions of the branches in this document
length - Variable in class com.cloudant.sync.datastore.PreparedAttachment
 
LibraryVersion - Class in com.cloudant.library
Provides a HTTP User-Agent string for CloudantSync
LibraryVersion() - Constructor for class com.cloudant.library.LibraryVersion
 
listAllDatastores() - Method in class com.cloudant.sync.datastore.DatastoreManager
Lists all the names of Datastores managed by this DatastoreManager
listIndexes() - Method in class com.cloudant.sync.query.IndexManager
Get a list of indexes and their definitions as a Map.
LocalBinder() - Constructor for class com.cloudant.sync.replication.ReplicationService.LocalBinder
 
LocalDocument - Class in com.cloudant.sync.datastore
A local Document, this document does not have a history, or the concept of revisions
LocalDocument(String, DocumentBody) - Constructor for class com.cloudant.sync.datastore.LocalDocument
Creates a local document
lookup(String, String) - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns the DocumentRevision for a document ID and revision ID.
lookupChildByRevId(DocumentRevision, String) - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns the child with a given revision ID of a parent DocumentRevision.

M

makeInputStream() - Method in class com.cloudant.sync.datastore.MultipartAttachmentWriter
 
makeInputStreamGenerator() - Method in class com.cloudant.sync.datastore.MultipartAttachmentWriter
 
makePlaceholders(int) - Static method in class com.cloudant.sync.util.DatabaseUtils
 
markSupported() - Method in class com.cloudant.sync.datastore.encryption.EncryptedAttachmentInputStream
 
METADATA_COLS - Static variable in class com.cloudant.sync.datastore.DatastoreImpl
 
MigrateDatabase100To200 - Class in com.cloudant.sync.datastore.migrations
Migration to repair datastores impacted by issues 326 and 329.
MigrateDatabase100To200(String[]) - Constructor for class com.cloudant.sync.datastore.migrations.MigrateDatabase100To200
 
MigrateDatabase6To100 - Class in com.cloudant.sync.datastore.migrations
Migration from datastore JSON database version 6 to 100, which requires migration of data between tables with a transform in Java code along the way.
MigrateDatabase6To100() - Constructor for class com.cloudant.sync.datastore.migrations.MigrateDatabase6To100
 
Migration - Interface in com.cloudant.sync.datastore.migrations
Interface defining methods for running migration.
Misc - Class in com.cloudant.sync.util
Internal utility class
Misc() - Constructor for class com.cloudant.sync.util.Misc
 
missing - Variable in class com.cloudant.mazha.CouchClient.MissingRevisions
 
MissingOpenRevision - Class in com.cloudant.mazha
 
MissingOpenRevision() - Constructor for class com.cloudant.mazha.MissingOpenRevision
 
MissingRevisions() - Constructor for class com.cloudant.mazha.CouchClient.MissingRevisions
 
moveToFirst() - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
moveToFirst() - Method in interface com.cloudant.sync.sqlite.Cursor
Move the cursor to the first row.
moveToFirst() - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
moveToNext() - Method in class com.cloudant.sync.sqlite.android.AndroidSQLiteCursor
 
moveToNext() - Method in interface com.cloudant.sync.sqlite.Cursor
Move the cursor to the next row.
moveToNext() - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
MultipartAttachmentWriter - Class in com.cloudant.sync.datastore
A class for writing MIME Multipart/Related (RFC 2387) streams to CouchDB.
MultipartAttachmentWriter() - Constructor for class com.cloudant.sync.datastore.MultipartAttachmentWriter
Construct a MultipartAttachmentWriter with a default boundary
MultipartAttachmentWriter(String) - Constructor for class com.cloudant.sync.datastore.MultipartAttachmentWriter
Construct a MultipartAttachmentWriter with a specific boundary

N

name - Variable in class com.cloudant.sync.datastore.Attachment
Name of the attachment, must be unique for a given revision
newArrayList(Iterator<E>) - Static method in class com.cloudant.sync.util.CollectionUtils
 
newDocument - Variable in class com.cloudant.sync.notifications.DocumentModified
 
NoResourceException - Exception in com.cloudant.mazha
 
NoResourceException(String) - Constructor for exception com.cloudant.mazha.NoResourceException
 
NoResourceException(String, Throwable) - Constructor for exception com.cloudant.mazha.NoResourceException
 
NULL_ID - Static variable in class com.cloudant.sync.replication.ReplicatorImpl
 
NullKeyProvider - Class in com.cloudant.sync.datastore.encryption
This implementation of KeyProvider always returns a null key.
NullKeyProvider() - Constructor for class com.cloudant.sync.datastore.encryption.NullKeyProvider
 
numberOfChildren() - Method in class com.cloudant.sync.util.AbstractTreeNode
 

O

ok - Variable in class com.cloudant.mazha.BulkGetResponse.Doc
 
OkOpenRevision - Class in com.cloudant.mazha
 
OkOpenRevision() - Constructor for class com.cloudant.mazha.OkOpenRevision
 
onBind(Intent) - Method in class com.cloudant.sync.replication.PeriodicReplicationService
 
onBind(Intent) - Method in class com.cloudant.sync.replication.ReplicationService
 
onCreate() - Method in class com.cloudant.sync.replication.PeriodicReplicationService
 
onCreate() - Method in class com.cloudant.sync.replication.ReplicationService
 
onDatabaseClosed(DatabaseClosed) - Method in class com.cloudant.sync.datastore.DatastoreManager
 
onDiskLength() - Method in class com.cloudant.sync.datastore.SavedAttachment
 
onRebind(Intent) - Method in class com.cloudant.sync.replication.PeriodicReplicationService
 
onRebind(Intent) - Method in class com.cloudant.sync.replication.ReplicationService
 
onReceive(Context, Intent) - Method in class com.cloudant.sync.replication.PeriodicReplicationReceiver
 
onReceive(Context, Intent) - Method in class com.cloudant.sync.replication.WifiPeriodicReplicationReceiver
 
onStartCommand(Intent, int, int) - Method in class com.cloudant.sync.replication.ReplicationService
 
onUnbind(Intent) - Method in class com.cloudant.sync.replication.PeriodicReplicationService
 
onUnbind(Intent) - Method in class com.cloudant.sync.replication.ReplicationService
 
open() - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
open() - Method in class com.cloudant.sync.sqlite.SQLDatabase
Open the database
openDatastore(String) - Method in class com.cloudant.sync.datastore.DatastoreManager
Opens a datastore.
openDatastore(String, KeyProvider) - Method in class com.cloudant.sync.datastore.DatastoreManager
Opens a datastore.
OpenRevision - Interface in com.cloudant.mazha
 
OpenRevisionDeserializer - Class in com.cloudant.mazha.json
 
OpenRevisionDeserializer() - Constructor for class com.cloudant.mazha.json.OpenRevisionDeserializer
 
openSqlDatabase(String, KeyProvider) - Static method in class com.cloudant.sync.sqlite.SQLDatabaseFactory
SQLCipher-based implementation for opening database.

P

parentSequence - Variable in class com.cloudant.sync.datastore.callables.InsertRevisionCallable
 
parseCouchDBRevisionHistory(Map<String, Object>) - Static method in class com.cloudant.common.CouchUtils
 
parseCouchDBRevisionHistory(Map<String, Object>) - Static method in class com.cloudant.sync.util.CouchUtils
 
partition(List<E>, int) - Static method in class com.cloudant.sync.util.CollectionUtils
 
PeriodicReplicationReceiver<T extends PeriodicReplicationService> - Class in com.cloudant.sync.replication
This class implements a WakefulBroadcastReceiver that handles events related to periodic replication.
PeriodicReplicationService<T extends PeriodicReplicationReceiver> - Class in com.cloudant.sync.replication
This Service is an abstract class that is the basis for creating a service that performs periodic replications (i.e.
PickWinningRevisionCallable - Class in com.cloudant.sync.datastore.callables
Callable that evaluates leaf nodes to identify the winning revision for a particular document ID.
PickWinningRevisionCallable(long) - Constructor for class com.cloudant.sync.datastore.callables.PickWinningRevisionCallable
Identify and set the winning revision for the document specified by the supplied internal document ID.
poll() - Method in class com.cloudant.sync.replication.QueuingExecutorCompletionService
 
poll(long, TimeUnit) - Method in class com.cloudant.sync.replication.QueuingExecutorCompletionService
 
possible_ancestors - Variable in class com.cloudant.mazha.CouchClient.MissingRevisions
 
post(Object) - Method in class com.cloudant.sync.event.EventBus
Post an event to the bus.
prepareAttachment(String, AttachmentStreamFactory, Attachment) - Static method in class com.cloudant.sync.datastore.AttachmentManager
Creates a PreparedAttachment from attachment, preparing it for insertion into the datastore.
prepareAttachment(Attachment, long, long) - Method in class com.cloudant.sync.datastore.DatastoreImpl
Read attachment stream to a temporary location and calculate sha1, prior to being added to the datastore.
prepareAttachments(String, AttachmentStreamFactory, List<Attachment>) - Static method in class com.cloudant.sync.datastore.AttachmentManager
Download each attachment in attachments to a temporary location, and return a list of attachments suitable for passing to setAttachments.
PreparedAttachment - Class in com.cloudant.sync.datastore
An attachment which has been been copied to a temporary location and had its sha1 calculated, prior to being added to the datastore.
PreparedAttachment(Attachment, String, long, AttachmentStreamFactory) - Constructor for class com.cloudant.sync.datastore.PreparedAttachment
Prepare an attachment by copying it to a temp location and calculating its sha1.
preparedAttachments - Variable in class com.cloudant.sync.datastore.ForceInsertItem
 
prevDocument - Variable in class com.cloudant.sync.notifications.DocumentModified
 
ProjectedDocumentRevision - Class in com.cloudant.sync.datastore
A document revision that has been projected.
PropertyFilterMixIn - Class in com.cloudant.common
 
PropertyFilterMixIn() - Constructor for class com.cloudant.common.PropertyFilterMixIn
 
pull() - Static method in class com.cloudant.sync.replication.ReplicatorBuilder
Creates a pull replication builder.
Pull() - Constructor for class com.cloudant.sync.replication.ReplicatorBuilder.Pull
 
pullAttachmentsInline - Variable in class com.cloudant.sync.datastore.ForceInsertItem
 
pullAttachmentsInline(boolean) - Method in class com.cloudant.sync.replication.ReplicatorBuilder.Pull
Sets whether to pull attachments inline or separately
PullFilter - Class in com.cloudant.sync.replication
Provides the name and parameters for a filter function to be used when a pull replication calls the source database's _changes feed.
PullFilter(String) - Constructor for class com.cloudant.sync.replication.PullFilter
Constructs a filter object for a function that requires no parameters.
PullFilter(String, Map<String, String>) - Constructor for class com.cloudant.sync.replication.PullFilter
Constructs a filter object for a function that requires no parameters.
purgeAttachments(SQLDatabase, String) - Static method in class com.cloudant.sync.datastore.AttachmentManager
Called by BasicDatastore on the execution queue, this needs have the db passed ot it
push() - Static method in class com.cloudant.sync.replication.ReplicatorBuilder
Creates a ReplicatorBuilder.Push replication builder.
Push() - Constructor for class com.cloudant.sync.replication.ReplicatorBuilder.Push
 
PushAttachmentsInline - Enum in com.cloudant.sync.replication
Strategy to decide whether to push attachments inline:
pushAttachmentsInline(PushAttachmentsInline) - Method in class com.cloudant.sync.replication.ReplicatorBuilder.Push
Sets the strategy to decide whether to push attachments inline or separately
PushFilter - Interface in com.cloudant.sync.replication
Interface for filtering documents during a push replication.
put(String, String) - Method in class com.cloudant.android.ContentValues
Adds a value to the set.
put(String, Byte) - Method in class com.cloudant.android.ContentValues
Adds a value to the set.
put(String, Short) - Method in class com.cloudant.android.ContentValues
Adds a value to the set.
put(String, Integer) - Method in class com.cloudant.android.ContentValues
Adds a value to the set.
put(String, Long) - Method in class com.cloudant.android.ContentValues
Adds a value to the set.
put(String, Float) - Method in class com.cloudant.android.ContentValues
Adds a value to the set.
put(String, Double) - Method in class com.cloudant.android.ContentValues
Adds a value to the set.
put(String, Boolean) - Method in class com.cloudant.android.ContentValues
Adds a value to the set.
put(String, byte[]) - Method in class com.cloudant.android.ContentValues
Adds a value to the set.
put(int) - Method in class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
put(int, String) - Method in class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
put(int, long) - Method in class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
put(int, float) - Method in class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
put(int, byte[]) - Method in class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
putAll(ContentValues) - Method in class com.cloudant.android.ContentValues
Adds all values from the passed in ContentValues.
putAttachmentStream(String, String, String, String, byte[]) - Method in class com.cloudant.mazha.CouchClient
 
putCheckpoint(String, String) - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
putMultipart(MultipartAttachmentWriter) - Method in class com.cloudant.mazha.CouchClient
 
putMultiparts(List<MultipartAttachmentWriter>) - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
putNull(String) - Method in class com.cloudant.android.ContentValues
Adds a null value to the set.

Q

QueryBuilder - Class in com.cloudant.sync.sqlite.sqlite4java
 
QueryBuilder() - Constructor for class com.cloudant.sync.sqlite.sqlite4java.QueryBuilder
 
QueryException - Exception in com.cloudant.sync.query
This unchecked exception is used to wrap another exception so we can pass meaningful exception traces over the QueryResult.iterator() boundary as we can't change the signature of QueryResult.iterator() to add a checked exception.
QueryException(Exception) - Constructor for exception com.cloudant.sync.query.QueryException
 
QueryException(String) - Constructor for exception com.cloudant.sync.query.QueryException
 
QueryResult - Class in com.cloudant.sync.query
Iterable result of a query executed with IndexManager.
QueryResult(List<String>, Datastore, List<String>, long, long, UnindexedMatcher) - Constructor for class com.cloudant.sync.query.QueryResult
 
QueuingExecutorCompletionService<Q,R> - Class in com.cloudant.sync.replication
This class extends the ExecutorCompletionService using a Queue of requests to operate a policy of submitting a new request for execution after a previous request has completed.
QueuingExecutorCompletionService(ExecutorService, Queue<Q>, int) - Constructor for class com.cloudant.sync.replication.QueuingExecutorCompletionService
 

R

rawQuery(String, String[]) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
rawQuery(String, String[]) - Method in class com.cloudant.sync.sqlite.SQLDatabase
Runs the provided SQL and returns a Cursor over the result set.
read() - Method in class com.cloudant.sync.datastore.encryption.EncryptedAttachmentInputStream
 
read(byte[]) - Method in class com.cloudant.sync.datastore.encryption.EncryptedAttachmentInputStream
 
read(byte[], int, int) - Method in class com.cloudant.sync.datastore.encryption.EncryptedAttachmentInputStream
 
register(Object) - Method in class com.cloudant.sync.event.EventBus
Register an instance containing one or more subscriber methods to receive events.
remove(String) - Method in class com.cloudant.android.ContentValues
Remove a single value.
removeListener(ReplicationService.ReplicationCompleteListener) - Method in class com.cloudant.sync.replication.ReplicationService
Remove a listener from the set of ReplicationService.ReplicationCompleteListeners that are notified when replications complete.
replicationComplete(int) - Method in interface com.cloudant.sync.replication.ReplicationService.ReplicationCompleteListener
Callback to indicate that the individual replication with the given id is complete.
replicationComplete(int) - Method in class com.cloudant.sync.replication.ReplicationService.SimpleReplicationCompleteListener
 
ReplicationCompleted - Class in com.cloudant.sync.notifications
Event posted when a state transition to COMPLETE or STOPPED is completed.
ReplicationCompleted(Replicator, int, int) - Constructor for class com.cloudant.sync.notifications.ReplicationCompleted
 
replicationCompleted(int) - Method in interface com.cloudant.sync.replication.ReplicationPolicyManager.ReplicationsCompletedListener
 
replicationCompleted(int) - Method in class com.cloudant.sync.replication.ReplicationService
 
ReplicationErrored - Class in com.cloudant.sync.notifications
Event posted when a state transition to ERROR is completed.
ReplicationErrored(Replicator, ErrorInfo) - Constructor for class com.cloudant.sync.notifications.ReplicationErrored
 
replicationErrored(int) - Method in interface com.cloudant.sync.replication.ReplicationPolicyManager.ReplicationsCompletedListener
 
replicationErrored(int) - Method in interface com.cloudant.sync.replication.ReplicationService.ReplicationCompleteListener
Callback to indicate that the individual replication with the given id has errored.
replicationErrored(int) - Method in class com.cloudant.sync.replication.ReplicationService
 
replicationErrored(int) - Method in class com.cloudant.sync.replication.ReplicationService.SimpleReplicationCompleteListener
 
ReplicationPolicyManager - Class in com.cloudant.sync.replication
 
ReplicationPolicyManager() - Constructor for class com.cloudant.sync.replication.ReplicationPolicyManager
 
ReplicationPolicyManager.ReplicationListener - Class in com.cloudant.sync.replication
This class is not intended as API, it is public for EventBus access only.
ReplicationPolicyManager.ReplicationsCompletedListener - Interface in com.cloudant.sync.replication
 
ReplicationService - Class in com.cloudant.sync.replication
This abstract class forms the basis for creating replication policies on Android.
ReplicationService() - Constructor for class com.cloudant.sync.replication.ReplicationService
 
ReplicationService.LocalBinder - Class in com.cloudant.sync.replication
 
ReplicationService.ReplicationCompleteListener - Interface in com.cloudant.sync.replication
 
ReplicationService.SimpleReplicationCompleteListener - Class in com.cloudant.sync.replication
A simple ReplicationService.ReplicationCompleteListener to save clients having to override every method if they are only interested in a subset of the events.
replicator - Variable in class com.cloudant.sync.notifications.ReplicationCompleted
The Replicator issuing the event
replicator - Variable in class com.cloudant.sync.notifications.ReplicationErrored
The Replicator issuing the event
Replicator - Interface in com.cloudant.sync.replication
Manages replication between a local Datastore and a remote Cloudant or CouchDB database.
Replicator.State - Enum in com.cloudant.sync.replication
Describes the state of a Replicator at a given moment.
ReplicatorBuilder<S,T,E> - Class in com.cloudant.sync.replication
A Builder to create a Object
ReplicatorBuilder() - Constructor for class com.cloudant.sync.replication.ReplicatorBuilder
 
ReplicatorBuilder.Pull - Class in com.cloudant.sync.replication
A Pull Replication Builder
ReplicatorBuilder.Push - Class in com.cloudant.sync.replication
A Push Replication Builder
ReplicatorImpl - Class in com.cloudant.sync.replication
This class is not intended as API, it is public for EventBus access only.
ReplicatorImpl(ReplicationStrategy) - Constructor for class com.cloudant.sync.replication.ReplicatorImpl
 
ReplicatorImpl(ReplicationStrategy, int) - Constructor for class com.cloudant.sync.replication.ReplicatorImpl
 
resolve(String, List<DocumentRevision>) - Method in interface com.cloudant.sync.datastore.ConflictResolver
Return resolved DocumentRevision, the returned DocumentRevision will be added to the Document tree as the child of the current winner, and all the other revisions passed in be deleted.
resolveConflictsForDocument(String, ConflictResolver) - Method in interface com.cloudant.sync.datastore.Datastore
Resolve conflicts for specified Document using the given ConflictResolver
resolveConflictsForDocument(String, ConflictResolver) - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
ResolveConflictsForDocumentCallable - Class in com.cloudant.sync.datastore.callables
Delete and mark non-current all Document Revisions except the one with the Revision ID revIdKeep
ResolveConflictsForDocumentCallable(DocumentRevisionTree, String) - Constructor for class com.cloudant.sync.datastore.callables.ResolveConflictsForDocumentCallable
 
Response - Class in com.cloudant.mazha
Represents CouchDB response as a result of a request.
Response() - Constructor for class com.cloudant.mazha.Response
 
Result() - Constructor for class com.cloudant.mazha.BulkGetResponse.Result
 
results - Variable in class com.cloudant.mazha.BulkGetResponse
 
RetriableTask<T> - Class in com.cloudant.common
 
RetriableTask(Callable<T>) - Constructor for class com.cloudant.common.RetriableTask
 
RetriableTask(int, long, Callable<T>) - Constructor for class com.cloudant.common.RetriableTask
 
RetryException - Exception in com.cloudant.common
 
RetryException(String, Exception) - Constructor for exception com.cloudant.common.RetryException
 
rev - Variable in class com.cloudant.mazha.BulkGetRequest
 
Rev() - Constructor for class com.cloudant.mazha.ChangesResult.Row.Rev
 
rev - Variable in class com.cloudant.sync.datastore.ForceInsertItem
 
revId - Variable in class com.cloudant.sync.datastore.callables.InsertRevisionCallable
 
revisionHistory - Variable in class com.cloudant.sync.datastore.ForceInsertItem
 
RevisionHistoryHelper - Class in com.cloudant.sync.datastore
Methods to help managing document revision histories.
RevisionHistoryHelper() - Constructor for class com.cloudant.sync.datastore.RevisionHistoryHelper
 
revisionHistoryToJson(List<DocumentRevision>) - Static method in class com.cloudant.sync.datastore.RevisionHistoryHelper
Serialise a branch's revision history, without attachments.
revisionHistoryToJson(List<DocumentRevision>, List<? extends Attachment>, boolean, int) - Static method in class com.cloudant.sync.datastore.RevisionHistoryHelper
Serialise a branch's revision history, in the form of a list of DocumentRevisions, into the JSON format expected by CouchDB's _bulk_docs endpoint.
Revisions() - Constructor for class com.cloudant.mazha.DocumentRevs.Revisions
 
revsDiff(Map<String, Set<String>>) - Method in class com.cloudant.mazha.CouchClient
Returns the subset of given the documentId/revisions that are not stored in the database.
revsDiff(Map<String, List<String>>) - Method in class com.cloudant.sync.datastore.DatastoreImpl
Returns the subset of given the document id/revisions that are not stored in the database.
revsDiff(Map<String, Set<String>>) - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
RevsDiffBatchCallable - Class in com.cloudant.sync.datastore.callables
Checks the supplied collection of revisions for the given document ID and returns a collection containing only those entries that are missing from the database.
RevsDiffBatchCallable(String, Collection<String>) - Constructor for class com.cloudant.sync.datastore.callables.RevsDiffBatchCallable
 
revsDiffUri() - Method in class com.cloudant.mazha.CouchURIHelper
Returns URI for _revs_diff endpoi
root(long) - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns the root revision of this document with a given sequence number.
roots() - Method in class com.cloudant.sync.datastore.DocumentRevisionTree
Returns the root revisions of this document in a mapping of sequence number to DocumentRevisionTree.DocumentRevisionNode.
Row() - Constructor for class com.cloudant.mazha.ChangesResult.Row
 
runMigration(SQLDatabase) - Method in class com.cloudant.sync.datastore.migrations.MigrateDatabase100To200
 
runMigration(SQLDatabase) - Method in class com.cloudant.sync.datastore.migrations.MigrateDatabase6To100
 
runMigration(SQLDatabase) - Method in interface com.cloudant.sync.datastore.migrations.Migration
Implementors should run all migration steps in this method.
runMigration(SQLDatabase) - Method in class com.cloudant.sync.datastore.migrations.SchemaOnlyMigration
 

S

SavedAttachment - Class in com.cloudant.sync.datastore
An Attachment which has been retrieved from the Database
SavedAttachment(long, String, byte[], String, Attachment.Encoding, long, long, long, File, AttachmentStreamFactory) - Constructor for class com.cloudant.sync.datastore.SavedAttachment
 
SchemaOnlyMigration - Class in com.cloudant.sync.datastore.migrations
Runs a database migration which consists only of SQL statements.
SchemaOnlyMigration(String[]) - Constructor for class com.cloudant.sync.datastore.migrations.SchemaOnlyMigration
 
SEQUENCE_NUMBER_START - Static variable in interface com.cloudant.sync.datastore.Datastore
The sequence number of the datastore when no updates have been made, -1L.
serializeAsBytes(Map) - Static method in class com.cloudant.sync.util.JSONUtils
 
serializeAsBytes(Document) - Static method in class com.cloudant.sync.util.JSONUtils
 
serializeAsString(Map) - Static method in class com.cloudant.sync.util.JSONUtils
 
serializeAsString(Document) - Static method in class com.cloudant.sync.util.JSONUtils
 
ServerException - Exception in com.cloudant.mazha
 
ServerException(Exception) - Constructor for exception com.cloudant.mazha.ServerException
 
ServerException(String) - Constructor for exception com.cloudant.mazha.ServerException
 
ServerException(int) - Constructor for exception com.cloudant.mazha.ServerException
 
setAttachments(Map<String, Object>) - Method in class com.cloudant.mazha.DocumentRevs
 
setAttachments(Map<String, Attachment>) - Method in class com.cloudant.sync.datastore.DocumentRevision
 
setAttachments(List<? extends Attachment>) - Method in class com.cloudant.sync.datastore.DocumentRevisionBuilder
Sets the attachments associated with the document for this builder.
setBody(DocumentBody) - Method in class com.cloudant.sync.datastore.DocumentRevision
 
setBody(DocumentBody) - Method in class com.cloudant.sync.datastore.DocumentRevisionBuilder
Sets the document body for this builder.
setBody(Map<String, Object>) - Method in class com.cloudant.sync.datastore.MultipartAttachmentWriter
Set the JSON body (the first MIME body) for the writer.
setChanges(List<ChangesResult.Row.Rev>) - Method in class com.cloudant.mazha.ChangesResult.Row
 
setCurrent(boolean) - Method in class com.cloudant.sync.datastore.DocumentRevisionBuilder
Sets whether this builder is creating the winning revision.
SetCurrentCallable - Class in com.cloudant.sync.datastore.callables
Set the current field in the revs table to true or false.
SetCurrentCallable(long, boolean) - Constructor for class com.cloudant.sync.datastore.callables.SetCurrentCallable
 
setData(T) - Method in class com.cloudant.sync.util.AbstractTreeNode
 
setDataSize(long) - Method in class com.cloudant.mazha.CouchDbInfo
 
setDatastore(Datastore) - Method in class com.cloudant.sync.datastore.DocumentRevisionBuilder
Sets the datastore for this builder.
setDeleted(boolean) - Method in class com.cloudant.mazha.ChangesResult.Row
 
setDeleted(Boolean) - Method in class com.cloudant.mazha.DocumentRevs
 
setDeleted(boolean) - Method in class com.cloudant.sync.datastore.DocumentRevision
 
setDeleted(boolean) - Method in class com.cloudant.sync.datastore.DocumentRevisionBuilder
Sets whether this builder is creating a deleted revsion.
setDoc(Map) - Method in class com.cloudant.mazha.ChangesResult.Row
 
setDocId(String) - Method in class com.cloudant.sync.datastore.DocumentRevisionBuilder
Sets the document ID for this builder.
setDocumentRevs(DocumentRevs) - Method in class com.cloudant.mazha.OkOpenRevision
 
setError(String) - Method in exception com.cloudant.mazha.CouchException
 
setError(String) - Method in class com.cloudant.mazha.Response
 
setId(String) - Method in class com.cloudant.mazha.ChangesResult.Row
 
setId(String) - Method in class com.cloudant.mazha.Document
 
setId(String) - Method in class com.cloudant.mazha.DocumentRevs
 
setIds(List<String>) - Method in class com.cloudant.mazha.DocumentRevs.Revisions
 
setInternalId(long) - Method in class com.cloudant.sync.datastore.DocumentRevisionBuilder
Sets the internal ID for this builder.
setLastSeq(Object) - Method in class com.cloudant.mazha.ChangesResult
 
setOk(boolean) - Method in class com.cloudant.mazha.DBOperationResponse
 
setOperationStartedListener(ReplicationService.OperationStartedListener) - Method in class com.cloudant.sync.replication.ReplicationService
Set a listener to be notified when an operation has started.
setOthers(String, Object) - Method in class com.cloudant.mazha.DocumentRevs
Jackson will automatically put any field it can not find match to this @JsonAnySetter bucket.
setParent(long) - Method in class com.cloudant.sync.datastore.DocumentRevisionBuilder
Sets the parent sequence number for this builder.
setReason(String) - Method in exception com.cloudant.mazha.CouchException
 
setReason(String) - Method in class com.cloudant.mazha.Response
 
setReplicationPolicyManager(ReplicationPolicyManager) - Method in class com.cloudant.sync.replication.ReplicationService
Set the ReplicationPolicyManager to be used by this ReplicationService.
setReplicationsCompletedListener(ReplicationPolicyManager.ReplicationsCompletedListener) - Method in class com.cloudant.sync.replication.ReplicationPolicyManager
Interested parties wishing to receive replication lifecycle events should call this method with a class implementing the ReplicationPolicyManager.ReplicationsCompletedListener interface.
setReplicators(Replicator[]) - Method in class com.cloudant.sync.replication.ReplicationService
Set the Replicator objects configured to perform the required replications.
setResults(List<ChangesResult.Row>) - Method in class com.cloudant.mazha.ChangesResult
 
setRev(String) - Method in class com.cloudant.mazha.ChangesResult.Row.Rev
 
setRev(String) - Method in class com.cloudant.mazha.DocumentRevs
 
setRevId(String) - Method in class com.cloudant.sync.datastore.DocumentRevisionBuilder
Sets the revision ID for this builder.
setRevision(String) - Method in class com.cloudant.mazha.Document
 
setRevision(String) - Method in class com.cloudant.mazha.MissingOpenRevision
 
setRevision(String) - Method in class com.cloudant.sync.datastore.DocumentRevision
 
setRevisions(DocumentRevs.Revisions) - Method in class com.cloudant.mazha.DocumentRevs
 
setSeq(Object) - Method in class com.cloudant.mazha.ChangesResult.Row
 
setSequence(long) - Method in class com.cloudant.sync.datastore.DocumentRevisionBuilder
Sets the sequence number for this builder.
setStart(int) - Method in class com.cloudant.mazha.DocumentRevs.Revisions
 
setStatusCode(int) - Method in exception com.cloudant.mazha.CouchException
 
setStatusCode(int) - Method in exception com.cloudant.mazha.ServerException
 
setTransactionSuccessful() - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
setTransactionSuccessful() - Method in class com.cloudant.sync.sqlite.SQLDatabase
Marks the current transaction as successful.
setupModule(Module.SetupContext) - Method in class com.cloudant.sync.util.JacksonModule
 
sha1 - Variable in class com.cloudant.sync.datastore.PreparedAttachment
 
shouldInline(List<? extends Attachment>, PushAttachmentsInline, int) - Static method in class com.cloudant.sync.datastore.RevisionHistoryHelper
Determine whether to upload attachments inline or separately via multipart/related.
shouldInline(PushAttachmentsInline) - Method in class com.cloudant.sync.datastore.SavedAttachment
 
shouldReplicateDocument(DocumentRevision) - Method in interface com.cloudant.sync.replication.PushFilter
Determines if a DocumentRevision should be replicated to the remote database
shutdown() - Method in class com.cloudant.sync.sqlite.SQLDatabaseQueue
Shuts down this database queue and closes the underlying database connection.
SIMPLE_FILTER_NAME - Static variable in class com.cloudant.common.PropertyFilterMixIn
 
SimpleChangeNotifyingMap - Class in com.cloudant.common
Created by tomblench on 10/02/16.
SimpleChangeNotifyingMap() - Constructor for class com.cloudant.common.SimpleChangeNotifyingMap
 
SimpleKeyProvider - Class in com.cloudant.sync.datastore.encryption
SimpleKeyProvider simply takes raw key bytes in its constructor and uses these to provide that key to datastore methods.
SimpleKeyProvider(byte[]) - Constructor for class com.cloudant.sync.datastore.encryption.SimpleKeyProvider
 
SimpleReplicationCompleteListener() - Constructor for class com.cloudant.sync.replication.ReplicationService.SimpleReplicationCompleteListener
 
size() - Method in class com.cloudant.android.ContentValues
Returns the number of values.
size() - Method in class com.cloudant.mazha.ChangesResult
this.getResults().size()
size() - Method in class com.cloudant.sync.datastore.Changes
Returns the number of DocumentRevisions in this change set.
size() - Method in class com.cloudant.sync.query.QueryResult
Returns the number of documents in this query result.
size() - Method in class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
skip(long) - Method in class com.cloudant.sync.datastore.encryption.EncryptedAttachmentInputStream
 
sortDocumentsAccordingToIdList(List<String>, List<DocumentRevision>) - Static method in class com.cloudant.sync.datastore.DatastoreImpl
 
SQL_ATTACHMENTS_SELECT - Static variable in class com.cloudant.sync.datastore.AttachmentManager
 
SQL_ATTACHMENTS_SELECT_ALL - Static variable in class com.cloudant.sync.datastore.AttachmentManager
 
SQL_CHANGE_IDS_SINCE_LIMIT - Static variable in class com.cloudant.sync.datastore.DatastoreImpl
 
SQLCallable<T> - Interface in com.cloudant.sync.sqlite
Created by tomblench on 25/08/16.
sqlCipherKeyForKeyProvider(KeyProvider) - Static method in class com.cloudant.sync.datastore.encryption.KeyUtils
Take a KeyProvider and return a hex-encoded string version of the key suitable for passing directly to SQLCipher (i.e., including `x'` prefix and `'` suffix).
SQLDatabase - Class in com.cloudant.sync.sqlite
 
SQLDatabase() - Constructor for class com.cloudant.sync.sqlite.SQLDatabase
 
SQLDatabaseFactory - Class in com.cloudant.sync.sqlite
Factory class to create SQLDatabase, and update schema
SQLDatabaseFactory() - Constructor for class com.cloudant.sync.sqlite.SQLDatabaseFactory
 
SQLDatabaseQueue - Class in com.cloudant.sync.sqlite
SQLDatabaseQuue provides the ability to ensure that the only a single thread accesses the SQLDatabase.
SQLDatabaseQueue(String) - Constructor for class com.cloudant.sync.sqlite.SQLDatabaseQueue
Creates an SQLQueue for the database specified.
SQLDatabaseQueue(String, KeyProvider) - Constructor for class com.cloudant.sync.sqlite.SQLDatabaseQueue
Creates an SQLQueue for the SQLCipher-based database specified.
SQLITE_QUERY_PLACEHOLDERS_LIMIT - Static variable in class com.cloudant.sync.datastore.DatastoreImpl
 
SQLiteCursor - Class in com.cloudant.sync.sqlite.sqlite4java
 
SQLiteCursor(List<String>, List<Tuple>) - Constructor for class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
start - Static variable in class com.cloudant.common.CouchConstants
 
start() - Method in class com.cloudant.sync.replication.IntervalTimerReplicationPolicyManager
 
start() - Method in interface com.cloudant.sync.replication.Replicator
Starts a replication.
start() - Method in class com.cloudant.sync.replication.ReplicatorBuilder
Builds a replicator by calling ReplicatorBuilder.build() and then Replicator.start() on the replicator returned.
start() - Method in class com.cloudant.sync.replication.ReplicatorImpl
 
startPeriodicReplication() - Method in class com.cloudant.sync.replication.PeriodicReplicationService
Start periodic replications.
stop() - Method in class com.cloudant.sync.replication.IntervalTimerReplicationPolicyManager
 
stop() - Method in interface com.cloudant.sync.replication.Replicator
Stops an in-progress replication.
stop() - Method in class com.cloudant.sync.replication.ReplicatorImpl
 
stopPeriodicReplication() - Method in class com.cloudant.sync.replication.PeriodicReplicationService
Stop replications currently in progress and cancel future scheduled replications.
STRING_LIST_TYPE_DEF - Static variable in class com.cloudant.mazha.json.JSONHelper
 
STRING_MAP_TYPE_DEF - Static variable in class com.cloudant.mazha.json.JSONHelper
 
submit(SQLCallable<T>) - Method in class com.cloudant.sync.sqlite.SQLDatabaseQueue
Submits a database task for execution
submitTransaction(SQLCallable<T>) - Method in class com.cloudant.sync.sqlite.SQLDatabaseQueue
Submits a database task for execution in a transaction
Subscribe - Annotation Type in com.cloudant.sync.event
Annotation to indicate a method should be subscribed to events posted to the EventBus on which the method's owning instance is registered.

T

TAG - Static variable in class com.cloudant.android.ContentValues
 
take() - Method in class com.cloudant.sync.replication.QueuingExecutorCompletionService
 
tempFile - Variable in class com.cloudant.sync.datastore.PreparedAttachment
 
ThreadUtils - Class in com.cloudant.sync.util
Internal utility class
ThreadUtils() - Constructor for class com.cloudant.sync.util.ThreadUtils
 
to(T) - Method in class com.cloudant.sync.replication.ReplicatorBuilder
Sets the target database for the replication
toFullRevision() - Method in class com.cloudant.sync.datastore.DocumentRevision
Returns a "Full" document revision.
toFullRevision() - Method in class com.cloudant.sync.datastore.ProjectedDocumentRevision
 
toJson(Object) - Method in class com.cloudant.mazha.json.JSONHelper
 
toPrettyJson(Object) - Method in class com.cloudant.mazha.json.JSONHelper
 
toPrettyJson(Object) - Static method in class com.cloudant.sync.util.JSONUtils
 
toQueryString() - Method in class com.cloudant.sync.replication.PullFilter
Generate a string representation of this Filter object that is consistent for a given name and parameter set.
toString() - Method in class com.cloudant.android.ContentValues
Returns a string containing a concise, human-readable description of this object.
toString() - Method in class com.cloudant.mazha.CouchDbInfo
 
toString() - Method in exception com.cloudant.mazha.CouchException
 
toString() - Method in class com.cloudant.mazha.DBOperationResponse
 
toString() - Method in class com.cloudant.mazha.DocumentRevs
 
toString() - Method in class com.cloudant.mazha.OkOpenRevision
 
toString() - Method in class com.cloudant.mazha.Response
 
toString() - Method in class com.cloudant.sync.datastore.Attachment
 
toString() - Method in class com.cloudant.sync.datastore.callables.InsertRevisionCallable
 
toString() - Method in class com.cloudant.sync.datastore.DocumentRevision
 
toString() - Method in class com.cloudant.sync.datastore.DocumentRevsList
 
toString() - Method in class com.cloudant.sync.datastore.MultipartAttachmentWriter
 
toString() - Method in enum com.cloudant.sync.query.IndexType
toString() - Method in class com.cloudant.sync.replication.BulkGetRequest
 
toString() - Method in class com.cloudant.sync.sqlite.sqlite4java.SQLiteCursor
 
toString() - Method in class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
toString() - Method in class com.cloudant.sync.util.AbstractTreeNode
 
Tuple - Class in com.cloudant.sync.sqlite.sqlite4java
 
Tuple(List<Integer>) - Constructor for class com.cloudant.sync.sqlite.sqlite4java.Tuple
 
type - Variable in class com.cloudant.sync.datastore.Attachment
MIME type of the attachment

U

unregister(Object) - Method in class com.cloudant.sync.event.EventBus
Deregister a previously registered instance with subscriber methods.
UnsavedFileAttachment - Class in com.cloudant.sync.datastore
An Attachment which has been prepared by the user for saving to the database
UnsavedFileAttachment(File, String) - Constructor for class com.cloudant.sync.datastore.UnsavedFileAttachment
 
UnsavedFileAttachment(File, String, Attachment.Encoding) - Constructor for class com.cloudant.sync.datastore.UnsavedFileAttachment
 
UnsavedStreamAttachment - Class in com.cloudant.sync.datastore
An Attachment which is read from a stream before saving to the database
UnsavedStreamAttachment(InputStream, String, String) - Constructor for class com.cloudant.sync.datastore.UnsavedStreamAttachment
 
UnsavedStreamAttachment(InputStream, String, String, Attachment.Encoding) - Constructor for class com.cloudant.sync.datastore.UnsavedStreamAttachment
 
update(String, Object) - Method in class com.cloudant.mazha.CouchClient
 
update(String, Object) - Method in class com.cloudant.sync.replication.CouchClientWrapper
 
update(String, ContentValues, String, String[]) - Method in class com.cloudant.sync.sqlite.android.AndroidSQLite
 
update(String, ContentValues, String, String[]) - Method in class com.cloudant.sync.sqlite.SQLDatabase
Convenience method for updating rows in the database.
updateAllIndexes() - Method in class com.cloudant.sync.query.IndexManager
Update all indexes.
UpdateDocumentBodyCallable - Class in com.cloudant.sync.datastore.callables
Update body of Document Revision by inserting a new child Revision with the JSON contents body
UpdateDocumentBodyCallable(String, String, DocumentBody, String, AttachmentStreamFactory) - Constructor for class com.cloudant.sync.datastore.callables.UpdateDocumentBodyCallable
 
updateDocumentFromRevision(DocumentRevision) - Method in interface com.cloudant.sync.datastore.Datastore
Updates a document that exists in the datastore with with body and attachments from rev.
updateDocumentFromRevision(DocumentRevision) - Method in class com.cloudant.sync.datastore.DatastoreImpl
 
UpdateDocumentFromRevisionCallable - Class in com.cloudant.sync.datastore.callables
Update body and attachments of Document Revision by inserting a new child Revision with the JSON contents rev.body and the new and existing attachments preparedNewAttachments and existingAttachments
UpdateDocumentFromRevisionCallable(DocumentRevision, List<PreparedAttachment>, List<SavedAttachment>, String, AttachmentStreamFactory) - Constructor for class com.cloudant.sync.datastore.callables.UpdateDocumentFromRevisionCallable
 
updateSchema(SQLDatabase, Migration, int) - Static method in class com.cloudant.sync.sqlite.SQLDatabaseFactory
Update schema for SQLDatabase
updateSchema(Migration, int) - Method in class com.cloudant.sync.sqlite.SQLDatabaseQueue
Updates the schema of the database.

V

validateDBBody(DocumentBody) - Static method in class com.cloudant.sync.datastore.DatastoreImpl
 
validateDocumentId(String) - Static method in class com.cloudant.common.CouchUtils
 
validateDocumentId(String) - Static method in class com.cloudant.sync.util.CouchUtils
 
validateRevisionId(String) - Static method in class com.cloudant.common.CouchUtils
 
validateRevisionId(String) - Static method in class com.cloudant.sync.util.CouchUtils
 
ValueListMap<K,V> - Class in com.cloudant.common
A map implementation that stores a list of values for each key.
ValueListMap() - Constructor for class com.cloudant.common.ValueListMap
 
valueOf(String) - Static method in enum com.cloudant.sync.datastore.Attachment.Encoding
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.cloudant.sync.query.IndexType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.cloudant.sync.replication.PushAttachmentsInline
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.cloudant.sync.replication.Replicator.State
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.cloudant.sync.datastore.Attachment.Encoding
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.cloudant.sync.query.IndexType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.cloudant.sync.replication.PushAttachmentsInline
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.cloudant.sync.replication.Replicator.State
Returns an array containing the constants of this enum type, in the order they are declared.
valueSet() - Method in class com.cloudant.android.ContentValues
Returns a set of all of the keys and values

W

WifiPeriodicReplicationReceiver<T extends PeriodicReplicationService> - Class in com.cloudant.sync.replication
This class extends PeriodicReplicationReceiver so that periodic replications are only started when the device is connected to a WiFi network and are stopped when the device disconnects from a WiFi network.
withId(int) - Method in class com.cloudant.sync.replication.ReplicatorBuilder
 
wrap(Map<K, V>) - Static method in class com.cloudant.common.SimpleChangeNotifyingMap
 
write(byte[]) - Method in class com.cloudant.sync.datastore.encryption.EncryptedAttachmentOutputStream
 
write(byte[], int, int) - Method in class com.cloudant.sync.datastore.encryption.EncryptedAttachmentOutputStream
 
write(int) - Method in class com.cloudant.sync.datastore.encryption.EncryptedAttachmentOutputStream
 

_

_attachments - Static variable in class com.cloudant.common.CouchConstants
 
_conflicts - Static variable in class com.cloudant.common.CouchConstants
 
_deleted - Static variable in class com.cloudant.common.CouchConstants
 
_deleted_conflicts - Static variable in class com.cloudant.common.CouchConstants
 
_design_prefix - Static variable in class com.cloudant.common.CouchConstants
 
_design_prefix_encoded - Static variable in class com.cloudant.common.CouchConstants
 
_id - Static variable in class com.cloudant.common.CouchConstants
 
_local_prefix - Static variable in class com.cloudant.common.CouchConstants
 
_local_prefix_encoded - Static variable in class com.cloudant.common.CouchConstants
 
_local_seq - Static variable in class com.cloudant.common.CouchConstants
 
_rev - Static variable in class com.cloudant.common.CouchConstants
 
_revisions - Static variable in class com.cloudant.common.CouchConstants
 
_revs_info - Static variable in class com.cloudant.common.CouchConstants
 
A B C D E F G H I J K L M N O P Q R S T U V W _ 
Skip navigation links