Package com.yahoo.vespa.http.client
Class Result
- java.lang.Object
-
- com.yahoo.vespa.http.client.Result
-
@Deprecated public class Result extends Object
Deprecated.Vespa-http-client will be removed in Vespa 8. It's replaced by vespa-feed-clientThe result of a stream operation. A Result refers to a single document, but may contain more than one Result.Detail instances, as these pertains to a single endpoint, and a Result may wrap data for multiple endpoints.- Author:
- Einar M R Rosenvinge
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Result.Detail
Deprecated.Information in a Result for a single operation sent to a single endpoint.static class
Result.ResultType
Deprecated.
-
Constructor Summary
Constructors Constructor Description Result(Document document, Collection<Result.Detail> values, StringBuilder localTrace)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Object
getContext()
Deprecated.Returns the context of the object if anyList<Result.Detail>
getDetails()
Deprecated.CharSequence
getDocumentDataAsCharSequence()
Deprecated.Returns the document dataString
getDocumentId()
Deprecated.Returns the document id that this result is forString
getOperationId()
Deprecated.Returns the id of the operation this is the result ofboolean
hasLocalTrace()
Deprecated.Returns whether the operation has been set up with local tracingboolean
isSuccess()
Deprecated.Returns true if the operation(s) was successful.boolean
isSuccessOrConditionNotMet()
Deprecated.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
Result
public Result(Document document, Collection<Result.Detail> values, StringBuilder localTrace)
Deprecated.
-
-
Method Detail
-
getDocumentId
public String getDocumentId()
Deprecated.Returns the document id that this result is for
-
getOperationId
public String getOperationId()
Deprecated.Returns the id of the operation this is the result of
-
getDocumentDataAsCharSequence
public CharSequence getDocumentDataAsCharSequence()
Deprecated.Returns the document data
-
getContext
public Object getContext()
Deprecated.Returns the context of the object if any
-
isSuccess
public boolean isSuccess()
Deprecated.Returns true if the operation(s) was successful. If at least oneResult.Detail
ingetDetails()
is unsuccessful, this will return false.
-
isSuccessOrConditionNotMet
public boolean isSuccessOrConditionNotMet()
Deprecated.
-
getDetails
public List<Result.Detail> getDetails()
Deprecated.
-
hasLocalTrace
public boolean hasLocalTrace()
Deprecated.Returns whether the operation has been set up with local tracing
-
-