Class DeephavenColumnRegionObjectBase<T,ATTR extends Attributes.Values>

java.lang.Object
com.illumon.iris.db.v2.sources.regioned.DeephavenColumnRegionObjectBase<T,ATTR>
Type Parameters:
T -
ATTR -
All Implemented Interfaces:
ChunkSource<ATTR>, DefaultChunkSource<ATTR>, FillContextMaker, GetContextMaker, Page<ATTR>, Page.WithDefaults<ATTR>, PagingChunkSource<ATTR>, ColumnRegion<ATTR>, ColumnRegionObject<T,ATTR>, Releasable
Direct Known Subclasses:
ColumnRegionObjectCodecFixed, ColumnRegionObjectCodecVariable, ColumnRegionObjectWithDictionary, ColumnRegionStringSet

public abstract class DeephavenColumnRegionObjectBase<T,ATTR extends Attributes.Values> extends Object implements ColumnRegionObject<T,ATTR>, Page.WithDefaults<ATTR>
A Base for Deephaven format object column regions. Mostly encapsulating the match() logic
  • Field Details

  • Method Details

    • getNativeType

      public Class<?> getNativeType()
      Specified by:
      getNativeType in interface ChunkSource<T>
      Specified by:
      getNativeType in interface ColumnRegionObject<T,ATTR extends Attributes.Values>
    • binSearchMatch

      public Index binSearchMatch(long firstKey, long lastKey, @NotNull SortPair sortPair, @NotNull Object[] sortedKeys)
      Description copied from interface: ColumnRegion
      Given that this column is sorted, match the input keys using a binary search.
      Specified by:
      binSearchMatch in interface ColumnRegion<T>
      Parameters:
      firstKey - The first key to search
      lastKey - The last key to search
      sortPair - the sorting definition
      sortedKeys - the keys to search for, in no particular order
    • getLocation

      public ColumnLocation getLocation()
      Specified by:
      getLocation in interface ColumnRegion<T>
    • couldInclude

      public boolean couldInclude(@NotNull Object[] sortedKeys)
      Description copied from interface: ColumnRegion
      Check if the region could possibly include any of the keys we're searching for
      Specified by:
      couldInclude in interface ColumnRegion<T>
      Parameters:
      sortedKeys - the keys to search for
      Returns:
      true if the region possibly contains the values
    • chunkMatch

      public Index chunkMatch(long regionFirstKey, @NotNull OrderedKeys keysToFilter, boolean caseInsensitive, boolean invertMatch, @NotNull Object[] sortedKeys)
      Specified by:
      chunkMatch in interface ColumnRegion<T>