public interface Store| Modifier and Type | Method and Description |
|---|---|
void | add(java.lang.String chunk, ChunkMeta chunkMeta, java.lang.String path, IndexMeta indexMeta, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)Add a chunk to the store |
void | appendTags(java.lang.String search, java.lang.String path, java.util.List<java.lang.String> tags, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)Append tags to of a list of chunks selected by search and path |
void | delete(java.lang.String search, java.lang.String path, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)Delete all chunks from the store that match a given query |
void | get(java.lang.String search, java.lang.String path, io.vertx.core.Handler<io.vertx.core.AsyncResult<StoreCursor>> handler)Get a number of chunks from the store using quick-search |
void | getAttributeValues(java.lang.String search, java.lang.String path, java.lang.String attribute, io.vertx.core.Handler<io.vertx.core.AsyncResult<AsyncCursor<java.lang.String>>> handler)Get all values for the specified attribute |
void | getOne(java.lang.String path, io.vertx.core.Handler<io.vertx.core.AsyncResult<ChunkReadStream>> handler)Get a chunk from the store. |
void | getPropertyValues(java.lang.String search, java.lang.String path, java.lang.String property, io.vertx.core.Handler<io.vertx.core.AsyncResult<AsyncCursor<java.lang.String>>> handler)Get all values for the specified property |
void | removeProperties(java.lang.String search, java.lang.String path, java.util.List<java.lang.String> properties, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)Remove the properties of a list of chunks selected by search and path |
void | removeTags(java.lang.String search, java.lang.String path, java.util.List<java.lang.String> tags, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)Remove the tags of a list of chunks selected by search and path |
void | scroll(java.lang.String scrollId, io.vertx.core.Handler<io.vertx.core.AsyncResult<StoreCursor>> handler)Continue scrolling with a given scrollId |
void | scroll(java.lang.String search, java.lang.String path, int size, io.vertx.core.Handler<io.vertx.core.AsyncResult<StoreCursor>> handler)Start scrolling but load only one frame. |
void | setProperties(java.lang.String search, java.lang.String path, java.util.Map<java.lang.String,java.lang.String> properties, io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)Set the properties of a list of chunks selected by search and path |
void add(java.lang.String chunk,
ChunkMeta chunkMeta,
java.lang.String path,
IndexMeta indexMeta,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)chunk - the chunk to addchunkMeta - the chunk's metadatapath - the path where the chunk should be stored (may be null)indexMeta - metadata affecting the way the chunk will be indexedhandler - will be called when the chunk has been added to the storevoid getOne(java.lang.String path,
io.vertx.core.Handler<io.vertx.core.AsyncResult<ChunkReadStream>> handler)ChunkReadStream must be closed after use to release all resources.path - the absolute path to the chunkhandler - will be called when the chunk has been retrieved from the storevoid delete(java.lang.String search,
java.lang.String path,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)search - the search querypath - the path where to search for the chunks (may be null)handler - will be called when the chunk has been deletedvoid get(java.lang.String search,
java.lang.String path,
io.vertx.core.Handler<io.vertx.core.AsyncResult<StoreCursor>> handler)search - the search querypath - the path where to search for the chunks (may be null)handler - will be called when the chunks have been retrieved from the storevoid scroll(java.lang.String search,
java.lang.String path,
int size,
io.vertx.core.Handler<io.vertx.core.AsyncResult<StoreCursor>> handler)search - the search querypath - the path where to search for the chunks (may be null)handler - will be called when the chunks have been retrieved from the storesize - the number of elements to load.void scroll(java.lang.String scrollId,
io.vertx.core.Handler<io.vertx.core.AsyncResult<StoreCursor>> handler)scrollId - The scrollId to load the chunkshandler - will be called when the chunks have been retrieved from the storevoid getAttributeValues(java.lang.String search,
java.lang.String path,
java.lang.String attribute,
io.vertx.core.Handler<io.vertx.core.AsyncResult<AsyncCursor<java.lang.String>>> handler)search - the search querypath - the path where to search for the values (may be null)attribute - the name of the attributehandler - will be called when the values have been retrieved from the storevoid getPropertyValues(java.lang.String search,
java.lang.String path,
java.lang.String property,
io.vertx.core.Handler<io.vertx.core.AsyncResult<AsyncCursor<java.lang.String>>> handler)search - the search querypath - the path where to search for the values (may be null)property - the name of the propertyhandler - will be called when the values have been retrieved from the storevoid setProperties(java.lang.String search,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> properties,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)search - the search querypath - the path where to search for the values (may be null)properties - the list of properties to sethandler - will be called when the properties are setvoid removeProperties(java.lang.String search,
java.lang.String path,
java.util.List<java.lang.String> properties,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)search - the search querypath - the path where to search for the values (may be null)properties - the list of properties to removehandler - will be called when the properties are removedvoid appendTags(java.lang.String search,
java.lang.String path,
java.util.List<java.lang.String> tags,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)search - the search querypath - the path where to search for the values (may be null)tags - the list of tags to appendhandler - will be called when the tags are appendedvoid removeTags(java.lang.String search,
java.lang.String path,
java.util.List<java.lang.String> tags,
io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>> handler)search - the search querypath - the path where to search for the values (may be null)tags - the list of tags to removehandler - will be called when the tags are removed