Codota Logo
TimeWithTimeZoneType.getDisplayName
Code IndexAdd Codota to your IDE (free)

How to use
getDisplayName
method
in
com.facebook.presto.spi.type.TimeWithTimeZoneType

Best Java code snippets using com.facebook.presto.spi.type.TimeWithTimeZoneType.getDisplayName (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: prestodb/presto

@Override
public Expression rewriteAtTimeZone(AtTimeZone node, Void context, ExpressionTreeRewriter<Void> treeRewriter)
{
  Expression value = treeRewriter.rewrite(node.getValue(), context);
  Type type = getType(node.getValue());
  if (type.equals(TIME)) {
    value = new Cast(value, TIME_WITH_TIME_ZONE.getDisplayName());
  }
  else if (type.equals(TIMESTAMP)) {
    value = new Cast(value, TIMESTAMP_WITH_TIME_ZONE.getDisplayName());
  }
  return new FunctionCall(QualifiedName.of("at_timezone"), ImmutableList.of(value, treeRewriter.rewrite(node.getTimeZone(), context)));
}
origin: uk.co.nichesolutions.presto/presto-main

  @Override
  public Expression rewriteAtTimeZone(AtTimeZone node, Void context, ExpressionTreeRewriter<Void> treeRewriter)
  {
    Expression value = treeRewriter.rewrite(node.getValue(), context);
    Type type = expressionTypes.get(value);
    if (type.equals(TIME)) {
      value = new Cast(value, TIME_WITH_TIME_ZONE.getDisplayName());
    }
    else if (type.equals(TIMESTAMP)) {
      value = new Cast(value, TIMESTAMP_WITH_TIME_ZONE.getDisplayName());
    }

    return new FunctionCall(QualifiedName.of("at_timezone"), ImmutableList.of(
        value,
        treeRewriter.rewrite(node.getTimeZone(), context)));
  }
}
com.facebook.presto.spi.typeTimeWithTimeZoneTypegetDisplayName

Popular methods of TimeWithTimeZoneType

  • equals
  • createBlockBuilder
  • writeLong
  • getLong

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now