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

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

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • CodeWhisperer alternatives
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