Class HBaseEvaluatorFunctions

java.lang.Object
com.Lomikel.HBaser.HBaseEvaluatorFunctions

public class HBaseEvaluatorFunctions extends Object
HBaseEvaluatorFuctions provide static functions available to HBaseEvaluator.
Author:
J.Hrivnac
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static org.apache.logging.log4j.Logger
    Logging .
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Do-nothing Demo
    static boolean
    isNear(double ra, double dec, double ra0, double dec0, double delta)
    Evaluate, if ra,dec are within specified angular from concrete direction.
    static boolean
    isWithinGeoLimits(double ra, double dec, double raMin, double raMax, double decMin, double decMax)
    Evaluate, if ra,dec are within specified limits.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      private static org.apache.logging.log4j.Logger log
      Logging .
  • Constructor Details

  • Method Details

    • demo

      public static boolean demo()
      Do-nothing Demo
    • isWithinGeoLimits

      public static boolean isWithinGeoLimits(double ra, double dec, double raMin, double raMax, double decMin, double decMax)
      Evaluate, if ra,dec are within specified limits. Usage: isWithinGeoLimits(raMin, raMax, decMin decMax)
      Parameters:
      ra - The ra from the database.
      dec - The dec from the database.
      raMin - The minimal value of ra (in deg).
      raMax - The maximal value of ra (in deg).
      decMin - The minimal value of dec (in deg).
      decMax - The maximal value of dec (in deg).
      Returns:
      Whether ra,dec from the database are within specified limits.
    • isNear

      public static boolean isNear(double ra, double dec, double ra0, double dec0, double delta)
      Evaluate, if ra,dec are within specified angular from concrete direction. Usage: isNear(ra0, dec0, delta)
      Parameters:
      ra - The ra from the database.
      dec - The dec from the database.
      ra0 - The central value of ra (in deg).
      dec0 - The central value of dec (in deg).
      delta - The maximal angular distance from the central direction (in deg).
      Returns:
      Whether ra,dec from the database are within specified argular.