org.apache.hadoop.hbase.spark.datasources

NaiveEncoder

class NaiveEncoder extends BytesEncoder with Logging

This is the naive non-order preserving encoder/decoder. Due to the inconsistency of the order between java primitive types and their bytearray. The data type has to be passed in so that the filter can work correctly, which is done by wrapping the type into the first byte of the serialized array.

Annotations
@Private()
Linear Supertypes
Logging, BytesEncoder, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. NaiveEncoder
  2. Logging
  3. BytesEncoder
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NaiveEncoder()

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. val BinaryEnc: Byte

  7. val BooleanEnc: Byte

  8. val DoubleEnc: Byte

  9. val FloatEnc: Byte

  10. val IntEnc: Byte

  11. val LongEnc: Byte

  12. val ShortEnc: Byte

  13. val StringEnc: Byte

  14. val TimestampEnc: Byte

  15. val UnknownEnc: Byte

  16. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. var code: Int

  19. def compare(c: Int, ops: JavaBytesEncoder): Boolean

  20. def encode(dt: DataType, value: Any): Array[Byte]

    encode the data type into byte array.

    encode the data type into byte array. Note that it is a naive implementation with the data type byte appending to the head of the serialized byte array.

    returns

    the byte array with the first byte indicating the data type.

    Definition Classes
    NaiveEncoderBytesEncoder
  21. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  23. def filter(input: Array[Byte], offset1: Int, length1: Int, filterBytes: Array[Byte], offset2: Int, length2: Int, ops: JavaBytesEncoder): Boolean

    The function performing real filtering operations.

    The function performing real filtering operations. The format of filterBytes depends on the implementation of the BytesEncoder.

    returns

    true: the record satisfies the predicates false: the record does not satisfy the predicates.

    Definition Classes
    NaiveEncoderBytesEncoder
  24. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def isTraceEnabled(): Boolean

    Attributes
    protected
    Definition Classes
    Logging
  29. def log: Logger

    Attributes
    protected
    Definition Classes
    Logging
  30. def logDebug(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  31. def logDebug(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  32. def logError(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  33. def logError(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  34. def logInfo(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  35. def logInfo(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  36. def logName: String

    Attributes
    protected
    Definition Classes
    Logging
  37. def logTrace(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  38. def logTrace(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  39. def logWarning(msg: ⇒ String, throwable: Throwable): Unit

    Attributes
    protected
    Definition Classes
    Logging
  40. def logWarning(msg: ⇒ String): Unit

    Attributes
    protected
    Definition Classes
    Logging
  41. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  42. def nextCode: Byte

  43. final def notify(): Unit

    Definition Classes
    AnyRef
  44. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  45. def ranges(in: Any): Option[BoundRanges]

    Evaluate the java primitive type and return the BoundRanges.

    Evaluate the java primitive type and return the BoundRanges. For one value, it may have multiple output ranges because of the inconsistency of order between java primitive type and its byte array order.

    For short, integer, and long, the order of number is consistent with byte array order if two number has the same sign bit. But the negative number is larger than positive number in byte array.

    For double and float, the order of positive number is consistent with its byte array order. But the order of negative number is the reverse order of byte array. Please refer to IEEE-754 and https://en.wikipedia.org/wiki/Single-precision_floating-point_format

    Definition Classes
    NaiveEncoderBytesEncoder
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  47. def toString(): String

    Definition Classes
    AnyRef → Any
  48. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from BytesEncoder

Inherited from AnyRef

Inherited from Any

Ungrouped