Tabnine Logo
IntWritable.set
Code IndexAdd Tabnine to your IDE (free)

How to use
set
method
in
org.apache.hadoop.io.IntWritable

Best Java code snippets using org.apache.hadoop.io.IntWritable.set (Showing top 20 results out of 1,125)

Refine searchRefine arrow

  • IntWritable.get
origin: apache/hive

 private int setBucket(int bucketProperty, int operation) {
  assert operation == UPDATE_OPERATION || operation == DELETE_OPERATION;
  int currentBucketProperty = bucket.get();
  bucket.set(bucketProperty);
  return currentBucketProperty;
 }
}
origin: apache/hive

public IntWritable evaluate(IntWritable a) {
 if (a == null) {
  return null;
 }
 intWritable.set(~a.get());
 return intWritable;
}
origin: apache/hbase

 public void reduce(Key key, Iterable<IntWritable> values,
  Context context)
 throws IOException, InterruptedException {
  int sum = 0;
  for (IntWritable val : values) {
   sum += val.get();
  }
  result.set(sum);
  context.write(key, result);
 }
}
origin: apache/drill

public IntWritable evaluate(IntWritable a) {
 if (a == null) {
  return null;
 }
 intWritable.set(~a.get());
 return intWritable;
}
origin: apache/hive

public IntWritable evaluate(IntWritable a, IntWritable b) {
 if (a == null || b == null) {
  return null;
 }
 intWritable.set(a.get() >>> b.get());
 return intWritable;
}
origin: apache/hive

public IntWritable evaluate(IntWritable a, IntWritable b) {
 if (a == null || b == null) {
  return null;
 }
 intWritable.set(a.get() << b.get());
 return intWritable;
}
origin: apache/hive

public IntWritable evaluate(IntWritable a, IntWritable b) {
 if (a == null || b == null) {
  return null;
 }
 intWritable.set(a.get() >> b.get());
 return intWritable;
}
origin: apache/hive

@Override
protected IntWritable evaluate(IntWritable left, IntWritable right) {
 intWritable.set(left.get() - right.get());
 return intWritable;
}
origin: apache/hive

@Override
protected IntWritable evaluate(IntWritable left, IntWritable right) {
 intWritable.set(left.get() * right.get());
 return intWritable;
}
origin: apache/hive

public IntWritable evaluate(IntWritable a, IntWritable b) {
 if (a == null || b == null) {
  return null;
 }
 intWritable.set(a.get() ^ b.get());
 return intWritable;
}
origin: apache/hive

public IntWritable evaluate(IntWritable a, IntWritable b) {
 if (a == null || b == null) {
  return null;
 }
 intWritable.set(a.get() & b.get());
 return intWritable;
}
origin: apache/hive

public IntWritable evaluate(IntWritable a, IntWritable b) {
 if (a == null || b == null) {
  return null;
 }
 intWritable.set(a.get() | b.get());
 return intWritable;
}
origin: apache/hive

@Override
protected IntWritable evaluate(IntWritable left, IntWritable right) {
 intWritable.set(left.get() + right.get());
 return intWritable;
}
origin: apache/hive

@Override
protected IntWritable evaluate(IntWritable left, IntWritable right) {
 if (right.get() == 0) {
  return null;
 }
 intWritable.set(left.get() % right.get());
 return intWritable;
}
origin: apache/drill

public IntWritable evaluate(IntWritable a, IntWritable b) {
 if (a == null || b == null) {
  return null;
 }
 intWritable.set(a.get() >> b.get());
 return intWritable;
}
origin: apache/drill

public IntWritable evaluate(IntWritable a, IntWritable b) {
 if (a == null || b == null) {
  return null;
 }
 intWritable.set(a.get() | b.get());
 return intWritable;
}
origin: apache/drill

public IntWritable evaluate(IntWritable a, IntWritable b) {
 if (a == null || b == null) {
  return null;
 }
 intWritable.set(a.get() & b.get());
 return intWritable;
}
origin: apache/drill

@Override
protected IntWritable evaluate(IntWritable left, IntWritable right) {
 intWritable.set(left.get() - right.get());
 return intWritable;
}
origin: apache/drill

@Override
protected IntWritable evaluate(IntWritable left, IntWritable right) {
 intWritable.set(left.get() + right.get());
 return intWritable;
}
origin: apache/drill

public IntWritable evaluate(IntWritable a, IntWritable b) {
 if (a == null || b == null) {
  return null;
 }
 intWritable.set(a.get() ^ b.get());
 return intWritable;
}
org.apache.hadoop.ioIntWritableset

Javadoc

Set the value of this IntWritable.

Popular methods of IntWritable

  • get
    Return the value of this IntWritable.
  • <init>
  • toString
  • write
  • readFields
  • compareTo
    Compares two IntWritables.
  • equals
    Returns true iff o is a IntWritable with the same value.
  • hashCode
  • getClass

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • setContentView (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top Sublime Text 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