Package org.apache.cassandra.schema
Class Views
java.lang.Object
org.apache.cassandra.schema.Views
- All Implemented Interfaces:
Iterable<ViewMetadata>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Views.Builderbuilder()booleanGet the materialized view with the specified namegetNullable(String name) Get the view with the specified nameinthashCode()booleanisEmpty()iterator()static Viewsnone()intsize()stream()toString()unbuild()with(ViewMetadata view) Create a MaterializedViews instance with the provided materialized view addedCreates a MaterializedViews instance with the materializedView with the provided name removedwithSwapped(ViewMetadata view) Methods 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
-
unbuild
-
none
-
iterator
- Specified by:
iteratorin interfaceIterable<ViewMetadata>
-
size
public int size() -
isEmpty
public boolean isEmpty() -
forTable
-
stream
-
stream
-
get
Get the materialized view with the specified name- Parameters:
name- a non-qualified materialized view name- Returns:
- an empty
Optionalif the materialized view name is not found; a non-empty optional ofViewMetadataotherwise
-
getNullable
Get the view with the specified name- Parameters:
name- a non-qualified view name- Returns:
- null if the view name is not found; the found
ViewMetadataotherwise
-
with
Create a MaterializedViews instance with the provided materialized view added -
withSwapped
-
without
Creates a MaterializedViews instance with the materializedView with the provided name removed -
equals
-
hashCode
public int hashCode() -
toString
-