Class SerializedDataProvider

java.lang.Object
gaiasky.data.group.AbstractStarGroupDataProvider
gaiasky.data.group.SerializedDataProvider
All Implemented Interfaces:
IParticleGroupDataProvider, IStarGroupDataProvider

public class SerializedDataProvider extends AbstractStarGroupDataProvider
  • Constructor Details

    • SerializedDataProvider

      public SerializedDataProvider()
  • Method Details

    • loadData

      public List<IParticleRecord> loadData(String file, double factor)
      Description copied from interface: IStarGroupDataProvider
      Loads the data applying a factor.
      Parameters:
      file - The file to load.
      factor - Factor to apply to the positions.
      Returns:
      The array of particle records.
    • loadData

      public List<IParticleRecord> loadData(InputStream is, double factor)
      Description copied from interface: IStarGroupDataProvider
      Loads the data applying a factor.
      Parameters:
      is - Input stream to load the data from.
      factor - Factor to apply to the positions.
      Returns:
      The array of particle records.
    • loadDataMapped

      public List<IParticleRecord> loadDataMapped(String file, double factor)
      Description copied from interface: IStarGroupDataProvider
      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:
      The array of particle records.