Package io.datarouter.model.serialize
Interface StringDatabeanCodec
- All Known Implementing Classes:
JsonDatabeanCodec
public interface StringDatabeanCodec
-
Field Summary
-
Method Summary
Modifier and Type Method Description default StringconcatGroup(List<byte[]> group)<PK extends PrimaryKey<PK>, D extends Databean<PK, D>, F extends DatabeanFielder<PK, D>>
DfromString(String string, F fielder, Supplier<D> databeanSupplier)<PK extends PrimaryKey<PK>, D extends Databean<PK, D>, F extends DatabeanFielder<PK, D>>
List<D>fromStringMulti(String string, F fielder, Supplier<D> databeanSupplier)StringgetCollectionPrefix()default byte[]getCollectionPrefixBytes()StringgetCollectionSeparator()default byte[]getCollectionSeparatorBytes()StringgetCollectionSuffix()default byte[]getCollectionSuffixBytes()default List<List<byte[]>>makeGroups(List<byte[]> encodedDatabeans, int maxBoundedBytesPerMessage)default <PK extends PrimaryKey<PK>, D extends Databean<PK, D>, F extends DatabeanFielder<PK, D>>
byte[]toBytes(D databean, F fielder)<PK extends PrimaryKey<PK>, D extends Databean<PK, D>, F extends DatabeanFielder<PK, D>>
StringtoString(D databean, F fielder)
-
Field Details
-
Method Details
-
toString
<PK extends PrimaryKey<PK>, D extends Databean<PK, D>, F extends DatabeanFielder<PK, D>> String toString(D databean, F fielder) -
toBytes
default <PK extends PrimaryKey<PK>, D extends Databean<PK, D>, F extends DatabeanFielder<PK, D>> byte[] toBytes(D databean, F fielder) -
fromString
<PK extends PrimaryKey<PK>, D extends Databean<PK, D>, F extends DatabeanFielder<PK, D>> D fromString(String string, F fielder, Supplier<D> databeanSupplier) -
getCollectionSeparator
String getCollectionSeparator() -
getCollectionPrefix
String getCollectionPrefix() -
getCollectionSuffix
String getCollectionSuffix() -
getCollectionSeparatorBytes
default byte[] getCollectionSeparatorBytes() -
getCollectionPrefixBytes
default byte[] getCollectionPrefixBytes() -
getCollectionSuffixBytes
default byte[] getCollectionSuffixBytes() -
fromStringMulti
<PK extends PrimaryKey<PK>, D extends Databean<PK, D>, F extends DatabeanFielder<PK, D>> List<D> fromStringMulti(String string, F fielder, Supplier<D> databeanSupplier) -
makeGroups
-
concatGroup
-