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