简体   繁体   中英

DataStax/Tinkerpop - Ability to remove a property

I am looking a way to remove a propertyKey in the schema. The documentation here explains how to add properties but no information about the removal. Does that mean that it is not possible?

Since DataStax relies on Cassandra that supports table altering I guess there is some way to achieve that, otherwise how to deal with dynamic schemas where properties can be added or removed?

Edit : For more clarity I want to remove the property both in the schema and in the data. Exactly like the ALTER DROP in SQL:

ALTER TABLE table_name
DROP COLUMN column_name

用于删除数据,架构或图形的DSE图形参考为: http : //docs.datastax.com/en/latest-dse/datastax_enterprise/graph/using/dropSchemaDataStudio.html

As DSE Graph is built on the standards of TinkerPop, you can also leverage the TinkerPop 3 API references here - http://tinkerpop.apache.org/docs/current/reference/#_tinkerpop3 .

For this item, i believe you are looking for .drop(). http://tinkerpop.apache.org/docs/current/reference/#drop-step

From the above link, if you want to remove a property, do this: .properties("X").drop()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM