Class

org.apache.hadoop.hbase.spark.datasources

NaiveEncoder

Related Doc: package datasources

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NaiveEncoder()

    Permalink

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val BinaryEnc: Byte

    Permalink
  5. val BooleanEnc: Byte

    Permalink
  6. val DoubleEnc: Byte

    Permalink
  7. val FloatEnc: Byte

    Permalink
  8. val IntEnc: Byte

    Permalink
  9. val LongEnc: Byte

    Permalink
  10. val ShortEnc: Byte

    Permalink
  11. val StringEnc: Byte

    Permalink
  12. val TimestampEnc: Byte

    Permalink
  13. val UnknownEnc: Byte

    Permalink
  14. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  15. def clone(): AnyRef

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

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

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

    Permalink

    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
  19. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink

    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
  22. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. def initializeLogIfNecessary(isInterpreter: Boolean, silent: Boolean): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  26. def initializeLogIfNecessary(isInterpreter: Boolean): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def isTraceEnabled(): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  29. def log: Logger

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

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

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

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  36. def logName: String

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  42. def nextCode: Byte

    Permalink
  43. final def notify(): Unit

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

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

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  47. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from BytesEncoder

Inherited from AnyRef

Inherited from Any

Ungrouped