congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Expression$Operation
Code IndexAdd Tabnine to your IDE (free)

How to use
Expression$Operation
in
com.netflix.iceberg.expressions

Best Java code snippets using com.netflix.iceberg.expressions.Expression$Operation (Showing top 3 results out of 315)

origin: Netflix/iceberg

private static com.netflix.iceberg.expressions.Expression convert(Operation op,
                                 Expression left,
                                 Expression right) {
 Pair<Transform, String> attrPair = null;
 Operation leftOperation = null;
 Literal lit = null;
 if (right instanceof Literal) {
  lit = (Literal) right;
  attrPair = convertAttr(left);
  leftOperation = op;
 } else if (left instanceof Literal) {
  lit = (Literal) left;
  attrPair = convertAttr(right);
  leftOperation = op.flipLR();
 }
 if (attrPair != null) {
  switch (attrPair.first()) {
   case IDENTITY:
    return predicate(leftOperation, attrPair.second(), valueFromSpark(lit));
   case YEAR:
    return filter(leftOperation, attrPair.second(), (int) lit.value(),
      SparkExpressions::yearToTimestampMicros);
   case DAY:
    return filter(leftOperation, attrPair.second(), (int) lit.value(),
      SparkExpressions::dayToTimestampMicros);
   default:
  }
 }
 return null;
}
origin: Netflix/iceberg

@Override
public Expression negate() {
 return new UnboundPredicate<>(op().negate(), ref(), literal());
}
origin: Netflix/iceberg

 @Override
 public Expression negate() {
  return new BoundPredicate<>(op().negate(), ref(), literal());
 }
}
com.netflix.iceberg.expressionsExpression$Operation

Most used methods

  • flipLR
  • negate

Popular in Java

  • Finding current android device location
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • getContentResolver (Context)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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