Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

⚠ This is no longer maintained. ⚠ schemaless byte array complex to Scala type coversion

License

Notifications You must be signed in to change notification settings

chatwork/bytearray-schema

 
 

Repository files navigation

bytearray-schema

Schemaless byte-array complex from/to Scala case class converter.

CircleCI

Install

libraryDependencies ++= Seq(
  "com.chatwork" %% "bytearray-schema" % "1.0.0",
  "com.chatwork" %% "bytearray-schema-hbase" % "1.0.0",
)

Usage

Note) package name starts with tanukki since this is a fork of https://github.com/TanUkkii007/bytearray-schema

import tanukkii.bytearrayschema.BytesMapFormat
import tanukkii.bytearrayschema.hbase.HBaseBytesMapProtocol

case class HMessageBody(id: Long, message: String, created_at: Long)

object HBaseMessageBodyBytesMapProtocol extends HBaseBytesMapProtocol {
  implicit val HBaseMessageBodyFormat: BytesMapFormat[HBaseMessageBody] = bytesMapFormat8(HBaseMessageBody)
}

About

⚠ This is no longer maintained. ⚠ schemaless byte array complex to Scala type coversion

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Scala 100.0%