public class Bits extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
LENGTH_FIELD |
static String |
LOGICAL_NAME |
| Constructor and Description |
|---|
Bits() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.kafka.connect.data.SchemaBuilder |
builder(int length)
Returns a
SchemaBuilder for a Bits. |
static byte[] |
fromBitSet(org.apache.kafka.connect.data.Schema schema,
BitSet value)
Convert a value from its logical format (BitSet) to it's encoded format.
|
static org.apache.kafka.connect.data.Schema |
schema(int length)
Returns a Schema for a Bits but with all other default Schema settings.
|
static BitSet |
toBitSet(org.apache.kafka.connect.data.Schema schema,
byte[] value) |
public static final String LOGICAL_NAME
public static final String LENGTH_FIELD
public static org.apache.kafka.connect.data.SchemaBuilder builder(int length)
SchemaBuilder for a Bits. You can use the resulting SchemaBuilder
to set additional schema settings such as required/optional, default value, and documentation.length - maximum the number of bits in the setpublic static org.apache.kafka.connect.data.Schema schema(int length)
length - maximum the number of bits in the setbuilder(int)public static byte[] fromBitSet(org.apache.kafka.connect.data.Schema schema,
BitSet value)
schema - the schemavalue - the logical valuepublic static BitSet toBitSet(org.apache.kafka.connect.data.Schema schema, byte[] value)
Copyright © 2018 JBoss by Red Hat. All rights reserved.