示例#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.");
 }
示例#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));
示例#9
0
 IOutEdgeGremlinQuery <TElement, TNewOutVertex> IEdgeGremlinQueryBase <TElement> .From <TNewOutVertex>(StepLabel <TNewOutVertex> stepLabel) => AddStep <TElement, TNewOutVertex, object, object, object, object>(new FromLabelStep(stepLabel), QuerySemantics.Edge);
示例#10
0
 IBothEdgeGremlinQuery <TElement, TOutVertex, TTargetVertex> IInOrOutEdgeGremlinQueryBase <TElement, TOutVertex> .To <TTargetVertex>(StepLabel <TTargetVertex> stepLabel) => To <TElement, TOutVertex, TTargetVertex>(stepLabel);
示例#11
0
 IValueGremlinQuery <TLabelledElement> IGremlinQueryBase.Select <TLabelledElement>(StepLabel <TLabelledElement> label) => Select(label);
示例#12
0
 public FromLabelStep(StepLabel stepLabel)
 {
     StepLabel = stepLabel;
 }
示例#13
0
 public AggregateStep(StepLabel stepLabel)
 {
     StepLabel = stepLabel;
 }
示例#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);
示例#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));
示例#18
0
 public ToLabelStep(StepLabel stepLabel)
 {
     StepLabel = stepLabel;
 }
 public WhereStepLabelAndPredicateStep(StepLabel stepLabel, P predicate)
 {
     StepLabel = stepLabel;
     Predicate = predicate;
 }
示例#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.");
 }