Package org.apache.cassandra.schema
Class Tables
java.lang.Object
org.apache.cassandra.schema.Tables
- All Implemented Interfaces:
Iterable<TableMetadata>
An immutable container for a keyspace's Tables.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionstatic Tables.Builderbuilder()booleanfilter(Predicate<TableMetadata> predicate) Get the table with the specified namegetNullable(String name) Get the table with the specified namegetNullable(TableId id) inthashCode()iterator()static Tablesnone()static Tablesof(Iterable<TableMetadata> tables) static Tablesof(TableMetadata... tables) intsize()stream()toString()with(TableMetadata table) Create a Tables instance with the provided table addedCreates a Tables instance with the table with the provided name removedwithout(TableMetadata table) withSwapped(TableMetadata table) 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
-
none
-
of
-
of
-
iterator
- Specified by:
iteratorin interfaceIterable<TableMetadata>
-
stream
-
referencingUserType
-
size
public int size() -
get
Get the table with the specified name- Parameters:
name- a non-qualified table name- Returns:
- an empty
Optionalif the table name is not found; a non-empty optional ofTableMetadataRefotherwise
-
getNullable
Get the table with the specified name- Parameters:
name- a non-qualified table name- Returns:
- null if the table name is not found; the found
TableMetadataRefotherwise
-
getNullable
-
filter
-
with
Create a Tables instance with the provided table added -
withSwapped
-
without
Creates a Tables instance with the table with the provided name removed -
without
-
withUpdatedUserType
-
equals
-
hashCode
public int hashCode() -
toString
-