Package org.apache.flink.types

Examples of org.apache.flink.types.ByteValue


    }
    if(hadoopType instanceof org.apache.hadoop.io.BooleanWritable) {
      return new BooleanValue(((BooleanWritable)hadoopType).get());
    }
    if(hadoopType instanceof org.apache.hadoop.io.ByteWritable) {
      return new ByteValue(((ByteWritable)hadoopType).get());
    }
    if (hadoopType instanceof NullWritable) {
      return NullValue.getInstance();
    }
   
View Full Code Here


    return false;
  }
 
  @Override
  public ByteValue createInstance() {
    return new ByteValue();
  }
View Full Code Here

    return new ByteValue();
  }

  @Override
  public ByteValue copy(ByteValue from) {
    return copy(from, new ByteValue());
  }
View Full Code Here

    record.write(target);
  }

  @Override
  public ByteValue deserialize(DataInputView source) throws IOException {
    return deserialize(new ByteValue(), source);
  }
View Full Code Here

    return limit;
  }
 
  @Override
  public ByteValue createValue() {
    return new ByteValue();
  }
View Full Code Here

  }
 
  @Override
  public ByteValue[] getValidTestResults() {
    return new ByteValue[] {
      new ByteValue((byte) 0), new ByteValue((byte) 1), new ByteValue((byte) 76), new ByteValue((byte) -66),
      new ByteValue(Byte.MAX_VALUE), new ByteValue(Byte.MIN_VALUE)
    };
  }
View Full Code Here

  protected ByteValue[] getTestData() {
    Random rnd = new Random(874597969123412341L);
    byte byteArray[] = new byte[1];
    rnd.nextBytes(byteArray);
   
    return new ByteValue[] {new ByteValue((byte) 0), new ByteValue((byte) 1), new ByteValue((byte) -1),
              new ByteValue(Byte.MAX_VALUE), new ByteValue(Byte.MIN_VALUE),
              new ByteValue(byteArray[0]), new ByteValue((byte) -byteArray[0])};
  }
View Full Code Here

TOP

Related Classes of org.apache.flink.types.ByteValue

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.