}
else if (type.getJavaType() == long.class) {
blockBuilder.appendLong((Long) value);
}
else if (type.getJavaType() == double.class) {
blockBuilder.appendDouble((Double) value);
}
else if (type.getJavaType() == Slice.class) {
blockBuilder.appendSlice(Slices.utf8Slice((String) value));
}
return blockBuilder.build();