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

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

Best Java code snippets using org.apache.hadoop.io.IntWritable.write (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

/** write the int value */
static void writeInt(int value, DataOutputStream out) throws IOException {
 IntWritable uInt = TL_DATA.get().U_INT;
 uInt.set(value);
 uInt.write(out);
}
origin: mahmoudparsian/data-algorithms-book

@Override
public void write(DataOutput out) throws IOException {
  yearMonth.write(out);
  day.write(out);
  temperature.write(out);
}
origin: pranab/chombo

@Override
public void write(DataOutput out) throws IOException {
  first.write(out);
  second.write(out);
  
}
@Override
origin: apache/incubator-rya

@Override
public void write(DataOutput out) throws IOException {
 oldKey.write(out);
 priority.write(out);
}
origin: ch.cern.hadoop/hadoop-hdfs

/** write the int value */
static void writeInt(int value, DataOutputStream out) throws IOException {
 IntWritable uInt = TL_DATA.get().U_INT;
 uInt.set(value);
 uInt.write(out);
}
origin: pranab/chombo

@Override
public void write(DataOutput out) throws IOException {
  first.write(out);
  second.write(out);
  
}
@Override
origin: io.prestosql.hadoop/hadoop-apache

/** write the int value */
static void writeInt(int value, DataOutputStream out) throws IOException {
 IntWritable uInt = TL_DATA.get().U_INT;
 uInt.set(value);
 uInt.write(out);
}
origin: mayconbordin/storm-applications

@Override
public void write(DataOutput out) throws IOException {
  first.write(out);
  second.write(out);
  
}
@Override
origin: apache/crunch

@Override
public void write(DataOutput out) throws IOException {
 id.write(out);
 name.write(out);
}
origin: grafos-ml/okapi

@Override
public void write(DataOutput out) throws IOException {
  pointCoordinates.write(out);
  clusterId.write(out);		
}
origin: LiveRamp/hank

public void write(DataOutput dataOutput) throws IOException {
 key.write(dataOutput);
 partition.write(dataOutput);
}
origin: MrChrisJohnson/CollabStream

public void write(DataOutput arg0) throws IOException {
  row.write(arg0);
  column.write(arg0);
  value.write(arg0);
  matrixType.write(arg0);
}
origin: MrChrisJohnson/CollabStream

public void write(DataOutput arg0) throws IOException {
  reducerNum.write(arg0);
  matItem.write(arg0);
}
origin: org.apache.hama/hama-graph

@Override
public void write(DataOutput out) throws IOException {
 out.writeByte(this.flag);
 if (isVertexMessage()) {
  // we don't need to write the classes because the other side has the same
  // classes for the two entities.
  vertexId.write(out);
  out.writeInt(numOfValues);
  out.writeInt(byteBuffer.size());
  out.write(byteBuffer.toByteArray());
 } else if (isMapMessage()) {
  map.write(out);
 } else if (isVerticesSizeMessage()) {
  integerMessage.write(out);
 } else if (isPartitioningMessage()) {
  out.writeInt(numOfValues);
  out.writeInt(byteBuffer.size());
  out.write(byteBuffer.toByteArray());
 } else {
  vertexId.write(out);
 }
}
origin: apache/hama

@Override
public void write(DataOutput out) throws IOException {
 out.writeByte(this.flag);
 if (isVertexMessage()) {
  // we don't need to write the classes because the other side has the same
  // classes for the two entities.
  vertexId.write(out);
  out.writeInt(numOfValues);
  out.writeInt(byteBuffer.size());
  out.write(byteBuffer.toByteArray());
 } else if (isMapMessage()) {
  map.write(out);
 } else if (isVerticesSizeMessage()) {
  integerMessage.write(out);
 } else if (isPartitioningMessage()) {
  out.writeInt(numOfValues);
  out.writeInt(byteBuffer.size());
  out.write(byteBuffer.toByteArray());
 } else {
  vertexId.write(out);
 }
}
origin: DigitalPebble/behemoth

protected void writeAnnotation(Annotation annot, DataOutput out,
    List<String> atypes) throws IOException {
  int typePos = atypes.indexOf(annot.getType());
  IntWritable intStringPool = new IntWritable(typePos);
  intStringPool.write(out);
  WritableUtils.writeVLong(out, annot.getStart());
  WritableUtils.writeVLong(out, annot.getEnd());
  out.writeInt(annot.getFeatureNum());
  if (annot.getFeatures() != null) {
    Iterator<String> featNameIter = annot.getFeatures().keySet()
        .iterator();
    while (featNameIter.hasNext()) {
      String fname = featNameIter.next();
      int fnamePos = atypes.indexOf(fname);
      intStringPool.set(fnamePos);
      intStringPool.write(out);
      WritableUtils.writeString(out, annot.getFeatures().get(fname));
    }
  }
}
origin: locationtech/geowave

@Override
public void write(final DataOutput out) throws IOException {
 EventType.write(out);
 Geometry.write(out);
 DetailGeometry.write(out);
 MissionUUID.write(out);
 MissionName.write(out);
 MissionNumFrames.write(out);
 TrackNumber.write(out);
 TrackUUID.write(out);
 DetailLongitude.write(out);
 DetailElevation.write(out);
 PixelRow.write(out);
 PixelColumn.write(out);
 FrameNumber.write(out);
 MotionEvent.write(out);
 ObjectClass.write(out);
 ObjectClassConf.write(out);
 ObjectClassRel.write(out);
origin: stackoverflow.com

n.write(out);
bytes.write(out);
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);
    }
  }
}
origin: izenecloud/laser

  public void write(DataOutput out) throws IOException {
    new Text(context.getSplitId()).write(out);
    double[] u = context.getUInitial();
    new IntWritable(u.length).write(out);
    for (double e : u) {
      new DoubleWritable(e).write(out);
    }
    double[] x = context.getXInitial();
    new IntWritable(x.length).write(out);
    for (double e : x) {
      new DoubleWritable(e).write(out);
    }
    double[] z = context.getZInitial();
    new IntWritable(z.length).write(out);
    for (double e : z) {
      new DoubleWritable(e).write(out);
    }

    new DoubleWritable(context.getRho()).write(out);
    new DoubleWritable(context.getLambdaValue()).write(out);
    new DoubleWritable(context.getPrimalObjectiveValue()).write(out);
    new DoubleWritable(context.getRNorm()).write(out);
    new DoubleWritable(context.getSNorm()).write(out);
  }
}
org.apache.hadoop.ioIntWritablewrite

Popular methods of IntWritable

  • get
    Return the value of this IntWritable.
  • <init>
  • set
    Set the value of this IntWritable.
  • toString
  • readFields
  • 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