Interface LongSizedDataStructure

All Known Subinterfaces:
AppendOnlyRegionAccessor<ATTR>, ByteVector, CharVector, DoubleVector, FloatVector, IntVector, LazySnapshotTable, LongVector, ObjectVector<COMPONENT_TYPE>, RowSequence, RowSet, SegmentedSortedArray, SegmentedSortedMultiSet<T>, ShortVector, SingleRangeMixin, SizedColumnSource<DATA_TYPE>, SizedContextualizedObjectColumnSource<DATA_TYPE>, Table, TableAdapter, TableDefaults, TrackingRowSet, TrackingWritableRowSet, Vector<VECTOR_TYPE>, WritableRowSet
All Known Implementing Classes:
AppendOnlyArrayBackedInputTable, BarrageBlinkTable, BarrageRedirectedTable, BarrageTable, BaseTable, ByteReverseSegmentedSortedArray, ByteRingBufferVectorWrapper, ByteSegmentedSortedArray, ByteSegmentedSortedMultiset, ByteSubVector, ByteVector.Indirect, ByteVectorColumnWrapper, ByteVectorDirect, ByteVectorSlice, CharReverseSegmentedSortedArray, CharRingBufferVectorWrapper, CharSegmentedSortedArray, CharSegmentedSortedMultiset, CharSubVector, CharVector.Indirect, CharVectorColumnWrapper, CharVectorDirect, CharVectorSlice, DeferredViewTable, DoubleReverseSegmentedSortedArray, DoubleRingBufferVectorWrapper, DoubleSegmentedSortedArray, DoubleSegmentedSortedMultiset, DoubleSubVector, DoubleVector.Indirect, DoubleVectorColumnWrapper, DoubleVectorDirect, DoubleVectorSlice, FloatReverseSegmentedSortedArray, FloatRingBufferVectorWrapper, FloatSegmentedSortedArray, FloatSegmentedSortedMultiset, FloatSubVector, FloatVector.Indirect, FloatVectorColumnWrapper, FloatVectorDirect, FloatVectorSlice, InitialSnapshotTable, InMemoryTable, InstantSsmSourceWrapper.ValueWrapper, IntReverseSegmentedSortedArray, IntRingBufferVectorWrapper, IntSegmentedSortedArray, IntSegmentedSortedMultiset, IntSubVector, IntVector.Indirect, IntVectorColumnWrapper, IntVectorDirect, IntVectorSlice, KeyedArrayBackedInputTable, LongReverseSegmentedSortedArray, LongRingBufferVectorWrapper, LongSegmentedSortedArray, LongSegmentedSortedMultiset, LongSubVector, LongVector.Indirect, LongVectorColumnWrapper, LongVectorDirect, LongVectorSlice, NullAwareCharReverseSegmentedSortedArray, NullAwareCharSegmentedSortedArray, ObjectReverseSegmentedSortedArray, ObjectRingBufferVectorWrapper, ObjectSegmentedSortedArray, ObjectSegmentedSortedMultiset, ObjectSubVector, ObjectVector.Indirect, ObjectVectorColumnWrapper, ObjectVectorDirect, ObjectVectorSlice, PartitionAwareSourceTable, QueryReplayGroupedTable, QueryTable, QueryTable.FilteredTable, RedefinableTable, ReplayGroupedFullTable, ReplayLastByGroupedTable, ReplayTable, ReplayTableBase, RowSequenceAsChunkImpl, RowSequenceKeyRangesChunkImpl, RowSequenceRowKeysChunkImpl, RspRowSequence, ShiftedRowSequence, ShortReverseSegmentedSortedArray, ShortRingBufferVectorWrapper, ShortSegmentedSortedArray, ShortSegmentedSortedMultiset, ShortSubVector, ShortVector.Indirect, ShortVectorColumnWrapper, ShortVectorDirect, ShortVectorSlice, SimpleSourceTable, SingleRangeRowSequence, SortedRangesRowSequence, SourceTable, TimeTable, TrackingWritableRowSetImpl, UncoalescedTable, UpdatableTable, UpdateSourceQueryTable, WritableRowSetImpl

public interface LongSizedDataStructure
Common interface for Deephaven data structures with a long (64-bit signed integer) size.
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Returns size() cast to an int, if this can be done without losing precision.
    default int
    intSize(@NotNull String operation)
    Returns size() cast to an int, if this can be done without losing precision.
    static int
    intSize(@NotNull String operation, long size)
    Returns the size argument cast to an int, if this can be done without losing precision.
    long
    The size of this data structure.
  • Method Details

    • size

      long size()
      The size of this data structure.
      Returns:
      The size
    • intSize

      default int intSize()

      Returns size() cast to an int, if this can be done without losing precision. Otherwise, throws SizeException.

      Returns:
      size(), cast to an int
      Throws:
      SizeException - If size() cannot be cast without precision loss
    • intSize

      default int intSize(@NotNull @NotNull String operation)

      Returns size() cast to an int, if this can be done without losing precision. Otherwise, throws SizeException.

      Parameters:
      operation - A description of the operation that requires an int size
      Returns:
      size(), cast to an int
      Throws:
      SizeException - If size() cannot be cast without precision loss
    • intSize

      static int intSize(@NotNull @NotNull String operation, long size)
      Returns the size argument cast to an int, if this can be done without losing precision. Otherwise, throws SizeException.
      Parameters:
      operation - A description of the operation that requires an int size
      size - The size
      Returns:
      size, cast to an int
      Throws:
      SizeException - If size cannot be cast without precision loss