com.scalar.db.storage.cosmos.ValueBinder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalardb Show documentation
Show all versions of scalardb Show documentation
A universal transaction manager that achieves database-agnostic transactions and distributed transactions that span multiple databases
package com.scalar.db.storage.cosmos;
import com.scalar.db.io.BigIntColumn;
import com.scalar.db.io.BlobColumn;
import com.scalar.db.io.BooleanColumn;
import com.scalar.db.io.ColumnVisitor;
import com.scalar.db.io.DoubleColumn;
import com.scalar.db.io.FloatColumn;
import com.scalar.db.io.IntColumn;
import com.scalar.db.io.TextColumn;
import java.util.Base64;
import java.util.function.Consumer;
import javax.annotation.concurrent.NotThreadSafe;
/**
* A visitor class to bind {@code Value}s to a {@link StringBuilder}.
*
* @author Yuji Ito
*/
@NotThreadSafe
public final class ValueBinder implements ColumnVisitor {
private Consumer