Interface LongSizedDataStructure

All Known Subinterfaces:
BooleanVector, ByteVector, CharVector, DataColumn<TYPE>, DoubleVector, FloatVector, IntVector, LazySnapshotTable, LongVector, ObjectVector<T>, 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:
AppendOnlyArrayBackedMutableTable, BarrageRedirectedTable, BarrageStreamTable, BarrageTable, BaseTable, BooleanSubVector, BooleanVector.Indirect, BooleanVectorDirect, BooleanVectorSlice, ByteReverseSegmentedSortedArray, ByteSegmentedSortedArray, ByteSegmentedSortedMultiset, ByteSubVector, ByteVector.Indirect, ByteVectorColumnWrapper, ByteVectorDirect, ByteVectorSlice, CharReverseSegmentedSortedArray, CharSegmentedSortedArray, CharSegmentedSortedMultiset, CharSubVector, CharVector.Indirect, CharVectorColumnWrapper, CharVectorDirect, CharVectorSlice, DateTimeSsmSourceWrapper.ValueWrapper, DeferredViewTable, DoubleReverseSegmentedSortedArray, DoubleSegmentedSortedArray, DoubleSegmentedSortedMultiset, DoubleSubVector, DoubleVector.Indirect, DoubleVectorColumnWrapper, DoubleVectorDirect, DoubleVectorSlice, FloatReverseSegmentedSortedArray, FloatSegmentedSortedArray, FloatSegmentedSortedMultiset, FloatSubVector, FloatVector.Indirect, FloatVectorColumnWrapper, FloatVectorDirect, FloatVectorSlice, IndexedDataColumn, InitialSnapshotTable, InMemoryTable, IntReverseSegmentedSortedArray, IntSegmentedSortedArray, IntSegmentedSortedMultiset, IntSubVector, IntVector.Indirect, IntVectorColumnWrapper, IntVectorDirect, IntVectorSlice, KeyedArrayBackedMutableTable, LongReverseSegmentedSortedArray, LongSegmentedSortedArray, LongSegmentedSortedMultiset, LongSubVector, LongVector.Indirect, LongVectorColumnWrapper, LongVectorDirect, LongVectorSlice, NullAwareCharReverseSegmentedSortedArray, NullAwareCharSegmentedSortedArray, ObjectReverseSegmentedSortedArray, ObjectSegmentedSortedArray, ObjectSegmentedSortedMultiset, ObjectSubVector, ObjectVector.Indirect, ObjectVectorColumnWrapper, ObjectVectorDirect, ObjectVectorSlice, PartitionAwareSourceTable, PrevByteVectorColumnWrapper, PrevCharVectorColumnWrapper, PrevDoubleVectorColumnWrapper, PrevFloatVectorColumnWrapper, PrevIntVectorColumnWrapper, PrevLongVectorColumnWrapper, PrevObjectVectorColumnWrapper, PrevShortVectorColumnWrapper, QueryReplayGroupedTable, QueryTable, QueryTable.FilteredTable, RedefinableTable, ReplayGroupedFullTable, ReplayLastByGroupedTable, ReplayTable, RowSequenceAsChunkImpl, RowSequenceKeyRangesChunkImpl, RowSequenceRowKeysChunkImpl, RspRowSequence, ShiftedRowSequence, ShortReverseSegmentedSortedArray, 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 intSize()
    Returns size() cast to an int, if this can be done without losing precision.
    default int intSize​(String operation)
    Returns size() cast to an int, if this can be done without losing precision.
    static int intSize​(String operation, long size)
    Returns the size argument cast to an int, if this can be done without losing precision.
    long size()
    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 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 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