public interface AsyncObjects<T> extends AsyncBaseIndex<T>
| Modifier and Type | Method and Description |
|---|---|
default CompletableFuture<AsyncTaskIndexing> |
addObject(String objectID,
T object)
Add an object in this index with a unique identifier
|
default CompletableFuture<AsyncTaskIndexing> |
addObject(String objectID,
T object,
RequestOptions requestOptions)
Add an object in this index with a unique identifier
|
default CompletableFuture<AsyncTaskIndexing> |
addObject(T object)
Add an object in this index
|
default CompletableFuture<AsyncTaskIndexing> |
addObject(T object,
RequestOptions requestOptions)
Add an object in this index
|
default CompletableFuture<AsyncTaskSingleIndex> |
addObjects(List<T> objects)
Add several objects
|
default CompletableFuture<AsyncTaskSingleIndex> |
addObjects(List<T> objects,
RequestOptions requestOptions)
Add several objects
|
default CompletableFuture<AsyncTask> |
deleteObject(String objectID)
Delete an object from the index
|
default CompletableFuture<AsyncTask> |
deleteObject(String objectID,
RequestOptions requestOptions)
Delete an object from the index
|
default CompletableFuture<AsyncTaskSingleIndex> |
deleteObjects(List<String> objectIDs)
Delete objects from the index
|
default CompletableFuture<AsyncTaskSingleIndex> |
deleteObjects(List<String> objectIDs,
RequestOptions requestOptions)
Delete objects from the index
|
default CompletableFuture<Optional<T>> |
getObject(String objectID)
Get an object from this index
|
default CompletableFuture<Optional<T>> |
getObject(String objectID,
RequestOptions requestOptions)
Get an object from this index
|
default CompletableFuture<List<T>> |
getObjects(List<String> objectIDs)
Get several objects from this index
|
default CompletableFuture<List<T>> |
getObjects(List<String> objectIDs,
List<String> attributesToRetrieve)
Get several objects from this index
|
default CompletableFuture<List<T>> |
getObjects(List<String> objectIDs,
List<String> attributesToRetrieve,
RequestOptions requestOptions)
Get several objects from this index
|
default CompletableFuture<List<T>> |
getObjects(List<String> objectIDs,
RequestOptions requestOptions)
Get several objects from this index
|
default CompletableFuture<AsyncTask> |
saveObject(String objectID,
T object)
Override the content of object
|
default CompletableFuture<AsyncTask> |
saveObject(String objectID,
T object,
RequestOptions requestOptions)
Override the content of object
|
default CompletableFuture<AsyncTaskSingleIndex> |
saveObjects(List<T> objects)
Override the content the list of objects
|
default CompletableFuture<AsyncTaskSingleIndex> |
saveObjects(List<T> objects,
RequestOptions requestOptions)
Override the content the list of objects
|
getApiClientgetKlass, getNamedefault CompletableFuture<AsyncTaskIndexing> addObject(@Nonnull T object)
object - object to adddefault CompletableFuture<AsyncTaskIndexing> addObject(@Nonnull T object, @Nonnull RequestOptions requestOptions)
object - object to addrequestOptions - Options to pass to this requestdefault CompletableFuture<AsyncTaskIndexing> addObject(@Nonnull String objectID, @Nonnull T object)
objectID - the objectID associated to this object (if this objectID already exist the old
object will be overridden)object - object to adddefault CompletableFuture<AsyncTaskIndexing> addObject(@Nonnull String objectID, @Nonnull T object, @Nonnull RequestOptions requestOptions)
objectID - the objectID associated to this object (if this objectID already exist the old
object will be overridden)object - object to addrequestOptions - Options to pass to this requestdefault CompletableFuture<AsyncTaskSingleIndex> addObjects(@Nonnull List<T> objects)
objects - objects to adddefault CompletableFuture<AsyncTaskSingleIndex> addObjects(@Nonnull List<T> objects, @Nonnull RequestOptions requestOptions)
objects - objects to addrequestOptions - Options to pass to this requestdefault CompletableFuture<Optional<T>> getObject(@Nonnull String objectID)
objectID - the unique identifier of the object to retrievedefault CompletableFuture<Optional<T>> getObject(@Nonnull String objectID, @Nonnull RequestOptions requestOptions)
objectID - the unique identifier of the object to retrieverequestOptions - Options to pass to this requestdefault CompletableFuture<List<T>> getObjects(@Nonnull List<String> objectIDs)
objectIDs - the list of unique identifier of objects to retrievedefault CompletableFuture<List<T>> getObjects(@Nonnull List<String> objectIDs, @Nonnull RequestOptions requestOptions)
objectIDs - the list of unique identifier of objects to retrieverequestOptions - Options to pass to this requestdefault CompletableFuture<List<T>> getObjects(@Nonnull List<String> objectIDs, @Nonnull List<String> attributesToRetrieve)
objectIDs - the list of unique identifier of objects to retrieveattributesToRetrieve - the list of attributes to retrieve for these objectsdefault CompletableFuture<List<T>> getObjects(@Nonnull List<String> objectIDs, @Nonnull List<String> attributesToRetrieve, @Nonnull RequestOptions requestOptions)
objectIDs - the list of unique identifier of objects to retrieveattributesToRetrieve - the list of attributes to retrieve for these objectsrequestOptions - Options to pass to this requestdefault CompletableFuture<AsyncTask> saveObject(@Nonnull String objectID, @Nonnull T object)
objectID - the unique identifier of the object to retrieveobject - the object to updatedefault CompletableFuture<AsyncTask> saveObject(@Nonnull String objectID, @Nonnull T object, @Nonnull RequestOptions requestOptions)
objectID - the unique identifier of the object to retrieveobject - the object to updaterequestOptions - Options to pass to this requestdefault CompletableFuture<AsyncTaskSingleIndex> saveObjects(@Nonnull List<T> objects)
objects - the list objects to updatedefault CompletableFuture<AsyncTaskSingleIndex> saveObjects(@Nonnull List<T> objects, @Nonnull RequestOptions requestOptions)
objects - the list objects to updaterequestOptions - Options to pass to this requestdefault CompletableFuture<AsyncTask> deleteObject(@Nonnull String objectID)
objectID - the unique identifier of the object to retrievedefault CompletableFuture<AsyncTask> deleteObject(@Nonnull String objectID, @Nonnull RequestOptions requestOptions)
objectID - the unique identifier of the object to retrieverequestOptions - Options to pass to this requestdefault CompletableFuture<AsyncTaskSingleIndex> deleteObjects(@Nonnull List<String> objectIDs)
objectIDs - the list of unique identifier of the object to retrievedefault CompletableFuture<AsyncTaskSingleIndex> deleteObjects(@Nonnull List<String> objectIDs, @Nonnull RequestOptions requestOptions)
objectIDs - the list of unique identifier of the object to retrieverequestOptions - Options to pass to this requestCopyright © 2018. All rights reserved.