https://github.com/chatwork/bytearray-schema
⚠ This is no longer maintained. ⚠ schemaless byte array complex to Scala type coversion
https://github.com/chatwork/bytearray-schema
Last synced: 5 months ago
JSON representation
⚠ This is no longer maintained. ⚠ schemaless byte array complex to Scala type coversion
- Host: GitHub
- URL: https://github.com/chatwork/bytearray-schema
- Owner: chatwork
- License: apache-2.0
- Archived: true
- Fork: true (TanUkkii007/bytearray-schema)
- Created: 2021-04-06T02:23:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-06T12:29:46.000Z (about 5 years ago)
- Last Synced: 2025-03-05T19:52:08.486Z (over 1 year ago)
- Language: Scala
- Homepage:
- Size: 478 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
# bytearray-schema
Schemaless byte-array complex from/to Scala case class converter.
[](https://circleci.com/gh/chatwork/bytearray-schema)
## Install
```sbt
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
```scala
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)
}
```