public interface DseGraphTableMetadata extends DseTableMetadata
This type only exists to avoid breaking binary compatibility. When the driver is connected to
a DSE cluster, all the TableMetadata
instances it returns can be safely downcast to this
interface.
Modifier and Type | Method and Description |
---|---|
default String |
describe(boolean pretty)
Returns a single CQL statement that creates the element.
|
Optional<DseEdgeMetadata> |
getEdge()
The edge metadata if this table represents an edge in graph, otherwise empty.
|
Optional<DseVertexMetadata> |
getVertex()
The vertex metadata if this table represents a vertex in graph, otherwise empty.
|
describeWithChildren, getIndex, getIndex, getIndexes, isCompactStorage, isVirtual
getClusteringColumns, getColumn, getColumn, getColumns, getId, getKeyspace, getName, getOptions, getPartitionKey, getPrimaryKey
@NonNull Optional<DseVertexMetadata> getVertex()
This is mutually exclusive with getEdge()
.
@NonNull Optional<DseEdgeMetadata> getEdge()
This is mutually exclusive with getVertex()
.
@NonNull default String describe(boolean pretty)
Describable
describe
in interface Describable
describe
in interface TableMetadata
pretty
- if true
, make the output more human-readable (line breaks, indents, and
pretty identifiers
). If false
, return the
statement on a single line with minimal formatting.Copyright © 2017–2020. All rights reserved.