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