List of usage examples for org.apache.hadoop.io Text set
public void set(Text other)
From source file:com.facebook.presto.accumulo.serializers.LexicoderRowSerializer.java
License:Apache License
@Override public void setShort(Text text, Short value) { text.set(encode(SMALLINT, value)); }
From source file:com.facebook.presto.accumulo.serializers.LexicoderRowSerializer.java
License:Apache License
@Override public void setTime(Text text, Time value) { text.set(encode(TIME, value)); }
From source file:com.facebook.presto.accumulo.serializers.LexicoderRowSerializer.java
License:Apache License
@Override public void setTimestamp(Text text, Timestamp value) { text.set(encode(TIMESTAMP, value)); }
From source file:com.facebook.presto.accumulo.serializers.LexicoderRowSerializer.java
License:Apache License
@Override public void setVarbinary(Text text, byte[] value) { text.set(encode(VARBINARY, value)); }
From source file:com.facebook.presto.accumulo.serializers.LexicoderRowSerializer.java
License:Apache License
@Override public void setVarchar(Text text, String value) { text.set(encode(VARCHAR, value)); }
From source file:com.facebook.presto.accumulo.serializers.StringRowSerializer.java
License:Apache License
@Override public void setBoolean(Text text, Boolean value) { text.set(value.toString().getBytes(UTF_8)); }
From source file:com.facebook.presto.accumulo.serializers.StringRowSerializer.java
License:Apache License
@Override public void setByte(Text text, Byte value) { text.set(value.toString().getBytes(UTF_8)); }
From source file:com.facebook.presto.accumulo.serializers.StringRowSerializer.java
License:Apache License
@Override public void setDate(Text text, Date value) { text.set(Long.toString(value.getTime()).getBytes(UTF_8)); }
From source file:com.facebook.presto.accumulo.serializers.StringRowSerializer.java
License:Apache License
@Override public void setDouble(Text text, Double value) { text.set(value.toString().getBytes(UTF_8)); }
From source file:com.facebook.presto.accumulo.serializers.StringRowSerializer.java
License:Apache License
@Override public void setFloat(Text text, Float value) { text.set(value.toString().getBytes(UTF_8)); }