public class IVSolutionSetDecoder extends Object implements IBindingSetDecoder
|Constructor and Description|
|Modifier and Type||Method and Description|
Stream oriented decode.
Release the state associated with the
public IBindingSet decodeSolution(byte data, int off, int len, boolean resolveCachedValues)
The resolution step can be deferred when the decoded
does not require the resolved
IVCache associations. For example,
we do not need the
IVCache association in order to decide if two
IBindingSets can join. However, once we have a solution from a
join, we may need to resolve the
IVCache metadata for the joined
Note: Solutions MUST be decoded in the encode order because the schema (the set of variables for which bindings have been observed) is assembled incrementally from the decoded solutions and the encoding is sensitive to the order in which the variables are first observed. Also, the presence of the version field in the first solution makes it impossible to re-process a stream of solutions with the same decoder.
data- The encoded IV.
off- The starting offset.
len- The #of bytes of data to be decoded.
true, any decoded
IVs will have their
IVCacheassociation resolved before the
IBindingSetis returned to the caller. When
false, the resolution step is not performed.
public IBindingSet decodeSolution(DataInputBuffer in, boolean resolveCachedValues)
in- The source data.
IVCacheassociations should be resolved as the solutions are decoded.
public void resolveCachedValues(IBindingSet bset)
IVs in the solution for which there are cached
BigdataValues to those values. This method may be used to resolve
IBindingSets NOT produced by
IBindingSetDecoder.decodeSolution(byte, int, int, boolean). For example, when joining a decoded solution with another solution, the resolution step may be deferred until we know whether or not the join was successful.
bset- A solution having
IVs which need to be reunited with their cached
public void release()
public boolean isValueCache()
IVCacheassociations are preserved by the encoder.
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.