Tabnine Logo
FunctionDesc
Code IndexAdd Tabnine to your IDE (free)

How to use
FunctionDesc
in
ca.nrc.cadc.tap.schema

Best Java code snippets using ca.nrc.cadc.tap.schema.FunctionDesc (Showing top 5 results out of 315)

origin: org.opencadc/cadc-tap-schema

functionDescs.add(new FunctionDesc("AREA", TapDataType.DOUBLE, "deg**2"));
functionDescs.add(new FunctionDesc("CENTROID", TapDataType.POINT));
functionDescs.add(new FunctionDesc("CIRCLE", TapDataType.CIRCLE));
functionDescs.add(new FunctionDesc("CONTAINS", TapDataType.INTEGER));
functionDescs.add(new FunctionDesc("COORD1", TapDataType.DOUBLE, "deg"));
functionDescs.add(new FunctionDesc("COORD2", TapDataType.DOUBLE, "deg"));
functionDescs.add(new FunctionDesc("COORDSYS", new TapDataType("char", "16*", null)));
functionDescs.add(new FunctionDesc("DISTANCE", TapDataType.DOUBLE, "deg"));
functionDescs.add(new FunctionDesc("INTERSECTS", TapDataType.INTEGER));
functionDescs.add(new FunctionDesc("INTERVAL", TapDataType.INTERVAL));
functionDescs.add(new FunctionDesc("POINT", TapDataType.POINT));
functionDescs.add(new FunctionDesc("POLYGON", TapDataType.POLYGON));
functionDescs.add(new FunctionDesc("ABS", TapDataType.FUNCTION_ARG));
functionDescs.add(new FunctionDesc("ACOS", TapDataType.DOUBLE, "radians"));
functionDescs.add(new FunctionDesc("ASIN", TapDataType.DOUBLE, "radians"));
functionDescs.add(new FunctionDesc("ATAN", TapDataType.DOUBLE, "radians"));
functionDescs.add(new FunctionDesc("ATAN2", TapDataType.DOUBLE, "radians"));
functionDescs.add(new FunctionDesc("CEILING", TapDataType.FUNCTION_ARG));
functionDescs.add(new FunctionDesc("COS", TapDataType.DOUBLE, "radians"));
functionDescs.add(new FunctionDesc("COT", TapDataType.DOUBLE, "radians"));
functionDescs.add(new FunctionDesc("DEGREES", TapDataType.DOUBLE, "deg"));
functionDescs.add(new FunctionDesc("EXP", TapDataType.DOUBLE));
functionDescs.add(new FunctionDesc("FLOOR", TapDataType.FUNCTION_ARG));
functionDescs.add(new FunctionDesc("LN", TapDataType.DOUBLE));
functionDescs.add(new FunctionDesc("LOG", TapDataType.DOUBLE));
functionDescs.add(new FunctionDesc("LOG10", TapDataType.DOUBLE));
functionDescs.add(new FunctionDesc("MOD", TapDataType.FUNCTION_ARG));
origin: org.opencadc/cadc-adql

/**
 * Find the FunctionDesc for a given Function.
 *
 * @param tapSchema
 * @param function
 * @return FunctionDesc
 */
public static FunctionDesc findFunctionDesc(TapSchema tapSchema, Function function)
{
  if (function == null || function.getName() == null)
    return null;
  for (FunctionDesc functionDesc : tapSchema.getFunctionDescs())
  {
    log.debug("check: " + function.getName() + " vs " + functionDesc.getName());
    if (function.getName().equalsIgnoreCase(functionDesc.getName()))
      return functionDesc;
  }
  return null;
}

origin: org.opencadc/cadc-adql

  throw new UnsupportedOperationException("invalid function: " + function.getName());
if ( TapDataType.FUNCTION_ARG.equals(functionDesc.getDatatype()) )
      log.debug("vist(nested Function " + nestedFunction);
      FunctionDesc nestedFunctionDesc = TapSchemaUtil.findFunctionDesc(tapSchema, (Function) parameter);
      if ( TapDataType.FUNCTION_ARG.equals(nestedFunctionDesc.getDatatype()) )
          datatype = recursiveFunctionDesc.getDatatype();
        datatype = nestedFunctionDesc.getDatatype();
      return new FunctionDesc(functionDesc.getName(), datatype);
origin: org.opencadc/cadc-adql

log.debug("visit(function) " + function + " found: " + functionDesc);
if (alias != null)
  paramDesc = new TapSelectItem(alias, functionDesc.getDatatype());
else
  paramDesc = new TapSelectItem(function.getName(), functionDesc.getDatatype());
origin: org.opencadc/cadc-adql

@Override
public void visit(Function function)
{
  log.debug("visit(function)" + function);
  boolean found = false;
  
  for (FunctionDesc functionDesc : tapSchema.getFunctionDescs())
  {
    if (functionDesc.getName().equalsIgnoreCase(function.getName()))
    {
      found = true;
      break;
    }
  }
  if (!found)
    throw new IllegalArgumentException("Function [" + function.getName() + "] is not found in TapSchema");
  selectNavigator.enterFunctionCall(function);
  if (function.getParameters() != null)
    function.getParameters().accept(this);
  selectNavigator.leaveFunctionCall();
}

ca.nrc.cadc.tap.schemaFunctionDesc

Javadoc

Describes ADQL or SQL function metadata used for VOTable metadata.

Most used methods

  • <init>
  • getDatatype
  • getName

Popular in Java

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • findViewById (Activity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now