Package org.apache.avro.mapred

Examples of org.apache.avro.mapred.AvroKey


      public void remove() {
        throw new UnsupportedOperationException();
      }
      Object lookahead() {
        try {
          AvroKey k = new AvroKey();
          AvroValue v = new AvroValue();

          k = (AvroKey) reader.next((Object) null);
          if (k != null) {
            v = (AvroValue) reader.getCurrentValue((Object) v);             
            GenericData.Record cur = new GenericData.Record(schema);
            cur.put("key", k.datum());
            cur.put("val", v.datum());
            return cur;
          } else {
            reader.close();
            reader = null;
View Full Code Here

TOP

Related Classes of org.apache.avro.mapred.AvroKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.