class RedisDataInput extends InputAndSimpleInput
- Alphabetic
- By Inheritance
- RedisDataInput
- InputAndSimpleInput
- SimpleInput
- Input
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new RedisDataInput(bytes: ByteString)
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
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 someInput
implementation still wants to use the list encoding, it may do it by overriding this method and returningtrue
.- Definition Classes
- Input
-
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()
-
def
readBigDecimal(): BigDecimal
- Definition Classes
- RedisDataInput → SimpleInput
-
def
readBigInt(): BigInt
- Definition Classes
- RedisDataInput → SimpleInput
-
def
readBinary(): Array[Byte]
- Definition Classes
- RedisDataInput → SimpleInput
-
def
readBoolean(): Boolean
- Definition Classes
- RedisDataInput → SimpleInput
-
def
readByte(): Byte
- Definition Classes
- SimpleInput
-
def
readChar(): Char
- Definition Classes
- SimpleInput
-
def
readCustom[T](typeMarker: TypeMarker[T]): commons.Opt[T]
Attempts to read some arbitrary custom "native" value that this input may or may not support.
Attempts to read some arbitrary custom "native" value that this input 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
Input
implementation.GenCodec
may generally assume that if the data was written by a correspondingOutput
which also support this custom native type thenreadCustom
should return non-empty value.Opt.Empty
returned by this method indicates that this input does not support this particular type. If it supports it but there was some error reading it then aReadFailure
should be thrown instead of returningOpt.Empty
.- Definition Classes
- Input
-
def
readDouble(): Double
- Definition Classes
- RedisDataInput → SimpleInput
-
def
readFloat(): Float
- Definition Classes
- SimpleInput
-
def
readInt(): Int
- Definition Classes
- RedisDataInput → SimpleInput
-
def
readList(): ListInput
- Definition Classes
- RedisDataInput → Input
-
def
readLong(): Long
- Definition Classes
- RedisDataInput → SimpleInput
-
def
readMetadata[T](metadata: InputMetadata[T]): commons.Opt[T]
Attempts to read some arbitrary "metadata" about this input instance.
Attempts to read some arbitrary "metadata" about this input instance. Metadata is identified by InputMetadata which is usually an object (e.g. companion object of metadata value type
T
). An example of InputMetadata is JsonType supported by JsonStringInput.Codecs may use this method to optimize encoded format in case it it possible with particular
Input
implementation.GenCodec
may generally assume that if the data was written by a correspondingOutput
that preserves particular metadata type (which may be determined byOutput.keepsMetadata()
) thenreadMetadata
will return a non-empty value.Opt.Empty
may be returned form this method ONLY if thisInput
implementation does not support this metadata type AT ALL. Any errors should be signaled by throwingReadFailure
.- Definition Classes
- Input
-
def
readNull(): Boolean
Attempts to read
null
value from anInput
.Attempts to read
null
value from anInput
. Returningtrue
means that input instance contained anull
value. Its state should then be changed so that input can be considered "consumed" (no other reads are possible on this instance). Returningfalse
means that the input contains something else than anull
value. Its state must not change in this situation and it must be possible to call some other read method on it.- Definition Classes
- RedisDataInput → Input
-
def
readObject(): ObjectInput
- Definition Classes
- RedisDataInput → Input
-
def
readShort(): Short
- Definition Classes
- SimpleInput
-
final
def
readSimple(): SimpleInput
- Definition Classes
- InputAndSimpleInput → Input
-
def
readString(): String
- Definition Classes
- RedisDataInput → SimpleInput
-
def
readTimestamp(): Long
- Definition Classes
- SimpleInput
-
def
skip(): Unit
Ignores this input and skips its contents internally, if necessary
Ignores this input and skips its contents internally, if necessary
- Definition Classes
- RedisDataInput → Input
-
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( ... )