← back to dordor12__hbase-orm

Function bodies 231 total

All specs Real LLM only Function bodies
serializeDouble method · java · L80-L82 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public byte[] serializeDouble() {
        return codec.serialize(2.718281828, noFlags);
    }
serializeShort method · java · L85-L87 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public byte[] serializeShort() {
        return codec.serialize((short) 100, noFlags);
    }
serializeBigDecimal method · java · L90-L92 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public byte[] serializeBigDecimal() {
        return codec.serialize(new BigDecimal("12345.6789"), noFlags);
    }
serializeBoolean method · java · L95-L97 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public byte[] serializeBoolean() {
        return codec.serialize(true, noFlags);
    }
serializeLocalDateTime method · java · L100-L102 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public byte[] serializeLocalDateTime() {
        return codec.serialize(LocalDateTime.of(2024, 6, 15, 9, 30), noFlags);
    }
serializeAsString method · java · L105-L107 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public byte[] serializeAsString() {
        return codec.serialize(42, stringFlags);
    }
deserializeString method · java · L112-L114 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public Object deserializeString() {
        return codec.deserialize(stringBytes, String.class, noFlags);
    }
Repobility — same analyzer, your code, free for public repos · /scan/
deserializeInteger method · java · L117-L119 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public Object deserializeInteger() {
        return codec.deserialize(intBytes, Integer.class, noFlags);
    }
deserializeLong method · java · L122-L124 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public Object deserializeLong() {
        return codec.deserialize(longBytes, Long.class, noFlags);
    }
deserializeFloat method · java · L127-L129 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public Object deserializeFloat() {
        return codec.deserialize(floatBytes, Float.class, noFlags);
    }
deserializeDouble method · java · L132-L134 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public Object deserializeDouble() {
        return codec.deserialize(doubleBytes, Double.class, noFlags);
    }
deserializeShort method · java · L137-L139 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public Object deserializeShort() {
        return codec.deserialize(shortBytes, Short.class, noFlags);
    }
deserializeBigDecimal method · java · L142-L144 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public Object deserializeBigDecimal() {
        return codec.deserialize(bigDecimalBytes, BigDecimal.class, noFlags);
    }
deserializeBoolean method · java · L147-L149 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public Object deserializeBoolean() {
        return codec.deserialize(booleanBytes, Boolean.class, noFlags);
    }
deserializeLocalDateTime method · java · L152-L154 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public Object deserializeLocalDateTime() {
        return codec.deserialize(localDateTimeBytes, LocalDateTime.class, noFlags);
    }
Want this analysis on your repo? https://repobility.com/scan/
deserializeAsString method · java · L157-L159 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public Object deserializeAsString() {
        return codec.deserialize(stringFlagBytes, Integer.class, stringFlags);
    }
canDeserializeString method · java · L162-L164 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/CodecBenchmark.java
    public boolean canDeserializeString() {
        return codec.canDeserialize(String.class);
    }
citizenFullWriteAsPut function · java · L98-L100 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/MapperBenchmark.java
    public Put citizenFullWriteAsPut() {
        return citizenMapper.writeAsPut(citizenFull);
    }
citizenMinimalWriteAsPut function · java · L103-L105 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/MapperBenchmark.java
    public Put citizenMinimalWriteAsPut() {
        return citizenMapper.writeAsPut(citizenMinimal);
    }
employeeWriteAsPut function · java · L108-L110 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/MapperBenchmark.java
    public Put employeeWriteAsPut() {
        return employeeMapper.writeAsPut(employee);
    }
crawlWriteAsPut function · java · L113-L115 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/MapperBenchmark.java
    public Put crawlWriteAsPut() {
        return crawlMapper.writeAsPut(crawl);
    }
citizenFullReadFromResult function · java · L120-L122 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/MapperBenchmark.java
    public Citizen citizenFullReadFromResult() {
        return citizenMapper.readFromResult(citizenFullResult);
    }
citizenMinimalReadFromResult function · java · L125-L127 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/MapperBenchmark.java
    public Citizen citizenMinimalReadFromResult() {
        return citizenMapper.readFromResult(citizenMinimalResult);
    }
Methodology: Repobility · https://repobility.com/research/state-of-ai-code-2026/
employeeReadFromResult function · java · L130-L132 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/MapperBenchmark.java
    public Employee employeeReadFromResult() {
        return employeeMapper.readFromResult(employeeResult);
    }
crawlReadFromResult function · java · L135-L137 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/MapperBenchmark.java
    public Crawl crawlReadFromResult() {
        return crawlMapper.readFromResult(crawlResult);
    }
citizenFullReadFromPut function · java · L142-L144 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/MapperBenchmark.java
    public Citizen citizenFullReadFromPut() {
        return citizenMapper.readFromPut(citizenFullPut);
    }
employeeReadFromPut function · java · L147-L149 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/MapperBenchmark.java
    public Employee employeeReadFromPut() {
        return employeeMapper.readFromPut(employeePut);
    }
crawlReadFromPut function · java · L152-L154 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/MapperBenchmark.java
    public Crawl crawlReadFromPut() {
        return crawlMapper.readFromPut(crawlPut);
    }
citizenFullWriteAsResult function · java · L159-L161 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/MapperBenchmark.java
    public Result citizenFullWriteAsResult() {
        return citizenMapper.writeAsResult(citizenFull);
    }
employeeWriteAsResult function · java · L164-L166 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/MapperBenchmark.java
    public Result employeeWriteAsResult() {
        return employeeMapper.writeAsResult(employee);
    }
citizenComposeRowKey function · java · L52-L54 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/RowKeyBenchmark.java
    public byte[] citizenComposeRowKey() {
        return citizenMapper.composeRowKey(citizen);
    }
Repobility · code-quality intelligence · https://repobility.com
employeeComposeRowKey function · java · L57-L59 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/RowKeyBenchmark.java
    public byte[] employeeComposeRowKey() {
        return employeeMapper.composeRowKey(employee);
    }
crawlComposeRowKey function · java · L62-L64 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/RowKeyBenchmark.java
    public byte[] crawlComposeRowKey() {
        return crawlMapper.composeRowKey(crawl);
    }
citizenParseRowKey function · java · L69-L73 (5 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/RowKeyBenchmark.java
    public Citizen citizenParseRowKey() {
        Citizen c = new Citizen();
        citizenMapper.parseRowKey(citizenRowKeyBytes, c);
        return c;
    }
employeeParseRowKey function · java · L76-L80 (5 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/RowKeyBenchmark.java
    public Employee employeeParseRowKey() {
        Employee e = new Employee();
        employeeMapper.parseRowKey(employeeRowKeyBytes, e);
        return e;
    }
crawlParseRowKey function · java · L83-L87 (5 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/RowKeyBenchmark.java
    public Crawl crawlParseRowKey() {
        Crawl c = new Crawl();
        crawlMapper.parseRowKey(crawlRowKeyBytes, c);
        return c;
    }
citizenGetRowKey function · java · L92-L94 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/RowKeyBenchmark.java
    public String citizenGetRowKey() {
        return citizenMapper.getRowKey(citizen);
    }
employeeGetRowKey function · java · L97-L99 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/RowKeyBenchmark.java
    public Long employeeGetRowKey() {
        return employeeMapper.getRowKey(employee);
    }
crawlGetRowKey function · java · L102-L104 (3 LOC)
hbase-orm-test/src/jmh/java/io/github/dordor12/hbase/orm/bench/RowKeyBenchmark.java
    public String crawlGetRowKey() {
        return crawlMapper.getRowKey(crawl);
    }
Repobility — same analyzer, your code, free for public repos · /scan/
AsyncDAOPerfTest class · java · L26-L222 (197 LOC)
hbase-orm-test/src/perfTest/java/io/github/dordor12/hbase/orm/perf/AsyncDAOPerfTest.java
class AsyncDAOPerfTest extends HBasePerfTestBase {

    @BeforeAll
    static void init() {
        PerfResultReporter.clear();
    }

    @AfterAll
    static void report() throws Exception {
        PerfResultReporter.writeReport(Path.of(System.getProperty("project.dir")));
    }

    @Test
    @Order(1)
    void singlePutGetLatency() {
        BenchmarkResult result = PerfResultReporter.run("async.single.put_get", 50, 1000, () -> {
            try {
                Citizen c = new Citizen("APERF", 1, "AsyncSingle");
                c.setAge((short) 25);
                asyncCitizenDAO.persist(c).get(10, TimeUnit.SECONDS);
                Citizen fetched = asyncCitizenDAO.get("APERF#1").get(10, TimeUnit.SECONDS);
                assertNotNull(fetched);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        });
        System.out.println(result);
    }

    @ParameterizedTest
    @ValueSource(ints = {10, 100, 1000})
    @Order(2)
    v
init method · java · L29-L31 (3 LOC)
hbase-orm-test/src/perfTest/java/io/github/dordor12/hbase/orm/perf/AsyncDAOPerfTest.java
    static void init() {
        PerfResultReporter.clear();
    }
report method · java · L34-L36 (3 LOC)
hbase-orm-test/src/perfTest/java/io/github/dordor12/hbase/orm/perf/AsyncDAOPerfTest.java
    static void report() throws Exception {
        PerfResultReporter.writeReport(Path.of(System.getProperty("project.dir")));
    }
singlePutGetLatency method · java · L40-L53 (14 LOC)
hbase-orm-test/src/perfTest/java/io/github/dordor12/hbase/orm/perf/AsyncDAOPerfTest.java
    void singlePutGetLatency() {
        BenchmarkResult result = PerfResultReporter.run("async.single.put_get", 50, 1000, () -> {
            try {
                Citizen c = new Citizen("APERF", 1, "AsyncSingle");
                c.setAge((short) 25);
                asyncCitizenDAO.persist(c).get(10, TimeUnit.SECONDS);
                Citizen fetched = asyncCitizenDAO.get("APERF#1").get(10, TimeUnit.SECONDS);
                assertNotNull(fetched);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        });
        System.out.println(result);
    }
bulkPutThroughput method · java · L58-L75 (18 LOC)
hbase-orm-test/src/perfTest/java/io/github/dordor12/hbase/orm/perf/AsyncDAOPerfTest.java
    void bulkPutThroughput(int batchSize) {
        List<Citizen> batch = new ArrayList<>(batchSize);
        for (int i = 0; i < batchSize; i++) {
            Citizen c = new Citizen("ABULK", i, "Citizen-" + i);
            c.setAge((short) (20 + i % 50));
            batch.add(c);
        }

        BenchmarkResult result = PerfResultReporter.run(
                "async.bulk_put.batch_" + batchSize, 3, 20, () -> {
                    try {
                        asyncCitizenDAO.persistAll(batch).get(30, TimeUnit.SECONDS);
                    } catch (Exception e) {
                        throw new RuntimeException(e);
                    }
                });
        System.out.println(result);
    }
bulkGetThroughput method · java · L80-L100 (21 LOC)
hbase-orm-test/src/perfTest/java/io/github/dordor12/hbase/orm/perf/AsyncDAOPerfTest.java
    void bulkGetThroughput(int batchSize) throws Exception {
        // Seed data
        List<Citizen> batch = new ArrayList<>(batchSize);
        List<String> keys = new ArrayList<>(batchSize);
        for (int i = 0; i < batchSize; i++) {
            Citizen c = new Citizen("ABGET", i, "Citizen-" + i);
            batch.add(c);
            keys.add("ABGET#" + i);
        }
        asyncCitizenDAO.persistAll(batch).get(30, TimeUnit.SECONDS);

        BenchmarkResult result = PerfResultReporter.run(
                "async.bulk_get.batch_" + batchSize, 3, 20, () -> {
                    try {
                        asyncCitizenDAO.getAll(keys).get(30, TimeUnit.SECONDS);
                    } catch (Exception e) {
                        throw new RuntimeException(e);
                    }
                });
        System.out.println(result);
    }
concurrentBulkPut method · java · L104-L118 (15 LOC)
hbase-orm-test/src/perfTest/java/io/github/dordor12/hbase/orm/perf/AsyncDAOPerfTest.java
    void concurrentBulkPut() {
        BenchmarkResult result = PerfResultReporter.run("async.concurrent_bulk_put.1000", 2, 10, () -> {
            try {
                List<CompletableFuture<String>> futures = new ArrayList<>(1000);
                for (int i = 0; i < 1000; i++) {
                    Citizen c = new Citizen("CONC", i, "Concurrent-" + i);
                    futures.add(asyncCitizenDAO.persist(c));
                }
                CompletableFuture.allOf(futures.toArray(new CompletableFuture[0])).get(60, TimeUnit.SECONDS);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        });
        System.out.println(result);
    }
prefixScanThroughput method · java · L123-L141 (19 LOC)
hbase-orm-test/src/perfTest/java/io/github/dordor12/hbase/orm/perf/AsyncDAOPerfTest.java
    void prefixScanThroughput(int resultSize) throws Exception {
        // Seed data
        String prefix = "ASCAN" + resultSize;
        List<Citizen> batch = new ArrayList<>(resultSize);
        for (int i = 0; i < resultSize; i++) {
            batch.add(new Citizen(prefix, i, "Citizen-" + i));
        }
        asyncCitizenDAO.persistAll(batch).get(30, TimeUnit.SECONDS);

        BenchmarkResult result = PerfResultReporter.run(
                "async.prefix_scan.size_" + resultSize, 3, 20, () -> {
                    try {
                        asyncCitizenDAO.getByPrefix(Bytes.toBytes(prefix + "#")).get(30, TimeUnit.SECONDS);
                    } catch (Exception e) {
                        throw new RuntimeException(e);
                    }
                });
        System.out.println(result);
    }
Want this analysis on your repo? https://repobility.com/scan/
executorComparison method · java · L145-L202 (58 LOC)
hbase-orm-test/src/perfTest/java/io/github/dordor12/hbase/orm/perf/AsyncDAOPerfTest.java
    void executorComparison() {
        // Seed data for scan
        try {
            List<Citizen> batch = new ArrayList<>(100);
            for (int i = 0; i < 100; i++) {
                batch.add(new Citizen("EXEC", i, "Citizen-" + i));
            }
            asyncCitizenDAO.persistAll(batch).get(30, TimeUnit.SECONDS);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }

        Scan scan = new Scan();
        scan.setRowPrefixFilter(Bytes.toBytes("EXEC#"));

        // Default executor (null — inline)
        AsyncHBaseDAO<String, Citizen> defaultDAO = asyncCitizenDAO;
        BenchmarkResult defaultResult = PerfResultReporter.run("async.executor.default", 3, 30, () -> {
            try {
                defaultDAO.scanAll(scan).get(30, TimeUnit.SECONDS);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        });
        System.out.println(defaultResult);

        // Fixed-4 executor
        Ex
multiVersionWriteRead method · java · L206-L221 (16 LOC)
hbase-orm-test/src/perfTest/java/io/github/dordor12/hbase/orm/perf/AsyncDAOPerfTest.java
    void multiVersionWriteRead() {
        BenchmarkResult result = PerfResultReporter.run("async.multi_version.write_read", 5, 50, () -> {
            try {
                Crawl crawl = new Crawl("async-mv-" + System.nanoTime());
                for (int v = 0; v < 10; v++) {
                    crawl.addF1((long) (v + 1) * 1000, v * 1.1);
                }
                asyncCrawlDAO.persist(crawl).get(10, TimeUnit.SECONDS);
                Crawl fetched = asyncCrawlDAO.get(crawl.getKey(), 10).get(10, TimeUnit.SECONDS);
                assertNotNull(fetched);
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
        });
        System.out.println(result);
    }
HBasePerfTestBase class · java · L34-L151 (118 LOC)
hbase-orm-test/src/perfTest/java/io/github/dordor12/hbase/orm/perf/HBasePerfTestBase.java
public abstract class HBasePerfTestBase {

    protected static final int ZK_PORT = 2181;
    protected static final int MASTER_PORT = 16000;
    protected static final int RS_PORT = 16020;
    protected static final int MASTER_UI_PORT = 16010;

    protected static GenericContainer<?> hbaseContainer;
    protected static Connection syncConnection;
    protected static AsyncConnection asyncConnection;

    protected static BestSuitCodec codec;
    protected static HBaseDAO<String, Citizen> citizenDAO;
    protected static HBaseDAO<Long, Employee> employeeDAO;
    protected static HBaseDAO<String, Crawl> crawlDAO;
    protected static AsyncHBaseDAO<String, Citizen> asyncCitizenDAO;
    protected static AsyncHBaseDAO<Long, Employee> asyncEmployeeDAO;
    protected static AsyncHBaseDAO<String, Crawl> asyncCrawlDAO;

    @BeforeAll
    @SuppressWarnings("resource")
    static void setUpHBase() throws Exception {
        Path dockerDir = Path.of(System.getProperty("project.dir"), "docker");
‹ prevpage 4 / 5next ›