@Test public void testPut() { int colNum = schema.size(); LazyTuple t1 = new LazyTuple(schema, new byte[colNum][], -1); t1.put(0, DatumFactory.createText("str")); t1.put(1, DatumFactory.createInt4(2)); t1.put(10, DatumFactory.createFloat4(0.76f)); assertTrue(t1.contains(0)); assertTrue(t1.contains(1)); assertEquals(t1.getText(0), "str"); assertEquals(t1.get(1).asInt4(), 2); assertTrue(t1.get(10).asFloat4() == 0.76f); }
@Override public void put(int fieldId, Datum value) { values[fieldId] = value; textBytes[fieldId] = null; }
LazyTuple implements Tuple, Cloneable { @Override public void put(int fieldId, Datum value) { values[fieldId] = value; textBytes[fieldId] = null; } }
LazyTuple implements Tuple, Cloneable { @Override public void put(int fieldId, Datum value) { values[fieldId] = value; textBytes[fieldId] = null; } LazyTuple(Schema schema, byte[][] textBytes, long offset);  LazyTuple(Schema schema, byte[][] textBytes, long offset, byte[] nullBytes, SerializerDeserializer serde);  LazyTuple(LazyTuple tuple); }
LazyTuple implements Tuple, Cloneable { @Override public void put(int fieldId, Datum value) { values[fieldId] = value; textBytes[fieldId] = null; } LazyTuple(Schema schema, byte[][] textBytes, long offset);  LazyTuple(Schema schema, byte[][] textBytes, long offset, byte[] nullBytes, SerializerDeserializer serde);  LazyTuple(LazyTuple tuple); @Override int size(); @Override boolean contains(int fieldid); @Override boolean isBlank(int fieldid); @Override boolean isBlankOrNull(int fieldid); @Override void insertTuple(int fieldId, Tuple tuple); @Override void clear(); @Override void put(int fieldId, Datum value); @Override void put(Datum[] values); @Override Datum asDatum(int fieldId); @Override TajoDataTypes.Type type(int fieldId); @Override int size(int fieldId); @Override void clearOffset(); Datum get(int fieldId); @Override void setOffset(long offset); @Override long getOffset(); @Override boolean getBool(int fieldId); @Override byte getByte(int fieldId); @Override char getChar(int fieldId); @Override byte [] getBytes(int fieldId); @Override byte[] getTextBytes(int fieldId); @Override short getInt2(int fieldId); @Override int getInt4(int fieldId); @Override long getInt8(int fieldId); @Override float getFloat4(int fieldId); @Override double getFloat8(int fieldId); @Override String getText(int fieldId); @Override TimeMeta getTimeDate(int fieldId); @Override ProtobufDatum getProtobufDatum(int fieldId); @Override IntervalDatum getInterval(int fieldId); @Override char[] getUnicodeChars(int fieldId); @Override String toString(); @Override int hashCode(); @Override Datum[] getValues(); @Override Tuple clone(); @Override boolean equals(Object obj); }
LazyTuple implements Tuple, Cloneable { @Override public void put(int fieldId, Datum value) { values[fieldId] = value; textBytes[fieldId] = null; } LazyTuple(Schema schema, byte[][] textBytes, long offset);  LazyTuple(Schema schema, byte[][] textBytes, long offset, byte[] nullBytes, SerializerDeserializer serde);  LazyTuple(LazyTuple tuple); @Override int size(); @Override boolean contains(int fieldid); @Override boolean isBlank(int fieldid); @Override boolean isBlankOrNull(int fieldid); @Override void insertTuple(int fieldId, Tuple tuple); @Override void clear(); @Override void put(int fieldId, Datum value); @Override void put(Datum[] values); @Override Datum asDatum(int fieldId); @Override TajoDataTypes.Type type(int fieldId); @Override int size(int fieldId); @Override void clearOffset(); Datum get(int fieldId); @Override void setOffset(long offset); @Override long getOffset(); @Override boolean getBool(int fieldId); @Override byte getByte(int fieldId); @Override char getChar(int fieldId); @Override byte [] getBytes(int fieldId); @Override byte[] getTextBytes(int fieldId); @Override short getInt2(int fieldId); @Override int getInt4(int fieldId); @Override long getInt8(int fieldId); @Override float getFloat4(int fieldId); @Override double getFloat8(int fieldId); @Override String getText(int fieldId); @Override TimeMeta getTimeDate(int fieldId); @Override ProtobufDatum getProtobufDatum(int fieldId); @Override IntervalDatum getInterval(int fieldId); @Override char[] getUnicodeChars(int fieldId); @Override String toString(); @Override int hashCode(); @Override Datum[] getValues(); @Override Tuple clone(); @Override boolean equals(Object obj);  }