Codota Logo
IntWritable.readFields
Code IndexAdd Codota to your IDE (free)

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

Best Java code snippets using org.apache.hadoop.io.IntWritable.readFields (Showing top 20 results out of 315)

  • Common ways to obtain IntWritable
private void myMethod () {
IntWritable i =
  • Codota Iconnew IntWritable()
  • Codota Iconnew IntWritable(value)
  • Codota Iconnew IntWritable(-1)
  • Smart code suggestions by Codota
}
origin: org.apache.hadoop/hadoop-hdfs

/** read the int value */
static int readInt(DataInput in) throws IOException {
 IntWritable uInt = TL_DATA.get().U_INT;
 uInt.readFields(in);
 return uInt.get();
}

origin: mahmoudparsian/data-algorithms-book

@Override
public void readFields(DataInput in) throws IOException {
  yearMonth.readFields(in);
  day.readFields(in);
  temperature.readFields(in);
}
origin: pranab/chombo

@Override
public void readFields(DataInput in) throws IOException {
  first.readFields(in);
  second.readFields(in);
  
}
@Override
origin: io.prestosql.hadoop/hadoop-apache

/** read the int value */
static int readInt(DataInput in) throws IOException {
 IntWritable uInt = TL_DATA.get().U_INT;
 uInt.readFields(in);
 return uInt.get();
}

origin: ch.cern.hadoop/hadoop-hdfs

/** read the int value */
static int readInt(DataInput in) throws IOException {
 IntWritable uInt = TL_DATA.get().U_INT;
 uInt.readFields(in);
 return uInt.get();
}

origin: apache/incubator-rya

@Override
public void readFields(DataInput in) throws IOException {
 oldKey.readFields(in);
 priority.readFields(in);
}
origin: apache/crunch

@Override
public void readFields(DataInput in) throws IOException {
 id.readFields(in);
 name.readFields(in);
}
origin: MrChrisJohnson/CollabStream

public void readFields(DataInput arg0) throws IOException {
  row.readFields(arg0);
  column.readFields(arg0);
  value.readFields(arg0);
  matrixType.readFields(arg0);
}
origin: grafos-ml/okapi

@Override
public void readFields(DataInput in) throws IOException {
  pointCoordinates.readFields(in);
  clusterId.readFields(in);		
}
origin: pranab/chombo

@Override
public void readFields(DataInput in) throws IOException {
  first.readFields(in);
  second.readFields(in);
  
}
@Override
origin: mayconbordin/storm-applications

@Override
public void readFields(DataInput in) throws IOException {
  first.readFields(in);
  second.readFields(in);
  
}
@Override
origin: MrChrisJohnson/CollabStream

public void readFields(DataInput arg0) throws IOException {
  reducerNum.readFields(arg0);
  matItem.readFields(arg0);
}
origin: LiveRamp/hank

public void readFields(DataInput dataInput) throws IOException {
 key.readFields(dataInput);
 partition.readFields(dataInput);
}
origin: stackoverflow.com

 private IntWritable Medicion = new IntWritable();
private Text Fecha = new Text();
private Text Hora = new Text();

public void readFields(DataInput in) {
  Medicion.readFields(in);
  Fecha.readFields(in);
  Hora.readFields(in);
}
origin: uvagfx/hipi

private IntWritable readIntWritable(FSDataInputStream dis) throws IOException {
 IntWritable intWritable = new IntWritable();
 intWritable.readFields(dis);
 return intWritable;
}

origin: DigitalPebble/behemoth

public void readAnnotationFields(Annotation annot, DataInput in,
    List<String> types) throws IOException {
  IntWritable posType = new IntWritable();
  posType.readFields(in);
  annot.setType(types.get(posType.get()));
  annot.setStart(WritableUtils.readVLong(in));
  annot.setEnd(WritableUtils.readVLong(in));
  HashMap<String, String> features = null;
  int numFeatures = in.readInt();
  if (numFeatures > 0)
    features = new HashMap<String, String>(numFeatures);
  for (int i = 0; i < numFeatures; i++) {
    posType.readFields(in);
    String fname = types.get(posType.get());
    String fvalue = WritableUtils.readString(in);
    features.put(fname, fvalue);
  }
  annot.setFeatures(features);
}
origin: org.apache.hama/hama-graph

@Override
public void readFields(DataInput in) throws IOException {
 flag = in.readByte();
 if (isVertexMessage()) {
  vertexId = GraphJobRunner.createVertexIDObject();
  vertexId.readFields(in);
  this.numOfValues = in.readInt();
  int bytesLength = in.readInt();
  byte[] temp = new byte[bytesLength];
  in.readFully(temp);
  byteBuffer.write(temp);
 } else if (isMapMessage()) {
  map = new MapWritable();
  map.readFields(in);
 } else if (isVerticesSizeMessage()) {
  integerMessage = new IntWritable();
  integerMessage.readFields(in);
 } else if (isPartitioningMessage()) {
  this.numOfValues = in.readInt();
  int bytesLength = in.readInt();
  byte[] temp = new byte[bytesLength];
  in.readFully(temp);
  byteBuffer.write(temp);
 } else {
  vertexId = ReflectionUtils.newInstance(GraphJobRunner.VERTEX_ID_CLASS,
    null);
  vertexId.readFields(in);
 }
}
origin: apache/hama

public void fastReadFields(DataInput in) throws IOException {
 flag = in.readByte();
 if (isVertexMessage()) {
  vertexId = GraphJobRunner.createVertexIDObject();
  vertexId.readFields(in);
  /*
   * vertexValue = GraphJobRunner.createVertexValue();
   * vertexValue.readFields(in);
   */
 } else if (isMapMessage()) {
  map = new MapWritable();
  map.readFields(in);
 } else if (isVerticesSizeMessage()) {
  integerMessage = new IntWritable();
  integerMessage.readFields(in);
 } else {
  vertexId = ReflectionUtils.newInstance(GraphJobRunner.VERTEX_ID_CLASS,
    null);
  vertexId.readFields(in);
 }
}
origin: org.apache.hama/hama-graph

public void fastReadFields(DataInput in) throws IOException {
 flag = in.readByte();
 if (isVertexMessage()) {
  vertexId = GraphJobRunner.createVertexIDObject();
  vertexId.readFields(in);
  /*
   * vertexValue = GraphJobRunner.createVertexValue();
   * vertexValue.readFields(in);
   */
 } else if (isMapMessage()) {
  map = new MapWritable();
  map.readFields(in);
 } else if (isVerticesSizeMessage()) {
  integerMessage = new IntWritable();
  integerMessage.readFields(in);
 } else {
  vertexId = ReflectionUtils.newInstance(GraphJobRunner.VERTEX_ID_CLASS,
    null);
  vertexId.readFields(in);
 }
}
origin: stackoverflow.com

 public class MyDataType implements WritableComparable<MyDataType> {
  private Text name;
  private IntWritable age;

  @Override
  public void readFields(DataInput in) throws IOException {
    name.readFields(in);
    age.readFields(in);
  }

  @Override
  public void write(DataOutput out) throws IOException {
    name.write(out);
    age.write(out);
  }

  @Override
  public int compareTo(MyDataType o) {
    int nameCompare = name.compareTo(o.name);
    if(nameCompare != 0) {
      return nameCompare;
    } else {
      return age.compareTo(o.age);
    }
  }
}
org.apache.hadoop.ioIntWritablereadFields

Popular methods of IntWritable

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

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
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