Class DbArrayChunkAdapter<ATTR extends Attributes.Any>

java.lang.Object
com.illumon.iris.db.v2.select.DbArrayChunkAdapter<ATTR>
All Implemented Interfaces:
ChunkSource<ATTR>, ChunkSource.WithPrev<ATTR>, DefaultChunkSource<ATTR>, DefaultChunkSource.WithPrev<ATTR>, FillContextMaker, GetContextMaker

public class DbArrayChunkAdapter<ATTR extends Attributes.Any>
extends Object
implements DefaultChunkSource.WithPrev<ATTR>
This class wraps an inner ChunkSource holding a DbArray. The purpose of doing so is to apply DbArray#getDirect to the underlying DbArray values returned by the underlying ChunkSource. This is the strategy for implementing this class: makeGetContext() - doesn't need to change. The default implementation in our parent, namely DefaultChunkSource#makeGetContext, already does the right thing. getChunk() - likewise. makeFillContext() - We don't need to add anything to the "inner" context, so we just delegate to inner and return its context fillContext() - We first let the inner fill the chunk, then we overwrite each value (where non-null) with the result of DbArrayBase#getDirect() invoked on that value.