Class SerializedDataProvider

    • Constructor Detail

      • SerializedDataProvider

        public SerializedDataProvider()
    • Method Detail

      • loadData

        public java.util.List<IParticleRecord> loadData​(java.lang.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:
        Array of particle beans
      • loadData

        public java.util.List<IParticleRecord> loadData​(java.io.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:
        Array of particle beans
      • loadDataMapped

        public java.util.List<IParticleRecord> loadDataMapped​(java.lang.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:
        Array of particle beans