All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.datastax.dse.driver.internal.core.graph.DefaultFluentGraphStatement Maven / Gradle / Ivy
/*
* Copyright DataStax, Inc.
*
* This software can be used solely with DataStax Enterprise. Please consult the license at
* http://www.datastax.com/terms/datastax-dse-driver-license-terms
*/
package com.datastax.dse.driver.internal.core.graph;
import com.datastax.dse.driver.api.core.graph.FluentGraphStatement;
import com.datastax.oss.driver.api.core.ConsistencyLevel;
import com.datastax.oss.driver.api.core.config.DriverExecutionProfile;
import com.datastax.oss.driver.api.core.metadata.Node;
import edu.umd.cs.findbugs.annotations.NonNull;
import java.nio.ByteBuffer;
import java.time.Duration;
import java.util.Map;
import net.jcip.annotations.Immutable;
import org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal;
@Immutable
public class DefaultFluentGraphStatement extends GraphStatementBase
implements FluentGraphStatement {
private final GraphTraversal traversal;
public DefaultFluentGraphStatement(
GraphTraversal traversal,
Boolean isIdempotent,
Duration timeout,
Node node,
long timestamp,
DriverExecutionProfile executionProfile,
String executionProfileName,
Map customPayload,
String graphName,
String traversalSource,
String subProtocol,
ConsistencyLevel consistencyLevel,
ConsistencyLevel readConsistencyLevel,
ConsistencyLevel writeConsistencyLevel) {
super(
isIdempotent,
timeout,
node,
timestamp,
executionProfile,
executionProfileName,
customPayload,
graphName,
traversalSource,
subProtocol,
consistencyLevel,
readConsistencyLevel,
writeConsistencyLevel);
this.traversal = traversal;
}
@Override
protected FluentGraphStatement newInstance(
Boolean isIdempotent,
Duration timeout,
Node node,
long timestamp,
DriverExecutionProfile executionProfile,
String executionProfileName,
Map customPayload,
String graphName,
String traversalSource,
String subProtocol,
ConsistencyLevel consistencyLevel,
ConsistencyLevel readConsistencyLevel,
ConsistencyLevel writeConsistencyLevel) {
return new DefaultFluentGraphStatement(
traversal,
isIdempotent,
timeout,
node,
timestamp,
executionProfile,
executionProfileName,
customPayload,
graphName,
traversalSource,
subProtocol,
consistencyLevel,
readConsistencyLevel,
writeConsistencyLevel);
}
@NonNull
@Override
public GraphTraversal getTraversal() {
return traversal;
}
}