Tabnine Logo
IntWritable.readFields
Code IndexAdd Tabnine 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)

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

  • Start an intent from android
  • getSystemService (Context)
  • getContentResolver (Context)
  • putExtra (Intent)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Best plugins for Eclipse
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