protected void writeByte(MapOrListWriterImpl writer, String fieldName, DocumentReader reader) { writer.tinyInt(fieldName).writeTinyInt(reader.getByte()); }
public void copyAsValue(TinyIntWriter writer){ writer.write(holder); } }
@Override public void write(TinyIntHolder holder) { data.getMutator().setType(idx(), MinorType.TINYINT); getTinyIntWriter().setPosition(idx()); getTinyIntWriter().writeTinyInt(holder.value); }
public MapWriter map() { data.getMutator().setType(idx(), MinorType.LIST); getListWriter().setPosition(idx()); return getListWriter().map(); public ListWriter list() { data.getMutator().setType(idx(), MinorType.LIST); getListWriter().setPosition(idx()); return getListWriter().list(); public ListWriter list(String name) { data.getMutator().setType(idx(), MinorType.MAP); getMapWriter().setPosition(idx()); return getMapWriter().list(name); public MapWriter map(String name) { data.getMutator().setType(idx(), MinorType.MAP); getMapWriter().setPosition(idx()); return getMapWriter().map(name);
public void writeTinyInt(byte value) { data.getMutator().setType(idx(), MinorType.TINYINT); getTinyIntWriter().setPosition(idx()); getTinyIntWriter().writeTinyInt(value); }
private TinyIntWriter getTinyIntWriter() { if (tinyIntWriter == null) { tinyIntWriter = new NullableTinyIntWriterImpl(data.getTinyIntVector(), null); tinyIntWriter.setPosition(idx()); writers.add(tinyIntWriter); } return tinyIntWriter; }
protected void writeByte(MapOrListWriterImpl writer, String fieldName, DocumentReader reader) { writer.tinyInt(fieldName).writeTinyInt(reader.getByte()); }
public void copyAsValue(TinyIntWriter writer){ writer.write(holder); } }