Class DeephavenForwardOnlyResultSet

java.lang.Object
io.deephaven.jdbc.ReadOnlyResultSet
io.deephaven.jdbc.DeephavenForwardOnlyResultSet
All Implemented Interfaces:
AutoCloseable, ResultSet, Wrapper

public class DeephavenForwardOnlyResultSet extends ReadOnlyResultSet
A ResultSet implementation that iterates the rows of an InitialSnapshot object (a snapshot of a portion of (a snapshot of) a Deephaven table from the server). Internally, an InitialSnapshot is just an array of column data arrays. For each directly supported SQL type, there are internal getter methods (ie getLongInternal) designed to work with that column type. These getters are efficient but expect the raw column data to be a specific type. By contrast, the public getter methods (ie getLong) are designed to be as forgiving as possible. If the source type can be converted to the requested type, the getter will perform the conversion as intelligently as possible. Note that we generally avoid exposing the raw column data to the client. This is so that this class can be reimplemented without a risk of breaking client code. For example, Timestamps are currently encoded as long values, but we do not want the client to know or depend on this. The exception to this are column types not explicitly supported, which get mapped to the the JAVA_OBJECT type. Customers who want maximum portability over time should avoid custom types.