public class ConverterAwareMappingSpannerEntityWriter extends Object implements SpannerEntityWriter
Mutation.WriteBuilder for
the purpose of creating mutations for Spanner.| Modifier and Type | Field and Description |
|---|---|
static Map<Class<?>,BiFunction<com.google.cloud.spanner.ValueBinder,?,?>> |
singleItemType2ToMethodMap |
| Modifier and Type | Method and Description |
|---|---|
void |
write(Object source,
com.google.cloud.spanner.Mutation.WriteBuilder sink) |
void |
write(Object source,
com.google.cloud.spanner.Mutation.WriteBuilder sink,
Set<String> includeColumns)
Writes an object's properties to the sink.
|
com.google.cloud.spanner.Key |
writeToKey(Object key) |
public static final Map<Class<?>,BiFunction<com.google.cloud.spanner.ValueBinder,?,?>> singleItemType2ToMethodMap
public void write(Object source, com.google.cloud.spanner.Mutation.WriteBuilder sink)
write in interface org.springframework.data.convert.EntityWriter<Object,com.google.cloud.spanner.Mutation.WriteBuilder>public void write(Object source, com.google.cloud.spanner.Mutation.WriteBuilder sink, Set<String> includeColumns)
write in interface SpannerEntityWritersource - the object to writesink - the sink to which to writeincludeColumns - the properties/columns to write. If null, then all columns are
written.public com.google.cloud.spanner.Key writeToKey(Object key)
writeToKey in interface SpannerEntityWriterCopyright © 2018 Pivotal Software, Inc.. All rights reserved.