Package co.cask.cdap.common.stream

Examples of co.cask.cdap.common.stream.DefaultStreamEvent


    }
    if (StreamEvent.class.isAssignableFrom(rawType)) {
      return new Instantiator<T>() {
        @Override
        public T create() {
          return (T) new DefaultStreamEvent();
        }
      };
    }
    return null;
  }
View Full Code Here


        Preconditions.checkArgument(schemaHash.equals(StreamEventDataCodec.STREAM_DATA_SCHEMA.getSchemaHash()),
                                    "Schema from payload not matching with StreamEventData schema.");

        Decoder decoder = new BinaryDecoder(new ByteBufferInputStream(buffer));
        // In old schema, timestamp is not recorded.
        builder.add(new DefaultStreamEvent(StreamEventDataCodec.decode(decoder), 0));
      }
    }
    final List<StreamEvent> events = builder.build();

    return new DequeueResult<StreamEvent>() {
View Full Code Here

TOP

Related Classes of co.cask.cdap.common.stream.DefaultStreamEvent

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.