Class FireballQueryBuilder


  • public class FireballQueryBuilder
    extends java.lang.Object
    A helper method for creating Fireball API queries
    Author:
    Maximilian Dorn
    • Constructor Detail

      • FireballQueryBuilder

        public FireballQueryBuilder()
    • Method Detail

      • minDate

        public FireballQueryBuilder minDate​(QueryTime time)
        Minimum date and time Excludes fireballs earlier than the specified date and time.
        Parameters:
        time - Date and time
        Returns:
        The builder instance
      • from

        public FireballQueryBuilder from​(QueryTime time)
        Minimum date and time Excludes fireballs earlier than the specified date and time.
        Parameters:
        time - Date and time
        Returns:
        The builder instance
      • maxDate

        public FireballQueryBuilder maxDate​(QueryTime time)
        Maximum date and time Excludes fireballs later than the specified date and time.
        Parameters:
        time - Date and time
        Returns:
        The builder instance
      • until

        public FireballQueryBuilder until​(QueryTime time)
        Maximum date and time Excludes fireballs later than the specified date and time.
        Parameters:
        time - Date and time
        Returns:
        The builder instance
      • energyMin

        public FireballQueryBuilder energyMin​(double e)
        Exclude data with total-radiated-energy less than this positive value in joules ×10^10 (e.g., 0.3 = 0.3×10^10 joules)
        Parameters:
        e - The energy
        Returns:
        The builder instance
      • energyMax

        public FireballQueryBuilder energyMax​(double e)
        Exclude data with total-radiated-energy greater than this positive value in joules ×10^10 (e.g., 0.3 = 0.3×10^10 joules)
        Parameters:
        e - The energy
        Returns:
        The builder instance
      • impactEnergyMin

        public FireballQueryBuilder impactEnergyMin​(double e)
        Exclude data with estimated impact energy less than this positive value in kilotons (kt) (e.g., 0.08 kt)
        Parameters:
        e - The energy
        Returns:
        The builder instance
      • impactEnergyMax

        public FireballQueryBuilder impactEnergyMax​(double e)
        Exclude data with estimated impact energy greater than this positive value in kilotons (kt) (e.g., 0.08 kt)
        Parameters:
        e - The energy
        Returns:
        The builder instance
      • velocityMin

        public FireballQueryBuilder velocityMin​(double v)
        Exclude data with velocity-at-peak-brightness less than this positive value in km/s (e.g., 18.5)
        Parameters:
        v - The velocity
        Returns:
        The builder instance
      • velocityMax

        public FireballQueryBuilder velocityMax​(double v)
        Exclude data with velocity-at-peak-brightness greater than this positive value in km/s (e.g., 18.5)
        Parameters:
        v - The velocity
        Returns:
        The builder instance
      • altitudeMin

        public FireballQueryBuilder altitudeMin​(double a)
        Exclude data from objects with an altitude less than this (e.g., 22 meaning objects smaller than this)
        Parameters:
        a - The altitude
        Returns:
        The builder instance
      • altitudeMax

        public FireballQueryBuilder altitudeMax​(double a)
        Exclude data from objects with an altitude greater than this (e.g., 17.75 meaning objects larger than this)
        Parameters:
        a - The altitude
        Returns:
        The builder instance
      • locationRequired

        public FireballQueryBuilder locationRequired()
        Exclude data without a location
        Returns:
        The builder instance
      • altitudeRequired

        public FireballQueryBuilder altitudeRequired()
        Exclude data without an altitude
        Returns:
        The builder instance
      • velocityRequired

        public FireballQueryBuilder velocityRequired()
        Exclude data without a velocity
        Returns:
        The builder instance
      • velocityComponentsRequired

        public FireballQueryBuilder velocityComponentsRequired()
        Exclude data without velocity components
        Returns:
        The builder instance
      • includeVelocityComponents

        public FireballQueryBuilder includeVelocityComponents()
        Include velocity components
        Returns:
        The builder instance
      • sort

        public FireballQueryBuilder sort​(SortField sortField,
                                         boolean descending)
        Sort by the specific field
        Parameters:
        sortField - The field to sort by
        descending - Descending or not
        Returns:
        The builder instance
      • limit

        public FireballQueryBuilder limit​(int limit)
        Limit to N results
        Parameters:
        limit - The limit
        Returns:
        The builder instance
      • build

        public Query build()