Package org.teiid.client
Class BatchSerializer
- java.lang.Object
-
- org.teiid.client.BatchSerializer
-
public class BatchSerializer extends Object
- Since:
- 4.2
- version 0: starts with 7.1 and uses simple serialization too broadly
- version 1: starts with 8.0 uses better string, blob, clob, xml, etc. add varbinary support. however was possibly silently truncating date/time values that were outside of jdbc allowed values
- version 2: starts with 8.2 and adds better array serialization and uses a safer date/time serialization
- version 3: starts with 8.6 and adds better repeated string performance
- version 4: starts with 8.10 and adds the geometry type
- version 5: starts with 11.2 and adds the geography and json types
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BatchSerializer.ObjectColumnSerializer
-
Field Summary
Fields Modifier and Type Field Description static long
MAX_DATE_32
static long
MAX_TIME_32
static long
MIN_DATE_32
static long
MIN_TIME_32
static byte
VERSION_GEOGRAPHY
static byte
VERSION_GEOMETRY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getClientSafeType(String type, byte clientSerializationVersion)
static List<List<Object>>
readBatch(ObjectInput in, String[] types)
static void
writeBatch(ObjectOutput out, String[] types, List<? extends List<?>> batch)
static void
writeBatch(ObjectOutput out, String[] types, List<? extends List<?>> batch, byte version)
-
-
-
Field Detail
-
VERSION_GEOMETRY
public static final byte VERSION_GEOMETRY
- See Also:
- Constant Field Values
-
VERSION_GEOGRAPHY
public static final byte VERSION_GEOGRAPHY
- See Also:
- Constant Field Values
-
MIN_DATE_32
public static final long MIN_DATE_32
-
MAX_DATE_32
public static final long MAX_DATE_32
-
MIN_TIME_32
public static final long MIN_TIME_32
-
MAX_TIME_32
public static final long MAX_TIME_32
-
-
Method Detail
-
writeBatch
public static void writeBatch(ObjectOutput out, String[] types, List<? extends List<?>> batch) throws IOException
- Throws:
IOException
-
writeBatch
public static void writeBatch(ObjectOutput out, String[] types, List<? extends List<?>> batch, byte version) throws IOException
- Throws:
IOException
-
readBatch
public static List<List<Object>> readBatch(ObjectInput in, String[] types) throws IOException, ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
-
-