Class BulkUpdate
java.lang.Object
me.lucko.luckperms.common.bulkupdate.BulkUpdate
Represents a query to be applied to a set of data.
Queries can either be applied to im-memory sets of data, or converted to SQL syntax to be executed remotely.
-
Constructor Summary
ConstructorsConstructorDescriptionBulkUpdate(DataType dataType, BulkUpdateAction action, FilterList<net.luckperms.api.node.Node> filters, boolean trackStatistics) -
Method Summary
Modifier and TypeMethodDescription@Nullable Set<net.luckperms.api.node.Node> apply(Set<net.luckperms.api.node.Node> nodes, HolderType holderType) Applies this query to the given set of nodes, and returns the result.booleanFilterList<net.luckperms.api.node.Node> inthashCode()booleanbooleansatisfiesFilters(net.luckperms.api.node.Node node) Check to see if a Node instance satisfies the constraints of this querytoString()
-
Constructor Details
-
BulkUpdate
public BulkUpdate(DataType dataType, BulkUpdateAction action, FilterList<net.luckperms.api.node.Node> filters, boolean trackStatistics)
-
-
Method Details
-
satisfiesFilters
public boolean satisfiesFilters(net.luckperms.api.node.Node node) Check to see if a Node instance satisfies the constraints of this query- Parameters:
node- the node to check- Returns:
- true if satisfied
-
apply
public @Nullable Set<net.luckperms.api.node.Node> apply(Set<net.luckperms.api.node.Node> nodes, HolderType holderType) Applies this query to the given set of nodes, and returns the result.- Parameters:
nodes- the input nodesholderType- the holder type the nodes are from- Returns:
- the transformed nodes, or null if no change was made
-
getDataType
-
getAction
-
getFilters
-
isTrackingStatistics
public boolean isTrackingStatistics() -
getStatistics
-
equals
-
hashCode
-
toString
-