Class FrameCursorFactory

    • Method Detail

      • canVectorize

        public boolean canVectorize​(@Nullable
                                    Filter filter,
                                    VirtualColumns virtualColumns,
                                    boolean descending)
        Description copied from interface: CursorFactory
        Returns true if the provided combination of parameters can be handled by "makeVectorCursor". Query engines should use this before running in vectorized mode, and be prepared to fall back to non-vectorized mode if this method returns false.
        Specified by:
        canVectorize in interface CursorFactory
      • makeVectorCursor

        @Nullable
        public VectorCursor makeVectorCursor​(@Nullable
                                             Filter filter,
                                             org.joda.time.Interval interval,
                                             VirtualColumns virtualColumns,
                                             boolean descending,
                                             int vectorSize,
                                             @Nullable
                                             QueryMetrics<?> queryMetrics)
        Description copied from interface: CursorFactory
        Creates a VectorCursor. Unlike the Cursor returned by "makeCursor", there is just one of these. Hence, this method does not take a "granularity" parameter. Before calling this method, check "canVectorize" to see if the call you are about to make will throw an error or not. Returns null if there is no data to walk over (for example, if the "interval" does not overlap the data interval of this segment).
        Specified by:
        makeVectorCursor in interface CursorFactory