Package org.apache.cassandra.schema
Class Types
java.lang.Object
org.apache.cassandra.schema.Types
An immutable container for a keyspace's UDTs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Method Summary
Modifier and TypeMethodDescriptionstatic Types.Builderbuilder()booleanget(ByteBuffer name) Get the type with the specified namegetNullable(ByteBuffer name) Get the type with the specified nameinthashCode()booleanisEmpty()iterator()static Typesnone()static Typesstatic Types.RawBuilderrawBuilder(String keyspace) Returns a stream of user types sorted by dependenciesstream()toString()Create a Types instance with the provided type addedwithout(ByteBuffer name) Creates a Types instance with the type 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
-
rawBuilder
-
none
-
of
-
iterator
-
stream
-
sortedStream
Returns a stream of user types sorted by dependencies- Returns:
- a stream of user types sorted by dependencies
-
referencingUserType
-
isEmpty
public boolean isEmpty() -
get
Get the type with the specified name -
getNullable
Get the type with the specified name- Parameters:
name- a non-qualified type name- Returns:
- null if the type name is not found; the found
UserTypeotherwise
-
with
Create a Types instance with the provided type added -
without
Creates a Types instance with the type with the provided name removed -
without
-
withUpdatedUserType
-
equals
-
hashCode
public int hashCode() -
toString
-