Uses of Class
org.apache.cassandra.transport.ProtocolVersion
-
Packages that use ProtocolVersion Package Description org.apache.cassandra.cql3 org.apache.cassandra.cql3.functions org.apache.cassandra.cql3.functions.types Contains pieces of the Java Driver that are needed to handle data types in C* User-Defined-Functions/Aggregates.org.apache.cassandra.cql3.selection org.apache.cassandra.db org.apache.cassandra.db.marshal org.apache.cassandra.serializers org.apache.cassandra.service.pager org.apache.cassandra.transport org.apache.cassandra.transport.messages -
-
Uses of ProtocolVersion in org.apache.cassandra.cql3
Methods in org.apache.cassandra.cql3 that return ProtocolVersion Modifier and Type Method Description abstract ProtocolVersionQueryOptions. getProtocolVersion()The protocol version for the query.Methods in org.apache.cassandra.cql3 with parameters of type ProtocolVersion Modifier and Type Method Description static QueryOptionsQueryOptions. create(ConsistencyLevel consistency, java.util.List<java.nio.ByteBuffer> values, boolean skipMetadata, int pageSize, PagingState pagingState, ConsistencyLevel serialConsistency, ProtocolVersion version, java.lang.String keyspace)static QueryOptionsQueryOptions. create(ConsistencyLevel consistency, java.util.List<java.nio.ByteBuffer> values, boolean skipMetadata, int pageSize, PagingState pagingState, ConsistencyLevel serialConsistency, ProtocolVersion version, java.lang.String keyspace, long timestamp, int nowInSeconds)ResultSetResultSet.Codec. decode(io.netty.buffer.ByteBuf body, ProtocolVersion version)voidResultSet.Codec. encode(ResultSet rs, io.netty.buffer.ByteBuf dest, ProtocolVersion version)intResultSet.Codec. encodedSize(ResultSet rs, ProtocolVersion version)static QueryOptionsQueryOptions. forProtocolVersion(ProtocolVersion protocolVersion)static Lists.ValueLists.Value. fromSerialized(java.nio.ByteBuffer value, ListType type, ProtocolVersion version)static Maps.ValueMaps.Value. fromSerialized(java.nio.ByteBuffer value, MapType type, ProtocolVersion version)static Sets.ValueSets.Value. fromSerialized(java.nio.ByteBuffer value, SetType type, ProtocolVersion version)java.nio.ByteBufferConstants.Value. get(ProtocolVersion protocolVersion)java.nio.ByteBufferLists.Value. get(ProtocolVersion protocolVersion)java.nio.ByteBufferMaps.Value. get(ProtocolVersion protocolVersion)java.nio.ByteBufferSets.Value. get(ProtocolVersion protocolVersion)abstract java.nio.ByteBufferTerm.Terminal. get(ProtocolVersion protocolVersion)java.nio.ByteBufferTuples.InValue. get(ProtocolVersion protocolVersion)java.nio.ByteBufferTuples.Value. get(ProtocolVersion protocolVersion)java.nio.ByteBufferUserTypes.Value. get(ProtocolVersion protocolVersion)java.lang.StringCQL3Type.Collection. toCQLLiteral(java.nio.ByteBuffer buffer, ProtocolVersion version)java.lang.StringCQL3Type.Custom. toCQLLiteral(java.nio.ByteBuffer buffer, ProtocolVersion version)java.lang.StringCQL3Type.Native. toCQLLiteral(java.nio.ByteBuffer buffer, ProtocolVersion version)Delegate toTypeSerializer.toCQLLiteral(ByteBuffer)for native types as most CQL literal representations work fine with the defaultTypeSerializer.toString(Object)TypeSerializer.deserialize(ByteBuffer)implementations.java.lang.StringCQL3Type. toCQLLiteral(java.nio.ByteBuffer bytes, ProtocolVersion version)Generates CQL literal from a binary value of this type.java.lang.StringCQL3Type.Tuple. toCQLLiteral(java.nio.ByteBuffer buffer, ProtocolVersion version)java.lang.StringCQL3Type.UserDefined. toCQLLiteral(java.nio.ByteBuffer buffer, ProtocolVersion version) -
Uses of ProtocolVersion in org.apache.cassandra.cql3.functions
Methods in org.apache.cassandra.cql3.functions with parameters of type ProtocolVersion Modifier and Type Method Description voidAggregateFunction.Aggregate. addInput(ProtocolVersion protocolVersion, java.util.List<java.nio.ByteBuffer> values)Adds the specified input to this aggregate.protected java.lang.ObjectJavaUDF. compose(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected static java.lang.ObjectUDFunction. compose(TypeCodec<java.lang.Object>[] codecs, ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected java.lang.ObjectUDFunction. compose(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)Used by UDF implementations (both Java code generated byJavaBasedUDFunctionand script executorScriptBasedUDFunction) to convert the C* serialized representation to the Java object representation.protected booleanJavaUDF. compose_boolean(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected byteJavaUDF. compose_byte(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected doubleJavaUDF. compose_double(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected floatJavaUDF. compose_float(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected intJavaUDF. compose_int(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected longJavaUDF. compose_long(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)protected shortJavaUDF. compose_short(ProtocolVersion protocolVersion, int argIndex, java.nio.ByteBuffer value)java.nio.ByteBufferAggregateFunction.Aggregate. compute(ProtocolVersion protocolVersion)Computes and returns the aggregate current value.protected java.nio.ByteBufferJavaUDF. decompose(ProtocolVersion protocolVersion, java.lang.Object value)protected static java.nio.ByteBufferUDFunction. decompose(TypeCodec<java.lang.Object> codec, ProtocolVersion protocolVersion, java.lang.Object value)protected java.nio.ByteBufferUDFunction. decompose(ProtocolVersion protocolVersion, java.lang.Object value)Used by UDF implementations (both Java code generated byJavaBasedUDFunctionand script executorScriptBasedUDFunction) to convert the Java object representation for the return value to the C* serialized representation.static java.lang.ObjectUDHelper. deserialize(TypeCodec<?> codec, ProtocolVersion protocolVersion, java.nio.ByteBuffer value)java.nio.ByteBufferFromJsonFct. execute(ProtocolVersion protocolVersion, java.util.List<java.nio.ByteBuffer> parameters)java.nio.ByteBufferScalarFunction. execute(ProtocolVersion protocolVersion, java.util.List<java.nio.ByteBuffer> parameters)Applies this function to the specified parameter.java.nio.ByteBufferToJsonFct. execute(ProtocolVersion protocolVersion, java.util.List<java.nio.ByteBuffer> parameters)java.nio.ByteBufferTokenFct. execute(ProtocolVersion protocolVersion, java.util.List<java.nio.ByteBuffer> parameters)java.nio.ByteBufferUDFunction. execute(ProtocolVersion protocolVersion, java.util.List<java.nio.ByteBuffer> parameters)protected abstract java.lang.ObjectJavaUDF. executeAggregateImpl(ProtocolVersion protocolVersion, java.lang.Object firstParam, java.util.List<java.nio.ByteBuffer> params)protected java.lang.ObjectJavaBasedUDFunction. executeAggregateUserDefined(ProtocolVersion protocolVersion, java.lang.Object firstParam, java.util.List<java.nio.ByteBuffer> params)protected abstract java.lang.ObjectUDFunction. executeAggregateUserDefined(ProtocolVersion protocolVersion, java.lang.Object firstParam, java.util.List<java.nio.ByteBuffer> parameters)java.lang.ObjectUDFunction. executeForAggregate(ProtocolVersion protocolVersion, java.lang.Object firstParam, java.util.List<java.nio.ByteBuffer> parameters)LikeScalarFunction.execute(ProtocolVersion, List)but the first parameter is already in non-serialized form.protected abstract java.nio.ByteBufferJavaUDF. executeImpl(ProtocolVersion protocolVersion, java.util.List<java.nio.ByteBuffer> params)protected java.nio.ByteBufferJavaBasedUDFunction. executeUserDefined(ProtocolVersion protocolVersion, java.util.List<java.nio.ByteBuffer> params)protected abstract java.nio.ByteBufferUDFunction. executeUserDefined(ProtocolVersion protocolVersion, java.util.List<java.nio.ByteBuffer> parameters)default ScalarFunctionScalarFunction. partialApplication(ProtocolVersion protocolVersion, java.util.List<java.nio.ByteBuffer> partialParameters)Does a partial application of the function.static java.nio.ByteBufferUDHelper. serialize(TypeCodec<?> codec, ProtocolVersion protocolVersion, java.lang.Object value) -
Uses of ProtocolVersion in org.apache.cassandra.cql3.functions.types
Fields in org.apache.cassandra.cql3.functions.types declared as ProtocolVersion Modifier and Type Field Description protected ProtocolVersionAbstractGettableByIndexData. protocolVersionprotected ProtocolVersionAbstractGettableByIndexData. protocolVersionprotected ProtocolVersionAbstractGettableByIndexData. protocolVersionMethods in org.apache.cassandra.cql3.functions.types with parameters of type ProtocolVersion Modifier and Type Method Description CTypeCodec.AbstractCollectionCodec. deserialize(java.nio.ByteBuffer bytes, ProtocolVersion protocolVersion)java.util.Map<K,V>TypeCodec.AbstractMapCodec. deserialize(java.nio.ByteBuffer bytes, ProtocolVersion protocolVersion)TTypeCodec.AbstractTupleCodec. deserialize(java.nio.ByteBuffer bytes, ProtocolVersion protocolVersion)TTypeCodec.AbstractUDTCodec. deserialize(java.nio.ByteBuffer bytes, ProtocolVersion protocolVersion)abstract TTypeCodec. deserialize(java.nio.ByteBuffer bytes, ProtocolVersion protocolVersion)Deserialize the givenByteBufferinstance according to the CQL type handled by this codec.java.lang.BooleanTypeCodec.PrimitiveBooleanCodec. deserialize(java.nio.ByteBuffer bytes, ProtocolVersion protocolVersion)java.lang.ByteTypeCodec.PrimitiveByteCodec. deserialize(java.nio.ByteBuffer bytes, ProtocolVersion protocolVersion)java.lang.DoubleTypeCodec.PrimitiveDoubleCodec. deserialize(java.nio.ByteBuffer bytes, ProtocolVersion protocolVersion)java.lang.FloatTypeCodec.PrimitiveFloatCodec. deserialize(java.nio.ByteBuffer bytes, ProtocolVersion protocolVersion)java.lang.IntegerTypeCodec.PrimitiveIntCodec. deserialize(java.nio.ByteBuffer bytes, ProtocolVersion protocolVersion)java.lang.LongTypeCodec.PrimitiveLongCodec. deserialize(java.nio.ByteBuffer bytes, ProtocolVersion protocolVersion)java.lang.ShortTypeCodec.PrimitiveShortCodec. deserialize(java.nio.ByteBuffer bytes, ProtocolVersion protocolVersion)protected abstract TTypeCodec.AbstractTupleCodec. deserializeAndSetField(java.nio.ByteBuffer input, T target, int index, ProtocolVersion protocolVersion)Deserialize an individual field and set it on an object, as part of deserializing the whole object from a CQL tuple (seeTypeCodec.AbstractTupleCodec.deserialize(ByteBuffer, ProtocolVersion)).protected abstract TTypeCodec.AbstractUDTCodec. deserializeAndSetField(java.nio.ByteBuffer input, T target, java.lang.String fieldName, ProtocolVersion protocolVersion)Deserialize an individual field and set it on an object, as part of deserializing the whole object from a CQL UDT (seeTypeCodec.AbstractUDTCodec.deserialize(ByteBuffer, ProtocolVersion)).abstract booleanTypeCodec.PrimitiveBooleanCodec. deserializeNoBoxing(java.nio.ByteBuffer v, ProtocolVersion protocolVersion)abstract byteTypeCodec.PrimitiveByteCodec. deserializeNoBoxing(java.nio.ByteBuffer v, ProtocolVersion protocolVersion)abstract doubleTypeCodec.PrimitiveDoubleCodec. deserializeNoBoxing(java.nio.ByteBuffer v, ProtocolVersion protocolVersion)abstract floatTypeCodec.PrimitiveFloatCodec. deserializeNoBoxing(java.nio.ByteBuffer v, ProtocolVersion protocolVersion)abstract intTypeCodec.PrimitiveIntCodec. deserializeNoBoxing(java.nio.ByteBuffer v, ProtocolVersion protocolVersion)abstract longTypeCodec.PrimitiveLongCodec. deserializeNoBoxing(java.nio.ByteBuffer v, ProtocolVersion protocolVersion)abstract shortTypeCodec.PrimitiveShortCodec. deserializeNoBoxing(java.nio.ByteBuffer v, ProtocolVersion protocolVersion)static TupleTypeTupleType. of(ProtocolVersion protocolVersion, CodecRegistry codecRegistry, DataType... types)Creates a "disconnected" tuple type (you should preferMetadata#newTupleType(DataType...) cluster.getMetadata().newTupleType(...)whenever possible).static java.nio.ByteBufferCodecUtils. pack(java.nio.ByteBuffer[] buffers, int elements, ProtocolVersion version)Utility method that "packs" together a list ofByteBuffers containing serialized collection elements.static DataTypeDataTypeClassNameParser. parseOne(java.lang.String className, ProtocolVersion protocolVersion, CodecRegistry codecRegistry)static java.nio.ByteBufferCodecUtils. readValue(java.nio.ByteBuffer input, ProtocolVersion version)Utility method that reads a value.java.nio.ByteBufferTypeCodec.AbstractCollectionCodec. serialize(C value, ProtocolVersion protocolVersion)java.nio.ByteBufferTypeCodec.AbstractMapCodec. serialize(java.util.Map<K,V> value, ProtocolVersion protocolVersion)java.nio.ByteBufferTypeCodec.AbstractTupleCodec. serialize(T value, ProtocolVersion protocolVersion)java.nio.ByteBufferTypeCodec.AbstractUDTCodec. serialize(T value, ProtocolVersion protocolVersion)java.nio.ByteBufferTypeCodec.PrimitiveBooleanCodec. serialize(java.lang.Boolean value, ProtocolVersion protocolVersion)java.nio.ByteBufferTypeCodec.PrimitiveByteCodec. serialize(java.lang.Byte value, ProtocolVersion protocolVersion)java.nio.ByteBufferTypeCodec.PrimitiveDoubleCodec. serialize(java.lang.Double value, ProtocolVersion protocolVersion)java.nio.ByteBufferTypeCodec.PrimitiveFloatCodec. serialize(java.lang.Float value, ProtocolVersion protocolVersion)java.nio.ByteBufferTypeCodec.PrimitiveIntCodec. serialize(java.lang.Integer value, ProtocolVersion protocolVersion)java.nio.ByteBufferTypeCodec.PrimitiveLongCodec. serialize(java.lang.Long value, ProtocolVersion protocolVersion)java.nio.ByteBufferTypeCodec.PrimitiveShortCodec. serialize(java.lang.Short value, ProtocolVersion protocolVersion)abstract java.nio.ByteBufferTypeCodec. serialize(T value, ProtocolVersion protocolVersion)Serialize the given value according to the CQL type handled by this codec.protected abstract java.nio.ByteBufferTypeCodec.AbstractTupleCodec. serializeField(T source, int index, ProtocolVersion protocolVersion)Serialize an individual field in an object, as part of serializing the whole object to a CQL tuple (seeTypeCodec.AbstractTupleCodec.serialize(Object, ProtocolVersion)).protected abstract java.nio.ByteBufferTypeCodec.AbstractUDTCodec. serializeField(T source, java.lang.String fieldName, ProtocolVersion protocolVersion)Serialize an individual field in an object, as part of serializing the whole object to a CQL UDT (seeTypeCodec.AbstractUDTCodec.serialize(Object, ProtocolVersion)).abstract java.nio.ByteBufferTypeCodec.PrimitiveBooleanCodec. serializeNoBoxing(boolean v, ProtocolVersion protocolVersion)abstract java.nio.ByteBufferTypeCodec.PrimitiveByteCodec. serializeNoBoxing(byte v, ProtocolVersion protocolVersion)abstract java.nio.ByteBufferTypeCodec.PrimitiveDoubleCodec. serializeNoBoxing(double v, ProtocolVersion protocolVersion)abstract java.nio.ByteBufferTypeCodec.PrimitiveFloatCodec. serializeNoBoxing(float v, ProtocolVersion protocolVersion)abstract java.nio.ByteBufferTypeCodec.PrimitiveIntCodec. serializeNoBoxing(int v, ProtocolVersion protocolVersion)abstract java.nio.ByteBufferTypeCodec.PrimitiveLongCodec. serializeNoBoxing(long v, ProtocolVersion protocolVersion)abstract java.nio.ByteBufferTypeCodec.PrimitiveShortCodec. serializeNoBoxing(short v, ProtocolVersion protocolVersion)static voidCodecUtils. writeValue(java.nio.ByteBuffer output, java.nio.ByteBuffer value, ProtocolVersion version)Utility method that writes a value. -
Uses of ProtocolVersion in org.apache.cassandra.cql3.selection
Methods in org.apache.cassandra.cql3.selection with parameters of type ProtocolVersion Modifier and Type Method Description abstract voidSelector. addInput(ProtocolVersion protocolVersion, Selector.InputRow input)Add the current value from the specifiedResultSetBuilder.voidSimpleSelector. addInput(ProtocolVersion protocolVersion, Selector.InputRow input)voidTermSelector. addInput(ProtocolVersion protocolVersion, Selector.InputRow input)abstract java.nio.ByteBufferSelector. getOutput(ProtocolVersion protocolVersion)Returns the selector output.java.nio.ByteBufferSimpleSelector. getOutput(ProtocolVersion protocolVersion)java.nio.ByteBufferTermSelector. getOutput(ProtocolVersion protocolVersion) -
Uses of ProtocolVersion in org.apache.cassandra.db
Methods in org.apache.cassandra.db with parameters of type ProtocolVersion Modifier and Type Method Description default QueryPagerPartitionRangeReadQuery. getPager(PagingState pagingState, ProtocolVersion protocolVersion)QueryPagerReadQuery. getPager(PagingState pagingState, ProtocolVersion protocolVersion)Returns a pager for the query.default SinglePartitionPagerSinglePartitionReadQuery. getPager(PagingState pagingState, ProtocolVersion protocolVersion)QueryPagerSinglePartitionReadQuery.Group. getPager(PagingState pagingState, ProtocolVersion protocolVersion) -
Uses of ProtocolVersion in org.apache.cassandra.db.marshal
Methods in org.apache.cassandra.db.marshal with parameters of type ProtocolVersion Modifier and Type Method Description java.nio.ByteBufferCollectionType. serializeForNativeProtocol(java.util.Iterator<Cell<?>> cells, ProtocolVersion version)java.nio.ByteBufferUserType. serializeForNativeProtocol(java.util.Iterator<Cell<?>> cells, ProtocolVersion protocolVersion)static java.lang.StringListType. setOrListToJsonString(java.nio.ByteBuffer buffer, AbstractType elementsType, ProtocolVersion protocolVersion)java.lang.StringAbstractCompositeType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringAbstractType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)Converts the specified value into its JSON representation.<V> java.lang.StringAbstractType. toJSONString(V value, ValueAccessor<V> accessor, ProtocolVersion protocolVersion)java.lang.StringAsciiType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringBooleanType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringBytesType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringByteType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringCounterColumnType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringDateType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)Deprecated.java.lang.StringDecimalType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringDoubleType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringDynamicCompositeType.FixedValueComparator. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringEmptyType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringFloatType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringFrozenType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringInetAddressType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringInt32Type. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringIntegerType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringListType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringLongType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringMapType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringPartitionerDefinedOrder. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringReversedType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringSetType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringShortType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringSimpleDateType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringTimestampType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringTimeType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringTupleType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringUserType. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion)java.lang.StringUTF8Type. toJSONString(java.nio.ByteBuffer buffer, ProtocolVersion protocolVersion) -
Uses of ProtocolVersion in org.apache.cassandra.serializers
Methods in org.apache.cassandra.serializers with parameters of type ProtocolVersion Modifier and Type Method Description protected java.nio.ByteBufferCollectionSerializer. copyAsNewCollection(java.nio.ByteBuffer input, int count, int startPos, int endPos, ProtocolVersion version)Creates a new serialized map composed from the data frominputbetweenstartPos(inclusive) andendPos(exclusive), assuming that data holdscountelements.TCollectionSerializer. deserializeForNativeProtocol(java.nio.ByteBuffer value, ProtocolVersion version)abstract <V> TCollectionSerializer. deserializeForNativeProtocol(V value, ValueAccessor<V> accessor, ProtocolVersion version)<V> java.util.List<T>ListSerializer. deserializeForNativeProtocol(V input, ValueAccessor<V> accessor, ProtocolVersion version)<I> java.util.Map<K,V>MapSerializer. deserializeForNativeProtocol(I input, ValueAccessor<I> accessor, ProtocolVersion version)<V> java.util.Set<T>SetSerializer. deserializeForNativeProtocol(V input, ValueAccessor<V> accessor, ProtocolVersion version)static java.nio.ByteBufferCollectionSerializer. pack(java.util.Collection<java.nio.ByteBuffer> values, int elements, ProtocolVersion version)static <V> VCollectionSerializer. pack(java.util.Collection<V> values, ValueAccessor<V> accessor, int elements, ProtocolVersion version)static intCollectionSerializer. readCollectionSize(java.nio.ByteBuffer input, ProtocolVersion version)static <V> intCollectionSerializer. readCollectionSize(V value, ValueAccessor<V> accessor, ProtocolVersion version)static <V> VCollectionSerializer. readNonNullValue(V input, ValueAccessor<V> accessor, int offset, ProtocolVersion version)static <V> VCollectionSerializer. readValue(V input, ValueAccessor<V> accessor, int offset, ProtocolVersion version)static intCollectionSerializer. sizeOfCollectionSize(int elements, ProtocolVersion version)static <V> intCollectionSerializer. sizeOfValue(V value, ValueAccessor<V> accessor, ProtocolVersion version)protected static voidCollectionSerializer. skipValue(java.nio.ByteBuffer input, ProtocolVersion version)static <V> intCollectionSerializer. skipValue(V input, ValueAccessor<V> accessor, int offset, ProtocolVersion version)abstract <V> voidCollectionSerializer. validateForNativeProtocol(V value, ValueAccessor<V> accessor, ProtocolVersion version)<V> voidListSerializer. validateForNativeProtocol(V input, ValueAccessor<V> accessor, ProtocolVersion version)<T> voidMapSerializer. validateForNativeProtocol(T input, ValueAccessor<T> accessor, ProtocolVersion version)<V> voidSetSerializer. validateForNativeProtocol(V input, ValueAccessor<V> accessor, ProtocolVersion version)protected static voidCollectionSerializer. writeCollectionSize(java.nio.ByteBuffer output, int elements, ProtocolVersion version)static <V> voidCollectionSerializer. writeValue(java.nio.ByteBuffer output, V value, ValueAccessor<V> accessor, ProtocolVersion version) -
Uses of ProtocolVersion in org.apache.cassandra.service.pager
Fields in org.apache.cassandra.service.pager declared as ProtocolVersion Modifier and Type Field Description protected ProtocolVersionAbstractQueryPager. protocolVersionprotected ProtocolVersionAbstractQueryPager. protocolVersionMethods in org.apache.cassandra.service.pager with parameters of type ProtocolVersion Modifier and Type Method Description static PagingState.RowMarkPagingState.RowMark. create(TableMetadata metadata, Row row, ProtocolVersion protocolVersion)static PagingStatePagingState. deserialize(java.nio.ByteBuffer bytes, ProtocolVersion protocolVersion)It's possible to receive a V3 paging state on a V4 client session, and vice versa - so we cannot blindly rely on the protocol version provided.java.nio.ByteBufferPagingState. serialize(ProtocolVersion protocolVersion)intPagingState. serializedSize(ProtocolVersion protocolVersion)Constructors in org.apache.cassandra.service.pager with parameters of type ProtocolVersion Constructor Description MultiPartitionPager(SinglePartitionReadQuery.Group<T> group, PagingState state, ProtocolVersion protocolVersion)PartitionRangeQueryPager(PartitionRangeReadQuery query, PagingState state, ProtocolVersion protocolVersion)PartitionRangeQueryPager(PartitionRangeReadQuery query, ProtocolVersion protocolVersion, DecoratedKey lastReturnedKey, PagingState.RowMark lastReturnedRow, int remaining, int remainingInPartition)SinglePartitionPager(SinglePartitionReadQuery query, PagingState state, ProtocolVersion protocolVersion) -
Uses of ProtocolVersion in org.apache.cassandra.transport
Fields in org.apache.cassandra.transport declared as ProtocolVersion Modifier and Type Field Description static ProtocolVersionProtocolVersion. CURRENTThe preferred versionsprotected ProtocolVersionMessage. forcedProtocolVersionProtocolVersionEvent.Type. minimumVersionProtocolVersionEnvelope.Header. versionprotected ProtocolVersionSimpleClient. versionFields in org.apache.cassandra.transport with type parameters of type ProtocolVersion Modifier and Type Field Description static java.util.Optional<ProtocolVersion>ProtocolVersion. BETAstatic java.util.EnumSet<ProtocolVersion>ProtocolVersion. SUPPORTEDAll supported versions, published as an enumsetstatic java.util.EnumSet<ProtocolVersion>ProtocolVersion. UNSUPPORTEDOld unsupported versions, this is OK as long as we never add newer unsupported versionsMethods in org.apache.cassandra.transport that return ProtocolVersion Modifier and Type Method Description static ProtocolVersionProtocolVersion. decode(int versionNum, boolean allowOlderProtocols)ProtocolVersionProtocolException. getForcedProtocolVersion()ProtocolVersionDataType. getProtocolVersion()ProtocolVersionConnection. getVersion()static ProtocolVersionProtocolVersion. valueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ProtocolVersion[]ProtocolVersion. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in org.apache.cassandra.transport that return types with arguments of type ProtocolVersion Modifier and Type Method Description static java.util.List<ProtocolVersion>ProtocolVersion. supportedVersionsStartingWith(ProtocolVersion smallestVersion)Methods in org.apache.cassandra.transport with parameters of type ProtocolVersion Modifier and Type Method Description voidPipelineConfigurator. configureModernPipeline(io.netty.channel.ChannelHandlerContext ctx, ServerConnection serverConnection, org.apache.cassandra.transport.ClientResourceLimits.Allocator resourceAllocator, ProtocolVersion version, java.util.Map<java.lang.String,java.lang.String> options)static EnvelopeEnvelope. create(Message.Type type, int streamId, ProtocolVersion version, java.util.EnumSet<Envelope.Header.Flag> flags, io.netty.buffer.ByteBuf body)TCBCodec. decode(io.netty.buffer.ByteBuf body, ProtocolVersion version)Pair<DataType,java.lang.Object>DataType.Codec. decodeOne(io.netty.buffer.ByteBuf body, ProtocolVersion version)static EventEvent. deserialize(io.netty.buffer.ByteBuf cb, ProtocolVersion version)static Event.SchemaChangeEvent.SchemaChange. deserializeEvent(io.netty.buffer.ByteBuf cb, ProtocolVersion version)voidCBCodec. encode(T t, io.netty.buffer.ByteBuf dest, ProtocolVersion version)EnvelopeMessage. encode(ProtocolVersion version)intCBCodec. encodedSize(T t, ProtocolVersion version)protected abstract intEvent. eventSerializedSize(ProtocolVersion version)intEvent.SchemaChange. eventSerializedSize(ProtocolVersion version)protected intEvent.StatusChange. eventSerializedSize(ProtocolVersion version)protected intEvent.TopologyChange. eventSerializedSize(ProtocolVersion version)static Pair<DataType,java.lang.Object>DataType. fromType(AbstractType type, ProtocolVersion version)intDataType. getId(ProtocolVersion version)booleanProtocolVersion. isGreaterOrEqualTo(ProtocolVersion other)booleanProtocolVersion. isGreaterThan(ProtocolVersion other)booleanProtocolVersion. isSmallerOrEqualTo(ProtocolVersion other)booleanProtocolVersion. isSmallerThan(ProtocolVersion other)ConnectionConnection.Factory. newConnection(io.netty.channel.Channel channel, ProtocolVersion version)intDataType.Codec. oneSerializedSize(Pair<DataType,java.lang.Object> option, ProtocolVersion version)static io.netty.channel.ChannelInboundHandlerAdapterExceptionHandlers. postV5Handler(FrameEncoder.PayloadAllocator allocator, ProtocolVersion version)SimpleClient.BuilderSimpleClient.Builder. protocolVersion(ProtocolVersion version)static java.nio.ByteBufferCBUtil. readBoundValue(io.netty.buffer.ByteBuf cb, ProtocolVersion protocolVersion)static Pair<java.util.List<java.lang.String>,java.util.List<java.nio.ByteBuffer>>CBUtil. readNameAndValueList(io.netty.buffer.ByteBuf cb, ProtocolVersion protocolVersion)java.lang.ObjectDataType. readValue(io.netty.buffer.ByteBuf cb, ProtocolVersion version)static java.util.List<java.nio.ByteBuffer>CBUtil. readValueList(io.netty.buffer.ByteBuf cb, ProtocolVersion protocolVersion)voidEvent. serialize(io.netty.buffer.ByteBuf dest, ProtocolVersion version)intEvent. serializedSize(ProtocolVersion version)intDataType. serializedValueSize(java.lang.Object value, ProtocolVersion version)voidEvent.SchemaChange. serializeEvent(io.netty.buffer.ByteBuf dest, ProtocolVersion version)protected abstract voidEvent. serializeEvent(io.netty.buffer.ByteBuf dest, ProtocolVersion version)protected voidEvent.StatusChange. serializeEvent(io.netty.buffer.ByteBuf dest, ProtocolVersion version)protected voidEvent.TopologyChange. serializeEvent(io.netty.buffer.ByteBuf dest, ProtocolVersion version)static java.util.List<ProtocolVersion>ProtocolVersion. supportedVersionsStartingWith(ProtocolVersion smallestVersion)voidDataType.Codec. writeOne(Pair<DataType,java.lang.Object> option, io.netty.buffer.ByteBuf dest, ProtocolVersion version)voidDataType. writeValue(java.lang.Object value, io.netty.buffer.ByteBuf cb, ProtocolVersion version)Constructors in org.apache.cassandra.transport with parameters of type ProtocolVersion Constructor Description Client(java.lang.String host, int port, ProtocolVersion version, EncryptionOptions encryptionOptions)Connection(io.netty.channel.Channel channel, ProtocolVersion version, Connection.Tracker tracker)ProtocolException(java.lang.String msg, ProtocolVersion forcedProtocolVersion)SimpleClient(java.lang.String host, int port, ProtocolVersion version)SimpleClient(java.lang.String host, int port, ProtocolVersion version, boolean useBeta, EncryptionOptions encryptionOptions)SimpleClient(java.lang.String host, int port, ProtocolVersion version, EncryptionOptions encryptionOptions) -
Uses of ProtocolVersion in org.apache.cassandra.transport.messages
Methods in org.apache.cassandra.transport.messages with parameters of type ProtocolVersion Modifier and Type Method Description TUnsupportedMessageCodec. decode(io.netty.buffer.ByteBuf body, ProtocolVersion version)voidUnsupportedMessageCodec. encode(T t, io.netty.buffer.ByteBuf dest, ProtocolVersion version)intUnsupportedMessageCodec. encodedSize(T t, ProtocolVersion version)
-