Class EntityIdKeyMapper<E extends tech.ydb.yoj.repository.db.Entity<E>,ID extends tech.ydb.yoj.repository.db.Entity.Id<E>,RESULT>

java.lang.Object
tech.ydb.yoj.repository.ydb.readtable.EntityIdKeyMapper<E,ID,RESULT>
All Implemented Interfaces:
ReadTableMapper<ID,RESULT>

public final class EntityIdKeyMapper<E extends tech.ydb.yoj.repository.db.Entity<E>,ID extends tech.ydb.yoj.repository.db.Entity.Id<E>,RESULT> extends Object implements ReadTableMapper<ID,RESULT>
  • Constructor Details

    • EntityIdKeyMapper

      public EntityIdKeyMapper(tech.ydb.yoj.repository.db.EntitySchema<E> srcSchema, Schema<RESULT> dstSchema)
  • Method Details

    • mapKey

      public List<tech.ydb.proto.ValueProtos.TypedValue> mapKey(ID id)
      Specified by:
      mapKey in interface ReadTableMapper<E extends tech.ydb.yoj.repository.db.Entity<E>,ID extends tech.ydb.yoj.repository.db.Entity.Id<E>>
    • getColumns

      public List<String> getColumns()
      Specified by:
      getColumns in interface ReadTableMapper<E extends tech.ydb.yoj.repository.db.Entity<E>,ID extends tech.ydb.yoj.repository.db.Entity.Id<E>>
    • getTableName

      public String getTableName(String tableSpace)
      Specified by:
      getTableName in interface ReadTableMapper<E extends tech.ydb.yoj.repository.db.Entity<E>,ID extends tech.ydb.yoj.repository.db.Entity.Id<E>>
    • mapResult

      public RESULT mapResult(List<tech.ydb.proto.ValueProtos.Column> columnList, tech.ydb.proto.ValueProtos.Value value)
      Specified by:
      mapResult in interface ReadTableMapper<E extends tech.ydb.yoj.repository.db.Entity<E>,ID extends tech.ydb.yoj.repository.db.Entity.Id<E>>