Package org.apache.cassandra.schema
Class TableMetadataRef
java.lang.Object
org.apache.cassandra.schema.TableMetadataRef
Encapsulates a volatile reference to an immutable
TableMetadata instance.
Used in classes that need up-to-date metadata to avoid the cost of looking up Schema hashmaps.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TableMetadataRefforOfflineTools(TableMetadata metadata) Create a new ref to the passedTableMetadatafor use by offline tools only.get()getLocal()Returns node-local table metadatavoidsetLocalOverrides(TableMetadata metadata) toString()
-
Field Details
-
id
-
keyspace
-
name
-
-
Method Details
-
forOfflineTools
Create a new ref to the passedTableMetadatafor use by offline tools only.- Parameters:
metadata-TableMetadatato reference- Returns:
- a new TableMetadataRef instance linking to the passed
TableMetadata
-
get
-
getLocal
Returns node-local table metadata -
setLocalOverrides
-
toString
-