Package eu.stratosphere.runtime.io.serialization.RecordDeserializer

Examples of eu.stratosphere.runtime.io.serialization.RecordDeserializer.DeserializationResult


        this.dataBuffer = boe.getBuffer();
        this.deserializer.setNextMemorySegment(this.dataBuffer.getMemorySegment(), this.dataBuffer.size());
      }
    }

    DeserializationResult deserializationResult = this.deserializer.getNextRecord(target);
    this.lastDeserializationResult = deserializationResult;

    if (deserializationResult.isBufferConsumed()) {
      releasedConsumedReadBuffer(this.dataBuffer);
      this.dataBuffer = null;
    }

    if (deserializationResult == DeserializationResult.INTERMEDIATE_RECORD_FROM_BUFFER) {
View Full Code Here


    public void sendBuffer(Buffer buffer, int targetChannel) throws IOException, InterruptedException {

      this.deserializer.setNextMemorySegment(MockEnvironment.this.mockBuffer.getMemorySegment(), MockEnvironment.this.mockBuffer.size());

      while (this.deserializer.hasUnfinishedData()) {
        DeserializationResult result = this.deserializer.getNextRecord(this.record);

        if (result.isFullRecord()) {
          this.out.add(this.record.createCopy());
        }

        if (result == DeserializationResult.LAST_RECORD_FROM_BUFFER ||
          result == DeserializationResult.PARTIAL_RECORD) {
View Full Code Here

    while (!serializedRecords.isEmpty()) {
      SerializationTestType expected = serializedRecords.poll();

      SerializationTestType actual = expected.getClass().newInstance();
      DeserializationResult result = deserializer.getNextRecord(actual);

      Assert.assertTrue(result.isFullRecord());
      Assert.assertEquals(expected, actual);
      numRecords--;
    }

View Full Code Here

TOP

Related Classes of eu.stratosphere.runtime.io.serialization.RecordDeserializer.DeserializationResult

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.