Package oracle.sql.json
Interface OracleJsonVector
- All Superinterfaces:
OracleJsonValue
A SQL/JSON vector.
-
Nested Class Summary
Nested classes/interfaces inherited from interface oracle.sql.json.OracleJsonValue
OracleJsonValue.OracleJsonType -
Field Summary
Fields inherited from interface oracle.sql.json.OracleJsonValue
FALSE, NULL, TRUE -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares the specified object with thisOracleJsonVector.byte[]Converts this vector into an array of 8-bit integers.double[]Returns this vector as an array of doubles.float[]Converts this vector into an array of floats.Returns this value as aVECTORinthashCode()Returns a hash code for the vector.Methods inherited from interface oracle.sql.json.OracleJsonValue
asJsonArray, asJsonBinary, asJsonDate, asJsonDecimal, asJsonDouble, asJsonFloat, asJsonIntervalDS, asJsonIntervalYM, asJsonNumber, asJsonObject, asJsonString, asJsonTimestamp, asJsonTimestampTZ, asJsonVector, getOracleJsonType, toString, wrap
-
Method Details
-
getVECTOR
VECTOR getVECTOR()Returns this value as aVECTOR -
getDoubleArray
double[] getDoubleArray()Returns this vector as an array of doubles. The returned value is a lossless representation of the vector.- Returns:
- An array containing the dimension values of a vector.
- Throws:
OracleJsonException- if an error occurs converting the vector to an array of doubles
-
getFloatArray
float[] getFloatArray()Converts this vector into an array of floats.This method may perform lossy conversions as specified in the "SQL to Java Conversions" section of the JavaDoc for
OracleType.VECTOR- Returns:
- An array containing the dimension values of a vector.
- Throws:
OracleJsonException- if an error occurs converting the vector to an array of floats
-
getByteArray
byte[] getByteArray()Converts this vector into an array of 8-bit integers.This method may perform lossy conversions as specified in the "SQL to Java Conversions" section of the JavaDoc for
OracleType.VECTOR- Returns:
- An array containing the dimension values of a vector.
- Throws:
OracleJsonException- if an error occurs converting the vector to an array of integers
-
hashCode
int hashCode()Returns a hash code for the vector. -
equals
Compares the specified object with thisOracleJsonVector. Returns true if and only if the other object is an instance ofOracleJsonVectorthat is equal to this one.
-