List of usage examples for org.apache.hadoop.io BytesWritable set
public void set(BytesWritable newData)
From source file:ca.sparkera.adapters.mapred.MainframeVBRecordReader.java
License:Apache License
@Override public synchronized boolean next(LongWritable key, BytesWritable value) throws IOException { boolean dataRead = reader.nextKeyValue(); if (dataRead) { LongWritable newKey = reader.getCurrentKey(); BytesWritable newValue = reader.getCurrentValue(); key.set(newKey.get());//from ww w. ja va 2s. co m value.set(newValue); } return dataRead; }
From source file:com.ebay.nest.io.sede.objectinspector.primitive.WritableBinaryObjectInspector.java
License:Apache License
@Override public BytesWritable set(Object o, BytesWritable bw) { BytesWritable incoming = (BytesWritable) o; if (bw != null) { incoming.set(bw); }// w ww. ja va 2 s.c o m return incoming; }
From source file:com.ebay.nest.io.sede.objectinspector.primitive.WritableBinaryObjectInspector.java
License:Apache License
@Override public BytesWritable create(BytesWritable bw) { BytesWritable newCpy = new BytesWritable(); if (null != bw) { newCpy.set(bw); }//from w w w . ja v a 2 s. c o m return newCpy; }