public interface IBindingSetDecoder
IBindingSets comprised of IVs.IBindingSetEncoder| Modifier and Type | Method and Description |
|---|---|
IBindingSet |
decodeSolution(byte[] val,
int off,
int len,
boolean resolveCachedValues)
Decode an
IBindingSet. |
boolean |
isValueCache()
Return
true iff the IVCache associations are
preserved by the encoder. |
void |
release()
Release the state associated with the
IVBindingSetDecoder. |
void |
resolveCachedValues(IBindingSet bset)
Resolve any
IVs in the solution for which there are cached
BigdataValues to those values. |
boolean isValueCache()
true iff the IVCache associations are
preserved by the encoder.IBindingSet decodeSolution(byte[] val, int off, int len, boolean resolveCachedValues)
IBindingSet.
The resolution step can be deferred when the decoded IBindingSet
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
solution.
val - The encoded IV[].off - The starting offset.len - The #of bytes of data to be decoded.resolveCachedValues - When true, any decoded IVs will have
their IVCache association resolved before the
IBindingSet is returned to the caller. When
false, the resolution step is not performed.IBindingSet.resolveCachedValues(IBindingSet)void resolveCachedValues(IBindingSet bset)
IVs in the solution for which there are cached
BigdataValues to those values. This method may be used to resolve
IVCache associations for IBindingSets NOT produced by
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 BigdataValues.void release()
IVBindingSetDecoder.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.