Class BulkMapperImpl<E extends tech.ydb.yoj.repository.db.Entity<E>>

java.lang.Object
tech.ydb.yoj.repository.ydb.bulk.BulkMapperImpl<E>
All Implemented Interfaces:
BulkMapper<E>

public final class BulkMapperImpl<E extends tech.ydb.yoj.repository.db.Entity<E>> extends Object implements BulkMapper<E>
  • Constructor Details

    • BulkMapperImpl

      public BulkMapperImpl(tech.ydb.yoj.repository.db.TableDescriptor<E> tableDescriptor, tech.ydb.yoj.repository.db.EntitySchema<E> srcSchema)
  • Method Details

    • getTableName

      public String getTableName(String tableSpace)
      Specified by:
      getTableName in interface BulkMapper<E extends tech.ydb.yoj.repository.db.Entity<E>>
    • map

      public Map<String,tech.ydb.proto.ValueProtos.TypedValue> map(E entity)
      Specified by:
      map in interface BulkMapper<E extends tech.ydb.yoj.repository.db.Entity<E>>
    • toTypedValue

      protected tech.ydb.proto.ValueProtos.TypedValue toTypedValue(Schema.JavaFieldValue value, boolean optional)
    • getYqlType

      protected tech.ydb.proto.ValueProtos.Type.Builder getYqlType(YqlType yqlType, boolean optional)
    • getYqlValue

      protected tech.ydb.proto.ValueProtos.Value.Builder getYqlValue(YqlType type, Object value)