public class ValueWriters
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ValueWriters.StructWriter<S> |
Modifier and Type | Method and Description |
---|---|
static <T> ValueWriter<java.util.Collection<T>> |
array(ValueWriter<T> elementWriter) |
static <K,V> ValueWriter<java.util.Map<K,V>> |
arrayMap(ValueWriter<K> keyWriter,
ValueWriter<V> valueWriter) |
static ValueWriter<java.lang.Boolean> |
booleans() |
static ValueWriter<java.nio.ByteBuffer> |
byteBuffers() |
static ValueWriter<byte[]> |
bytes() |
static ValueWriter<java.math.BigDecimal> |
decimal(int precision,
int scale) |
static ValueWriter<java.lang.Double> |
doubles() |
static ValueWriter<byte[]> |
fixed(int length) |
static ValueWriter<java.lang.Float> |
floats() |
static ValueWriter<org.apache.avro.generic.GenericData.Fixed> |
genericFixed(int length) |
static ValueWriter<java.lang.Integer> |
ints() |
static ValueWriter<java.lang.Long> |
longs() |
static <K,V> ValueWriter<java.util.Map<K,V>> |
map(ValueWriter<K> keyWriter,
ValueWriter<V> valueWriter) |
static ValueWriter<java.lang.Void> |
nulls() |
static <T> ValueWriter<T> |
option(int nullIndex,
ValueWriter<T> writer) |
static ValueWriter<org.apache.avro.generic.IndexedRecord> |
record(java.util.List<ValueWriter<?>> writers) |
static ValueWriter<java.lang.Short> |
shorts() |
static ValueWriter<java.lang.Object> |
strings() |
static ValueWriter<java.lang.Byte> |
tinyints() |
static ValueWriter<org.apache.avro.util.Utf8> |
utf8s() |
static ValueWriter<java.util.UUID> |
uuids() |
public static ValueWriter<java.lang.Void> nulls()
public static ValueWriter<java.lang.Boolean> booleans()
public static ValueWriter<java.lang.Byte> tinyints()
public static ValueWriter<java.lang.Short> shorts()
public static ValueWriter<java.lang.Integer> ints()
public static ValueWriter<java.lang.Long> longs()
public static ValueWriter<java.lang.Float> floats()
public static ValueWriter<java.lang.Double> doubles()
public static ValueWriter<java.lang.Object> strings()
public static ValueWriter<org.apache.avro.util.Utf8> utf8s()
public static ValueWriter<java.util.UUID> uuids()
public static ValueWriter<byte[]> fixed(int length)
public static ValueWriter<org.apache.avro.generic.GenericData.Fixed> genericFixed(int length)
public static ValueWriter<byte[]> bytes()
public static ValueWriter<java.nio.ByteBuffer> byteBuffers()
public static ValueWriter<java.math.BigDecimal> decimal(int precision, int scale)
public static <T> ValueWriter<T> option(int nullIndex, ValueWriter<T> writer)
public static <T> ValueWriter<java.util.Collection<T>> array(ValueWriter<T> elementWriter)
public static <K,V> ValueWriter<java.util.Map<K,V>> arrayMap(ValueWriter<K> keyWriter, ValueWriter<V> valueWriter)
public static <K,V> ValueWriter<java.util.Map<K,V>> map(ValueWriter<K> keyWriter, ValueWriter<V> valueWriter)
public static ValueWriter<org.apache.avro.generic.IndexedRecord> record(java.util.List<ValueWriter<?>> writers)