Class DbArraySlice<T>

java.lang.Object
com.illumon.iris.db.tables.dbarrays.DbArray.Indirect<T>
com.illumon.iris.db.tables.dbarrays.DbArraySlice<T>
All Implemented Interfaces:
DbArray<T>, DbArrayBase, LongSizedDataStructure, ToStringWithElements, Serializable

public class DbArraySlice<T> extends DbArray.Indirect<T>
See Also:
  • Constructor Details

    • DbArraySlice

      public DbArraySlice(@NotNull DbArray<T> innerArray, long offsetIndex, long length)
  • Method Details

    • get

      public T get(long index)
    • subArray

      public DbArray<T> subArray(long fromIndexInclusive, long toIndexExclusive)
    • subArrayByPositions

      public DbArray<T> subArrayByPositions(long[] positions)
    • toArray

      public T[] toArray()
    • size

      public long size()
      Description copied from interface: LongSizedDataStructure
      The size of this data structure.
      Returns:
      The size
    • getComponentType

      public Class<T> getComponentType()
    • toDbArray

      public DbArray toDbArray()
    • getPrev

      public T getPrev(long index)
    • isEmpty

      public boolean isEmpty()
    • getDirect

      public DbArrayBase getDirect()
      Description copied from interface: DbArrayBase
      Return a version of this DbArrayBase that is flattened out to only reference memory.