Class ByteStoreColumnFactory

  • All Implemented Interfaces:
    CachedColumnFactory

    public class ByteStoreColumnFactory
    extends java.lang.Object
    implements CachedColumnFactory
    ColumnFactory that stores column data in ByteStores.
    Since:
    23 Dec 2019
    Author:
    Mark Taylor
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteStoreColumnFactory​(java.util.function.Supplier<uk.ac.starlink.table.ByteStore> byteStoreSupplier)
      Constructs a ByteStoreColumnFactory based on a ByteStore supplier.
      ByteStoreColumnFactory​(uk.ac.starlink.table.StoragePolicy storage)
      Constructs a ByteStoreColumnFactory based on a StoragePolicy.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CachedColumn createColumn​(StorageType type, long nrow)
      Creates a data storage object capable of storing a vector of a given type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteStoreColumnFactory

        public ByteStoreColumnFactory​(uk.ac.starlink.table.StoragePolicy storage)
        Constructs a ByteStoreColumnFactory based on a StoragePolicy.
        Parameters:
        storage - storage policy
      • ByteStoreColumnFactory

        public ByteStoreColumnFactory​(java.util.function.Supplier<uk.ac.starlink.table.ByteStore> byteStoreSupplier)
        Constructs a ByteStoreColumnFactory based on a ByteStore supplier.
        Parameters:
        byteStoreSupplier - supplier
    • Method Detail

      • createColumn

        public CachedColumn createColumn​(StorageType type,
                                         long nrow)
        Description copied from interface: CachedColumnFactory
        Creates a data storage object capable of storing a vector of a given type. Both fixed and unknown element counts are supported.
        Specified by:
        createColumn in interface CachedColumnFactory
        Parameters:
        type - data type of elements to be stored
        nrow - maximum number of elements to be stored; if a value <0 is supplied, an indeterminate number is permitted
        Returns:
        storage object