protected void writeLong(MapOrListWriterImpl writer, String fieldName, DocumentReader reader) { writer.bigInt(fieldName).writeBigInt(reader.getLong()); }
public void copyAsValue(BigIntWriter writer){ writer.write(holder); } }
public void writeBigInt(long value) { data.getMutator().setType(idx(), MinorType.BIGINT); getBigIntWriter().setPosition(idx()); getBigIntWriter().writeBigInt(value); }
private BigIntWriter getBigIntWriter() { if (bigIntWriter == null) { bigIntWriter = new NullableBigIntWriterImpl(data.getBigIntVector(), null); bigIntWriter.setPosition(idx()); writers.add(bigIntWriter); } return bigIntWriter; }
@Override public void write(BigIntHolder holder) { data.getMutator().setType(idx(), MinorType.BIGINT); getBigIntWriter().setPosition(idx()); getBigIntWriter().writeBigInt(holder.value); }
@Override public void writeInteger(boolean isNull) throws IOException { BigIntWriter intWriter = writer.bigInt(); if(!isNull){ intWriter.writeBigInt(Long.parseLong(parser.getValueAsString())); } }
@Override public void addLong(long value) { holder.value = value; writer.write(holder); } }
@Override public void writeInteger(boolean isNull) throws IOException { @SuppressWarnings("resource") BigIntWriter intWriter = writer.bigInt(fieldName); if(!isNull){ intWriter.writeBigInt(Long.parseLong(parser.getValueAsString())); } }
public void copyAsValue(BigIntWriter writer){ writer.write(holder); } }
/** * This method is referenced and called via reflection. This is added as a parsing target for the parser. It will get * called when the value of a log field is a Long data type. * * @param field name of field * @param value value of field */ @SuppressWarnings("unused") public void set(final String field, final Long value) { if (value != null) { final BigIntWriter w = longs.get(field); if (w != null) { LOG.trace("Parsed field: {}, as long: {}", field, value); w.writeBigInt(value); } else { LOG.warn("No 'long' writer found for field: {}", field); } } }
/** * This method is referenced and called via reflection. When the parser processes a field like: * HTTP.URI:request.firstline.uri.query.* where star is an arbitrary field that the parser found this method will be * invoked. <br> * * @param field name of field * @param value value of field */ @SuppressWarnings("unused") public void setWildcard(final String field, final Long value) { if (value != null) { final MapWriter mapWriter = getWildcardWriter(field); LOG.trace("Parsed wildcard field: {}, as long: {}", field, value); final BigIntWriter w = mapWriter.bigInt(cleanExtensions.get(field)); w.writeBigInt(value); } }
protected void writeLong(MapOrListWriterImpl writer, String fieldName, DocumentReader reader) { writer.bigInt(fieldName).writeBigInt(reader.getLong()); }
map.float8(fieldName).writeFloat8(parser.getDoubleValue()); } else { map.bigInt(fieldName).writeBigInt(parser.getLongValue());
break; default: writer.bigInt(fieldName).writeBigInt((Long) value);
list.float8().writeFloat8(parser.getDoubleValue()); } else { list.bigInt().writeBigInt(parser.getLongValue());
writer.integer(tagName).writeInt((Integer) value); } else if (value instanceof Long) { writer.bigInt(tagName).writeBigInt((Long) value); } else if (value instanceof Float) { writer.float4(tagName).writeFloat4((Float) value); ListWriter listWriter = writer.list(tagName); for (long v : (long[]) value) { listWriter.bigInt().writeBigInt(v);