public abstract class AttributeChangeBatch extends Object
Represents a container for attribute changes.
Learn more
Modifier | Constructor and Description |
---|---|
protected |
AttributeChangeBatch()
Initializes a new instance of the
AttributeChangeBatch class. |
Modifier and Type | Method and Description |
---|---|
abstract void |
add(String[] paths,
String... attributes)
Adds the specified attributes to the specified indexed documents.
|
abstract void |
add(String path,
String... attributes)
Adds the specified attributes to the specified indexed document.
|
abstract void |
addToAll(String... attributes)
Adds the specified attributes to all documents in the index.
|
abstract void |
clear()
Removes all attributes from all documents in the index.
|
static AttributeChangeBatch |
create()
Initializes a new instance of the
AttributeChangeBatch class. |
abstract void |
remove(String[] paths,
String... attributes)
Removes the specified attributes from the specified indexed documents.
|
abstract void |
remove(String path,
String... attributes)
Removes the specified attributes from the specified indexed document.
|
abstract void |
removeAll(String path)
Removes all attributes from the specified indexed document.
|
abstract void |
removeAll(String[] paths)
Removes all attributes from the specified indexed documents.
|
abstract void |
removeFromAll(String... attributes)
Removes the specified attributes from all documents in the index.
|
protected AttributeChangeBatch()
Initializes a new instance of the AttributeChangeBatch
class.
public static AttributeChangeBatch create()
Initializes a new instance of the AttributeChangeBatch
class.
public abstract void add(String path, String... attributes)
Adds the specified attributes to the specified indexed document.
path
- The document path.attributes
- The attributes to add.public abstract void add(String[] paths, String... attributes)
Adds the specified attributes to the specified indexed documents.
paths
- The documents paths.attributes
- The attributes to add.public abstract void addToAll(String... attributes)
Adds the specified attributes to all documents in the index.
attributes
- The attributes to add.public abstract void remove(String path, String... attributes)
Removes the specified attributes from the specified indexed document.
path
- The document path.attributes
- The attributes to remove.public abstract void remove(String[] paths, String... attributes)
Removes the specified attributes from the specified indexed documents.
paths
- The documents paths.attributes
- The attributes to remove.public abstract void removeAll(String path)
Removes all attributes from the specified indexed document.
path
- The document path.public abstract void removeAll(String[] paths)
Removes all attributes from the specified indexed documents.
paths
- The documents paths.public abstract void removeFromAll(String... attributes)
Removes the specified attributes from all documents in the index.
attributes
- The attributes to remove.public abstract void clear()
Removes all attributes from all documents in the index.