final class RedisDataOutput extends OutputAndSimpleOutput
- Alphabetic
- By Inheritance
- RedisDataOutput
- OutputAndSimpleOutput
- SimpleOutput
- Output
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RedisDataOutput(consumer: (ByteString) ⇒ Unit)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
keepsMetadata(metadata: InputMetadata[_]): Boolean
Determines whether serialization format implemented by this
Output
preserves particular arbitrary "metadata" which is identified by InputMetadata which is usually an object (e.g.Determines whether serialization format implemented by this
Output
preserves particular arbitrary "metadata" which is identified by InputMetadata which is usually an object (e.g. companion object of metadata value typeT
). An example of InputMetadata is JsonType supported by JsonStringOutput.If this method returns
true
then codec may optimize its encoded format and assume that a correspondingInput
implementation will return a non-emptyOpt
from itsreadMetadata
implementation when passed the same InputMetadata identifier. If this method returnsfalse
then thisOutput
does not support this medatata type and codec should fall back to some other serialization strategy.- Definition Classes
- Output
-
def
legacyOptionEncoding: Boolean
This ugly workaround has been introduced when standard
Option
encoding changed from zero-or-one element list encoding to unwrapped-or-null encoding which effectively disallowed serializingnull
andSome(null)
.This ugly workaround has been introduced when standard
Option
encoding changed from zero-or-one element list encoding to unwrapped-or-null encoding which effectively disallowed serializingnull
andSome(null)
. If someOutput
implementation still wants to use the list encoding, it may do it by overriding this method and returningtrue
.- Definition Classes
- Output
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
writeBigDecimal(bigDecimal: BigDecimal): Unit
Value written MUST NOT be
null
Value written MUST NOT be
null
- Definition Classes
- RedisDataOutput → SimpleOutput
-
def
writeBigInt(bigInt: BigInt): Unit
Value written MUST NOT be
null
Value written MUST NOT be
null
- Definition Classes
- RedisDataOutput → SimpleOutput
-
def
writeBinary(binary: Array[Byte]): Unit
Value written MUST NOT be
null
Value written MUST NOT be
null
- Definition Classes
- RedisDataOutput → SimpleOutput
-
def
writeBoolean(boolean: Boolean): Unit
- Definition Classes
- RedisDataOutput → SimpleOutput
-
def
writeByte(byte: Byte): Unit
- Definition Classes
- SimpleOutput
-
def
writeChar(char: Char): Unit
- Definition Classes
- SimpleOutput
-
def
writeCustom[T](typeMarker: TypeMarker[T], value: T): Boolean
Attempts to write some arbitrary custom "native" value that this output may or may not support.
Attempts to write some arbitrary custom "native" value that this output may or may not support. The custom type is identified by an instance of
TypeMarker
which is usually an object (e.g. companion object of the customT
type itself). This wayInput
andOutput
implementations may support other native types than the ones supported by default byInput
andOutput
interfaces.Codecs may use this method to optimize encoded format in case it it possible with particular
Output
implementation.GenCodec
may generally assume that if this method returnstrue
then correspondingInput
will return a non-emptyOpt
fromreadCustom
method.false
returned by this method indicates that this output does not support this particular type. In such situation the codec must fall back to some other strategy. If the native type is supported but there was some error writing it then aWriteFailure
should be thrown instead of returningfalse
.- Definition Classes
- Output
-
def
writeDouble(double: Double): Unit
- Definition Classes
- RedisDataOutput → SimpleOutput
-
def
writeFloat(float: Float): Unit
- Definition Classes
- SimpleOutput
-
def
writeInt(int: Int): Unit
- Definition Classes
- RedisDataOutput → SimpleOutput
-
def
writeList(): ListOutput
- Definition Classes
- RedisDataOutput → Output
-
def
writeLong(long: Long): Unit
- Definition Classes
- RedisDataOutput → SimpleOutput
-
def
writeNull(): Unit
- Definition Classes
- RedisDataOutput → Output
-
def
writeObject(): ObjectOutput
- Definition Classes
- RedisDataOutput → Output
-
def
writeShort(short: Short): Unit
- Definition Classes
- SimpleOutput
-
final
def
writeSimple(): SimpleOutput
- Definition Classes
- OutputAndSimpleOutput → Output
-
def
writeString(str: String): Unit
Value written MUST NOT be
null
Value written MUST NOT be
null
- Definition Classes
- RedisDataOutput → SimpleOutput
-
def
writeTimestamp(millis: Long): Unit
- Definition Classes
- SimpleOutput