internal override P WorkaroundLimitations(GremlinqOptions gremlinqOptions) { if ((gremlinqOptions.GetValue(GremlinqOption.DisabledTextPredicates) & DisabledTextPredicates.Containing) != 0) { throw new ExpressionNotSupportedException(); } return(base.WorkaroundLimitations(gremlinqOptions)); }
public ConfigurableGremlinQuerySourceImpl(string name, IGraphModel model, GremlinqOptions gremlinqOptions, bool isUserSetModel, IGremlinQueryExecutionPipeline pipeline, ImmutableList <IGremlinQueryStrategy> includedStrategies, ImmutableList <string> excludedStrategies, ILogger logger) { Name = name; Model = model; Logger = logger; Options = gremlinqOptions; Pipeline = pipeline; _isUserSetModel = isUserSetModel; IncludedStrategies = includedStrategies; ExcludedStrategyNames = excludedStrategies; }
internal override P WorkaroundLimitations(GremlinqOptions gremlinqOptions) { if ((gremlinqOptions.GetValue(GremlinqOption.DisabledTextPredicates) & DisabledTextPredicates.StartingWith) == 0) { return(base.WorkaroundLimitations(gremlinqOptions)); } var upperBound = Value; if (Value[Value.Length - 1] == char.MaxValue) { upperBound = Value + char.MinValue; } else { var upperBoundChars = Value.ToCharArray(); upperBoundChars[upperBoundChars.Length - 1]++; upperBound = new string(upperBoundChars); } return(new P.Between(Value, upperBound)); }
internal virtual P WorkaroundLimitations(GremlinqOptions gremlinqOptions) { return(this); }