Interface IParticleGroupDataProvider

All Known Subinterfaces:
IStarGroupDataProvider
All Known Implementing Classes:
AbstractStarGroupDataProvider, BinaryDataProvider, PointDataProvider, SDSSDataProvider, SerializedDataProvider, STILDataProvider, UncertaintiesProvider

public interface IParticleGroupDataProvider
Data provider for a particle group.
  • Method Details

    • loadData

      List<IParticleRecord> loadData(String file)
      Loads the data as it is.
      Parameters:
      file - The file to load
      Returns:
      Array of particle beans
    • loadDataMapped

      List<IParticleRecord> loadDataMapped(String file, double factor)
      Loads the data applying a factor using a memory mapped file for improved speed.
      Parameters:
      file - The file to load
      factor - Factor to apply to the positions
      Returns:
      Array of particle beans
    • loadData

      List<IParticleRecord> loadData(String file, double factor)
      Loads the data applying a factor.
      Parameters:
      file - The file to load
      factor - Factor to apply to the positions
      Returns:
      Array of particle beans
    • loadData

      List<IParticleRecord> loadData(InputStream is, double factor)
      Loads the data applying a factor.
      Parameters:
      is - Input stream to load the data from
      factor - Factor to apply to the positions
      Returns:
      Array of particle beans
    • setFileNumberCap

      void setFileNumberCap(int cap)
      Sets a cap on the number of files to load. Set to negative for unlimited
      Parameters:
      cap - The file cap number
    • setStarNumberCap

      void setStarNumberCap(int cap)
      Sets the maximum number of stars to be processed per file. Set to negative for unlimited
      Parameters:
      cap - The star cap number