Esempio n. 1
0
        TQuery IGremlinQueryBase.Select <TQuery, TStepElement>(StepLabel <TQuery, TStepElement> label)
        {
            if (Steps.LastOrDefault() is AsStep asStep && asStep.StepLabels.Contains(label))
            {
                return(ChangeQueryType <TQuery>());
            }

            return(this
                   .Select(label)
                   .ChangeQueryType <TQuery>());
        }
 IInEdgeGremlinQuery <TElement, TNewInVertex> IEdgeGremlinQuery <TElement> .To <TNewInVertex>(StepLabel <TNewInVertex> stepLabel) => To <TElement, Unit, TNewInVertex>(stepLabel);
 IGremlinQuery <TStep> IGremlinQuery.Select <TStep>(StepLabel <TStep> label) => Select <TStep>(label);
 TQuery IGremlinQuery.Select <TQuery, TStepElement>(StepLabel <TQuery, TStepElement> label)
 {
     return(this
            .Select <TStepElement>(label)
            .ChangeQueryType <TQuery>());
 }
 public static bool Contains <TElement>(this StepLabel <TElement[]> stepLabel, TElement element)
 {
     throw new InvalidOperationException($"{nameof(StepLabelExtensions)}.{nameof(Contains)} is not intended to be executed. It's use is only valid within expressions.");
 }
Esempio n. 6
0
 public AggregateStep(Scope scope, StepLabel stepLabel)
 {
     Scope     = scope;
     StepLabel = stepLabel;
 }
 IOutEdgeGremlinQuery <TElement, TNewOutVertex> IEdgeGremlinQueryBase <TElement> .From <TNewOutVertex>(StepLabel <TNewOutVertex> stepLabel) => From <TElement, TNewOutVertex, TInVertex>(stepLabel);
 IEdgeGremlinQuery <TElement, TTargetVertex, TOutVertex> IEdgeGremlinQuery <TElement, TOutVertex> .From <TTargetVertex>(StepLabel <TTargetVertex> stepLabel) => AddStep <TElement, TTargetVertex, TOutVertex, Unit, Unit, Unit>(new FromLabelStep(stepLabel));
Esempio n. 9
0
 IOutEdgeGremlinQuery <TElement, TNewOutVertex> IEdgeGremlinQueryBase <TElement> .From <TNewOutVertex>(StepLabel <TNewOutVertex> stepLabel) => AddStep <TElement, TNewOutVertex, object, object, object, object>(new FromLabelStep(stepLabel), QuerySemantics.Edge);
Esempio n. 10
0
 IBothEdgeGremlinQuery <TElement, TOutVertex, TTargetVertex> IInOrOutEdgeGremlinQueryBase <TElement, TOutVertex> .To <TTargetVertex>(StepLabel <TTargetVertex> stepLabel) => To <TElement, TOutVertex, TTargetVertex>(stepLabel);
Esempio n. 11
0
 IValueGremlinQuery <TLabelledElement> IGremlinQueryBase.Select <TLabelledElement>(StepLabel <TLabelledElement> label) => Select(label);
Esempio n. 12
0
 public FromLabelStep(StepLabel stepLabel)
 {
     StepLabel = stepLabel;
 }
Esempio n. 13
0
 public AggregateStep(StepLabel stepLabel)
 {
     StepLabel = stepLabel;
 }
Esempio n. 14
0
 public StepLabelExpressionFragment(StepLabel stepLabel, Expression?expression = default) : base(stepLabel, expression)
 {
 }
 IEdgeGremlinQuery <TElement, TOutVertex, TTargetVertex> IEdgeGremlinQuery <TElement, TOutVertex> .To <TTargetVertex>(StepLabel <TTargetVertex> stepLabel) => To <TElement, TOutVertex, TTargetVertex>(stepLabel);
Esempio n. 16
0
 IBothEdgeGremlinQuery <TElement, TTargetVertex, TOutVertex> IInOrOutEdgeGremlinQueryBase <TElement, TOutVertex> .From <TTargetVertex>(StepLabel <TTargetVertex> stepLabel) => AddStep <TElement, TTargetVertex, TOutVertex, object, object, object>(new FromLabelStep(stepLabel), QuerySemantics.Edge);
 IOutEdgeGremlinQuery <TElement, TNewOutVertex> IEdgeGremlinQuery <TElement> .From <TNewOutVertex>(StepLabel <TNewOutVertex> stepLabel) => AddStep <TElement, TNewOutVertex, Unit, Unit, Unit, Unit>(new FromLabelStep(stepLabel));
Esempio n. 18
0
 public ToLabelStep(StepLabel stepLabel)
 {
     StepLabel = stepLabel;
 }
 public WhereStepLabelAndPredicateStep(StepLabel stepLabel, P predicate)
 {
     StepLabel = stepLabel;
     Predicate = predicate;
 }
Esempio n. 20
0
 public static bool Contains <TSource>(this IEnumerable <TSource> source, StepLabel <TSource> stepLabel)
 {
     throw new InvalidOperationException($"{nameof(EnumerableExtensions)}.{nameof(Contains)} is not intended to be executed. It's use is only valid within expressions.");
 }