@@ -128,26 +128,10 @@ const zeroLengthTypesSupported = new Set([
128128 dataTypes . blob
129129] ) ;
130130
131- /**
132- * @typedef {(singleTypeNames[keyof singleTypeNames] | types.dataTypes.duration | types.dataTypes.text) } SingleTypeCodes
133- * @typedef {('point' | 'polygon' | 'duration' | 'lineString' | 'dateRange') } CustomSimpleTypeCodes
134- * @typedef {(customTypeNames[CustomSimpleTypeCodes]) | CustomSimpleTypeCodes | 'empty' } CustomSimpleTypeNames
135- * @typedef {{code : SingleTypeCodes, info?: null, options? : {frozen?:boolean, reversed?:boolean} } } SingleColumnInfo
136- * @typedef {{code : (types.dataTypes.custom), info : CustomSimpleTypeNames, options? : {frozen?:boolean, reversed?:boolean}} } CustomSimpleColumnInfo
137- * @typedef {{code : (types.dataTypes.map), info : [ColumnInfo, ColumnInfo], options?: {frozen?: Boolean, reversed?: Boolean}} } MapColumnInfo
138- * @typedef {{code : (types.dataTypes.tuple), info : Array<ColumnInfo>, options?: {frozen?: Boolean, reversed?: Boolean}} } TupleColumnInfo
139- * @typedef {{code : (types.dataTypes.tuple | types.dataTypes.list)} } TupleListColumnInfoWithoutSubtype TODO: guessDataType can return null on tuple/list info, why?
140- * @typedef {{code : (types.dataTypes.list | types.dataTypes.set), info : ColumnInfo, options?: {frozen?: Boolean, reversed?: Boolean}} } ListSetColumnInfo
141- * @typedef {{code : (types.dataTypes.udt), info : {name : string, fields : Array<{name : string, type : ColumnInfo}>}, options? : {frozen?: Boolean, reversed?: Boolean}} } UdtColumnInfo
142- * @typedef {{code : (types.dataTypes.custom), customTypeName : ('vector'), info : [ColumnInfo, number], options? : {frozen?:boolean, reversed?:boolean}} } VectorColumnInfo
143- * @typedef {{code : (types.dataTypes.custom), info : string, options? : {frozen?:boolean, reversed?:boolean}} } OtherCustomColumnInfo
144- * @typedef {SingleColumnInfo | CustomSimpleColumnInfo | MapColumnInfo | TupleColumnInfo | ListSetColumnInfo | VectorColumnInfo | OtherCustomColumnInfo | UdtColumnInfo | TupleListColumnInfoWithoutSubtype } ColumnInfo If this is a simple type, info is null; if this is a collection type with a simple subtype, info is a string, if this is a nested collection type, info is a ColumnInfo object
145- */
146131
147132/**
148133 * Serializes and deserializes to and from a CQL type and a Javascript Type.
149134 * @param {Number } protocolVersion
150- * @param {import('./client.js').ClientOptions } options
151135 * @constructor
152136 */
153137function Encoder ( protocolVersion , options ) {
@@ -212,7 +196,6 @@ function defineInstanceMembers() {
212196 *
213197 * @param {Buffer } bytes
214198 * @param {OtherCustomColumnInfo | VectorColumnInfo } columnInfo
215- * @returns
216199 */
217200 this . decodeCustom = function ( bytes , columnInfo ) {
218201
@@ -750,7 +733,6 @@ function defineInstanceMembers() {
750733 *
751734 * @param {any } value
752735 * @param {OtherCustomColumnInfo | VectorColumnInfo } columnInfo
753- * @returns
754736 */
755737 this . encodeCustom = function ( value , columnInfo ) {
756738
@@ -908,7 +890,6 @@ function defineInstanceMembers() {
908890 *
909891 * @param {any } value
910892 * @param {UdtColumnInfo } columnInfo
911- * @returns
912893 */
913894 this . encodeUdt = function ( value , columnInfo ) {
914895 const udtInfo = columnInfo . info ;
@@ -939,7 +920,6 @@ function defineInstanceMembers() {
939920 *
940921 * @param {any } value
941922 * @param {TupleColumnInfo } columnInfo
942- * @returns
943923 */
944924 this . encodeTuple = function ( value , columnInfo ) {
945925 const tupleInfo = columnInfo . info ;
@@ -1105,7 +1085,6 @@ function defineInstanceMembers() {
11051085 /**
11061086 * If not provided, it uses the array of buffers or the parameters and hints to build the routingKey
11071087 * @param {Array } params
1108- * @param {import('..').ExecutionOptions } execOptions
11091088 * @param [keys] parameter keys and positions in the params array
11101089 * @throws TypeError
11111090 * @internal
0 commit comments