Package org.apache.cassandra.schema
Class Triggers
java.lang.Object
org.apache.cassandra.schema.Triggers
- All Implemented Interfaces:
Iterable<TriggerMetadata>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Triggers.Builderbuilder()booleanGet the trigger with the specified nameinthashCode()booleanisEmpty()iterator()static Triggersnone()static Triggersof(Iterable<TriggerMetadata> triggers) static Triggersof(TriggerMetadata... triggers) intsize()toString()with(TriggerMetadata trigger) Create a Triggers instance with the provided trigger addedCreates a Triggers instance with the trigger with the provided name removedMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
builder
-
none
-
of
-
of
-
iterator
- Specified by:
iteratorin interfaceIterable<TriggerMetadata>
-
size
public int size() -
isEmpty
public boolean isEmpty() -
get
Get the trigger with the specified name- Parameters:
name- a non-qualified trigger name- Returns:
- an empty
Optionalif the trigger name is not found; a non-empty optional ofTriggerMetadataotherwise
-
with
Create a Triggers instance with the provided trigger added -
without
Creates a Triggers instance with the trigger with the provided name removed -
equals
-
hashCode
public int hashCode() -
toString
-