protected GremlinQuery(IGraphModel model, IGremlinQueryExecutor queryExecutor, IImmutableList <Step> steps, IImmutableDictionary <StepLabel, string> stepLabelBindings, ILogger logger) { Model = model; Steps = steps; Logger = logger; QueryExecutor = queryExecutor; StepLabelMappings = stepLabelBindings; }
public GremlinQueryExecutionPipelineImpl( IGremlinQuerySerializer serializer, IGremlinQueryExecutor executor, IGremlinQueryExecutionResultDeserializer deserializer) { Executor = executor; Serializer = serializer; Deserializer = deserializer; }
public ConfigurableGremlinQuerySourceImpl(string name, IGraphModel model, bool isUserSetModel, IGremlinQueryExecutor queryExecutor, ImmutableList <IGremlinQueryStrategy> includedStrategies, ImmutableList <string> excludedStrategies, ILogger logger) { Name = name; Model = model; Logger = logger; Executor = queryExecutor; _isUserSetModel = isUserSetModel; ExcludedStrategyNames = excludedStrategies; IncludedStrategies = includedStrategies; }
public GremlinQueryEnvironmentImpl( IGraphModel model, IGremlinQuerySerializer serializer, IGremlinQueryExecutor executor, IGremlinQueryExecutionResultDeserializer deserializer, IGremlinQueryDebugger debugger, IFeatureSet featureSet, IGremlinqOptions options, ILogger logger) { Model = model; Logger = logger; Options = options; Executor = executor; Debugger = debugger; FeatureSet = featureSet; Serializer = serializer; Deserializer = deserializer; }
public TransformResultGremlinQueryExecutor(IGremlinQueryExecutor baseExecutor, Func <IAsyncEnumerable <object>, IAsyncEnumerable <object> > transformation) { _transformation = transformation; _baseExecutor = baseExecutor; }
public TransformQueryGremlinQueryExecutor(IGremlinQueryExecutor baseExecutor, Func <object, object> transformation) { _transformation = transformation; _baseExecutor = baseExecutor; }
public static IGremlinQuerySource WithExecutor(this IGremlinQuerySource source, IGremlinQueryExecutor executor) { return(source.ConfigureEnvironment(env => env .ConfigureExecutionPipeline(pipeline => pipeline .UseSerializer(GremlinQuerySerializer.Default) .UseExecutor(executor) .UseDeserializer(GremlinQueryExecutionResultDeserializer.Graphson)))); }
public static IGremlinQueryExecutionPipeline UseExecutor(this IGremlinQueryExecutionPipeline pipeline, IGremlinQueryExecutor executor) { return(pipeline.ConfigureExecutor(_ => executor)); }
public IGremlinQueryExecutionPipeline UseExecutor(IGremlinQueryExecutor executor) { return(new GremlinQueryExecutionPipelineImpl(Serializer, executor, GremlinQueryExecutionResultDeserializer.Invalid)); }
internal static IGremlinQuery <TElement> Create <TElement>(IGraphModel model, IGremlinQueryExecutor queryExecutor, string graphName = null, ILogger logger = null) { return(new GremlinQuery <TElement, Unit, Unit, Unit, Unit, Unit>( model, queryExecutor, graphName != null ? ImmutableList <Step> .Empty.Add(IdentifierStep.Create(graphName)) : ImmutableList <Step> .Empty, ImmutableDictionary <StepLabel, string> .Empty, logger)); }
public TransformExecutionExceptionGremlinQueryExecutor(IGremlinQueryExecutor baseExecutor, Func <Exception, Exception> exceptionTransformation) { _baseExecutor = baseExecutor; _exceptionTransformation = exceptionTransformation; }
public static IGremlinQueryExecutor InterceptQuery(this IGremlinQueryExecutor baseExecutor, Func <object, object> transformation) => new QueryInterceptingGremlinQueryExecutor(baseExecutor, transformation);
public static IGremlinQueryExecutor InterceptResult(this IGremlinQueryExecutor baseExecutor, Func <IAsyncEnumerable <object>, IAsyncEnumerable <object> > transformation) => new ResultInterceptingGremlinQueryExecutor(baseExecutor, transformation);
public QueryInterceptingGremlinQueryExecutor(IGremlinQueryExecutor baseExecutor, Func <object, object> transformation) { _transformation = transformation; _baseExecutor = baseExecutor; }
public LoggingGremlinQueryExecutor(IGremlinQueryExecutor executor) { _executor = executor; }
public ExponentialBackoffExecutor(IGremlinQueryExecutor baseExecutor, Func <int, ResponseException, bool> shouldRetry) { _baseExecutor = baseExecutor; _shouldRetry = shouldRetry; }
IConfigurableGremlinQuerySource IConfigurableGremlinQuerySource.WithExecutor(IGremlinQueryExecutor executor) { return(new ConfigurableGremlinQuerySourceImpl(Name, Model, _isUserSetModel, executor, IncludedStrategies, ExcludedStrategyNames, Logger)); }
internal static IGremlinQuery <Unit> Create(IGraphModel model, IGremlinQueryExecutor queryExecutor, string graphName = null, ILogger logger = null) { return(Create <Unit>(model, queryExecutor, graphName, logger)); }
public TransformQueryGremlinQueryExecutor(IGremlinQueryExecutor baseExecutor, Func <ISerializedGremlinQuery, ISerializedGremlinQuery> transformation) { _transformation = transformation; _baseExecutor = baseExecutor; }
public static IConfigurableGremlinQuerySource WithExecutor(this IConfigurableGremlinQuerySource source, IGremlinQueryExecutor <GroovySerializedGremlinQuery, JToken> executor) { return(source.UseExecutionPipeline(conf => conf .UseGroovySerialization() .UseExecutor(executor) .UseGraphsonDeserialization())); }
public static IGremlinQueryEnvironment UseExecutor(this IGremlinQueryEnvironment environment, IGremlinQueryExecutor executor) => environment.ConfigureExecutor(_ => executor);
public static IConfigurableGremlinQuerySource WithExecutor(this IConfigurableGremlinQuerySource source, IGremlinQueryExecutor executor) { return(source.ConfigureExecutionPipeline(pipeline => pipeline .UseSerializer(GremlinQuerySerializer.Groovy) .UseExecutor(executor) .UseDeserializer(GremlinQueryExecutionResultDeserializer.Graphson))); }