Modifier and Type | Class and Description |
---|---|
static interface |
InternalMetadata.TrustedAsciiMarshaller<T>
A specialized plain ASCII marshaller.
|
Modifier and Type | Field and Description |
---|---|
static Charset |
US_ASCII
Copy of StandardCharsets, which is only available on Java 1.7 and above.
|
Constructor and Description |
---|
InternalMetadata() |
Modifier and Type | Method and Description |
---|---|
static <T> Metadata.Key<T> |
keyOf(String name,
InternalMetadata.TrustedAsciiMarshaller<T> marshaller) |
static Metadata |
newMetadata(byte[]... binaryValues) |
static Metadata |
newMetadata(int usedNames,
byte[]... binaryValues) |
static byte[][] |
serialize(Metadata md) |
@Internal public static <T> Metadata.Key<T> keyOf(String name, InternalMetadata.TrustedAsciiMarshaller<T> marshaller)