public class LobMode<V> extends java.lang.Object implements org.apache.derby.agg.Aggregator<V,V,LobMode<V>>
This is a version of GenericMode for use with types which are not Comparable. The class started out for use with Blob and Clob but was pressed into service for other types also.
In particular, this is a mode aggregator for use with the JDBC date/time classes too. You can't use GenericMode with those types because they do not satisfy its type bounds. That is because they inherit the Comparable implementation of java.util.Date rather than implementing their own more specific version of Comparable. That is, java.sql.Date implements Comparable<java.util.Date> rather than Comparable<java.sql.Date>.
Modifier and Type | Class and Description |
---|---|
static class |
LobMode.Accumulator<V> |
static class |
LobMode.BinaryMode |
static class |
LobMode.BlobMode |
static class |
LobMode.ClobMode |
static class |
LobMode.DateMode |
static class |
LobMode.TimeMode |
static class |
LobMode.TimestampMode |
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<java.lang.String,LobMode.Accumulator<V>> |
_accumulators |
Constructor and Description |
---|
LobMode() |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(V value) |
private LobMode.Accumulator<V> |
getAccumulator(V value) |
void |
init() |
void |
merge(LobMode<V> otherAggregator) |
V |
terminate() |
(package private) static java.lang.String |
toString(java.lang.Object raw) |
private java.util.HashMap<java.lang.String,LobMode.Accumulator<V>> _accumulators
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.