/*
* Copyright DataStax, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.datastax.dse.driver.api.core.metadata.schema;
import com.datastax.oss.driver.api.core.CqlIdentifier;
import edu.umd.cs.findbugs.annotations.NonNull;
import java.util.List;
Edge metadata, for a table that was created with CREATE TABLE ... WITH EDGE LABEL. /** Edge metadata, for a table that was created with CREATE TABLE ... WITH EDGE LABEL. */
public interface DseEdgeMetadata {
The label of the edge in graph. /** The label of the edge in graph. */
@NonNull
CqlIdentifier getLabelName();
The identifier of the table representing the incoming vertex. /** The identifier of the table representing the incoming vertex. */
@NonNull
CqlIdentifier getFromTable();
The label of the incoming vertex in graph. /** The label of the incoming vertex in graph. */
@NonNull
CqlIdentifier getFromLabel();
The columns in this table that match the partition key of the incoming vertex table. /** The columns in this table that match the partition key of the incoming vertex table. */
@NonNull
List<CqlIdentifier> getFromPartitionKeyColumns();
The columns in this table that match the clustering columns of the incoming vertex table. /** The columns in this table that match the clustering columns of the incoming vertex table. */
@NonNull
List<CqlIdentifier> getFromClusteringColumns();
The identifier of the table representing the outgoing vertex. /** The identifier of the table representing the outgoing vertex. */
@NonNull
CqlIdentifier getToTable();
The label of the outgoing vertex in graph. /** The label of the outgoing vertex in graph. */
@NonNull
CqlIdentifier getToLabel();
The columns in this table that match the partition key of the outgoing vertex table. /** The columns in this table that match the partition key of the outgoing vertex table. */
@NonNull
List<CqlIdentifier> getToPartitionKeyColumns();
The columns in this table that match the clustering columns of the outgoing vertex table. /** The columns in this table that match the clustering columns of the outgoing vertex table. */
@NonNull
List<CqlIdentifier> getToClusteringColumns();
}