Interface LongSizedDataStructure

All Known Subinterfaces:
DataColumn<TYPE>, DbArray<T>, DbArrayBase, DbBooleanArray, DbByteArray, DbCharArray, DbDoubleArray, DbFloatArray, DbIntArray, DbLongArray, DbShortArray, DynamicTable, Index, LazySnapshotTable, OrderedKeys, ReadOnlyIndex, RegionedColumnSource<DATA_TYPE>, RegionedPageStore<ATTR,​INNER_ATTR,​REGION_TYPE>, RemoteTableHandle.TableProxy, SegmentedSortedArray, SegmentedSortedMultiSet<T>, SingleRangeMixin, SizedColumnSource<DATA_TYPE>, SizedContextualizedObjectColumnSource<DATA_TYPE>, Table, TableMapProxyHandler.TableMapProxy
All Known Implementing Classes:
AppendOnlyArrayBackedMutableTable, BaseTable, ByteReverseSegmentedSortedArray, ByteSegmentedSortedArray, ByteSegmentedSortedMultiset, CharReverseSegmentedSortedArray, CharSegmentedSortedArray, CharSegmentedSortedMultiset, ColumnRegionByte.StaticPageStore, ColumnRegionChar.StaticPageStore, ColumnRegionDouble.StaticPageStore, ColumnRegionFloat.StaticPageStore, ColumnRegionInt.StaticPageStore, ColumnRegionLong.StaticPageStore, ColumnRegionObject.StaticPageStore, ColumnRegionShort.StaticPageStore, ConnectionAwareRemoteTable, CurrentOnlyIndex, DbArray.Indirect, DbArrayBooleanWrapper, DbArrayByteWrapper, DbArrayCharWrapper, DbArrayColumnWrapper, DbArrayDirect, DbArrayDoubleWrapper, DbArrayFloatWrapper, DbArrayImmutableColumnWrapper, DbArrayIntWrapper, DbArrayLongWrapper, DbArrayShortWrapper, DbArraySlice, DbBooleanArray.Indirect, DbBooleanArrayDirect, DbBooleanArraySlice, DbByteArray.Indirect, DbByteArrayColumnWrapper, DbByteArrayDirect, DbByteArrayImmutableColumnWrapper, DbByteArraySlice, DbCharArray.Indirect, DbCharArrayColumnWrapper, DbCharArrayDirect, DbCharArrayImmutableColumnWrapper, DbCharArraySlice, DbDateTimeSsmSourceWrapper.ValueWrapper, DbDoubleArray.Indirect, DbDoubleArrayColumnWrapper, DbDoubleArrayDirect, DbDoubleArrayImmutableColumnWrapper, DbDoubleArraySlice, DbFloatArray.Indirect, DbFloatArrayColumnWrapper, DbFloatArrayDirect, DbFloatArrayImmutableColumnWrapper, DbFloatArraySlice, DbIntArray.Indirect, DbIntArrayColumnWrapper, DbIntArrayDirect, DbIntArrayImmutableColumnWrapper, DbIntArraySlice, DbLongArray.Indirect, DbLongArrayColumnWrapper, DbLongArrayDirect, DbLongArrayImmutableColumnWrapper, DbLongArraySlice, DbPrevArrayColumnWrapper, DbPrevByteArrayColumnWrapper, DbPrevCharArrayColumnWrapper, DbPrevDoubleArrayColumnWrapper, DbPrevFloatArrayColumnWrapper, DbPrevIntArrayColumnWrapper, DbPrevLongArrayColumnWrapper, DbPrevShortArrayColumnWrapper, DbShortArray.Indirect, DbShortArrayColumnWrapper, DbShortArrayDirect, DbShortArrayImmutableColumnWrapper, DbShortArraySlice, DbSubArray, DbSubBooleanArray, DbSubByteArray, DbSubCharArray, DbSubDoubleArray, DbSubFloatArray, DbSubIntArray, DbSubLongArray, DbSubShortArray, DeferredViewTable, DoubleReverseSegmentedSortedArray, DoubleSegmentedSortedArray, DoubleSegmentedSortedMultiset, FloatReverseSegmentedSortedArray, FloatSegmentedSortedArray, FloatSegmentedSortedMultiset, HierarchicalTable, IndexedDataColumn, InitialSnapshotTable, InMemoryTable, IntReverseSegmentedSortedArray, IntSegmentedSortedArray, IntSegmentedSortedMultiset, KeyedArrayBackedMutableTable, LiveQueryTable, LongReverseSegmentedSortedArray, LongSegmentedSortedArray, LongSegmentedSortedMultiset, NestedPartitionedDiskBackedTable, NullAwareCharReverseSegmentedSortedArray, NullAwareCharSegmentedSortedArray, ObjectReverseSegmentedSortedArray, ObjectSegmentedSortedArray, ObjectSegmentedSortedMultiset, OrderedKeysAsChunkImpl, OrderedKeysKeyIndicesChunkImpl, OrderedKeysKeyRangesChunkImpl, PartitionAwareSourceTable, PreemptiveUpdatesTable, QueryReplayGroupedTable, QueryTable, QueryTable.FilteredTable, RedefinableTable, RegionedColumnSourceObject, RegionedColumnSourceObject.AsValues, RegionedColumnSourceObjectWithDictionary, RegionedPageStore.Static, RemoteTableHandle, ReplayGroupedFullTable, ReplayLastByGroupedTable, ReplayTable, ReplicatedTable, RspOrderedKeys, ShiftedOrderedKeys, ShortReverseSegmentedSortedArray, ShortSegmentedSortedArray, ShortSegmentedSortedMultiset, SimpleSourceTable, SingleRangeOrderedKeys, SortedIndex, SortedRangesOrderedKeys, SourceTable, SplayedDiskBackedTable, SubscriptionSnapshotTable, TimeTable, TreeIndex, UncoalescedTable, UpdatableTable, WrappedDelegatingTable

public interface LongSizedDataStructure
Common interface for Deephaven DB 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