Skip to content

Commit

Permalink
remove some outdated classes. simplify package structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbasralian committed Jan 5, 2023
1 parent 5d89c72 commit 34b1b0b
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 167 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package io.deephaven.queryutil.dataadapter.datafetch.bulk.gen;
package io.deephaven.queryutil.dataadapter.datafetch.bulk;

import io.deephaven.engine.rowset.RowSequence;
import io.deephaven.engine.table.ColumnSource;
import io.deephaven.queryutil.dataadapter.ContextHolder;
import io.deephaven.queryutil.dataadapter.datafetch.bulk.AbstractTableDataArrayRetriever;
import io.deephaven.queryutil.dataadapter.datafetch.bulk.TableDataArrayRetriever;

/**
* Superclass of generated {@link TableDataArrayRetriever TableDataRetrievers}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import io.deephaven.base.verify.Assert;
import io.deephaven.engine.table.ColumnSource;
import io.deephaven.engine.table.Table;
import io.deephaven.queryutil.dataadapter.datafetch.bulk.gen.ExampleGeneratedMultiRowDataArrayRetriever;
import io.deephaven.queryutil.dataadapter.rec.MultiRowRecordAdapter;
import io.deephaven.queryutil.dataadapter.rec.desc.RecordAdapterDescriptor;
import io.deephaven.queryutil.dataadapter.rec.json.JsonRecordAdapterGenerator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.deephaven.queryutil.dataadapter.datafetch.bulk.gen;
package io.deephaven.queryutil.dataadapter.datafetch.bulk;

import io.deephaven.base.verify.Assert;
import io.deephaven.engine.rowset.RowSequence;
Expand All @@ -13,7 +13,7 @@
* <p>
* Created by rbasralian on 3/7/22
*/
public class ExampleGeneratedMultiRowDataArrayRetriever extends AbstractGeneratedTableDataArrayRetriever {
class ExampleGeneratedMultiRowDataArrayRetriever extends AbstractGeneratedTableDataArrayRetriever {

public ExampleGeneratedMultiRowDataArrayRetriever(ColumnSource<?>[] colSources) {
super(colSources);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

import io.deephaven.engine.rowset.RowSet;
import io.deephaven.engine.table.ColumnSource;
import io.deephaven.queryutil.dataadapter.datafetch.bulk.gen.AbstractGeneratedTableDataArrayRetriever;
import io.deephaven.queryutil.dataadapter.datafetch.bulk.gen.TableDataRetrieverGenerator;
import io.deephaven.queryutil.dataadapter.datafetch.bulk.simple.SimpleTableDataArrayRetriever;
import org.jetbrains.annotations.NotNull;

import java.lang.reflect.Constructor;
import java.util.List;
Expand Down Expand Up @@ -61,25 +57,6 @@ default void fillDataArrays(boolean usePrev, Object[] recordDataArrs, RowSet tab
void fillDataArrays(boolean usePrev, RowSet tableIndex, Object[] dataArrs, LongConsumer keyConsumer);

static TableDataArrayRetriever makeDefault(final ColumnSource<?>... columnSources) {
final boolean useGeneratedTDAR = true;
if (useGeneratedTDAR) {
return makeGenerated(columnSources);
} else {
return makeSimple(columnSources);
}
}

@NotNull
static SimpleTableDataArrayRetriever makeSimple(ColumnSource<?>[] columnSources) {
try {
return new SimpleTableDataArrayRetriever(columnSources);
} catch (Exception ex) {
throw new RuntimeException("Could not create table data retriever", ex);
}
}

@NotNull
static AbstractGeneratedTableDataArrayRetriever makeGenerated(ColumnSource<?>[] columnSources) {
try {
final TableDataRetrieverGenerator tableDataRetrieverGenerator =
new TableDataRetrieverGenerator(columnSources);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.deephaven.queryutil.dataadapter.datafetch.bulk.gen;
package io.deephaven.queryutil.dataadapter.datafetch.bulk;

import io.deephaven.base.verify.Assert;
import io.deephaven.base.verify.AssertionFailure;
Expand All @@ -14,7 +14,7 @@
* <p>
* Created by rbasralian on 3/7/22
*/
public class TableDataRetrieverGenerator {
class TableDataRetrieverGenerator {

private static final String COMPILED_CLASS_NAME = "TableDataArrayRetriever";
private final String[] colTypeNames;
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 34b1b0b

Please sign in to comment.