Exemplo n.º 1
0
 /// <summary>
 /// Creates a new query result
 /// </summary>
 /// <param name="myQuery">The query that has been executed</param>
 /// <param name="myQLName">The name of the query language that has been executed</param>
 /// <param name="myDuration">The time that was spent on executing the query</param>
 /// <param name="myVertices">The vertices that should be available within the query result</param>
 /// <param name="myError">The error which occured during execution</param>
 public QueryResult(String myQuery,
                    String myQLName,
                    UInt64 myDuration,
                    ResultType myResultType,
                    IEnumerable <IVertexView> myVertices,
                    ASonesException myError)
 {
     TypeOfResult        = myResultType;
     Vertices            = myVertices ?? new List <IVertexView>();
     Query               = myQuery;
     NameOfQuerylanguage = myQLName;
     Duration            = myDuration;
     Error               = myError;
 }
Exemplo n.º 2
0
 public static QueryResult Failure(String myQuery, String myQLName, ASonesException myError, IEnumerable <IVertexView> myVertices = null, UInt64 myDuration = 0UL)
 {
     return(new QueryResult(myQuery, myQLName, myDuration, ResultType.Failed, myVertices, myError));
 }