Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2connector #458

Open
wants to merge 5 commits into
base: snappy/master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public String columnBatchTableName(String tableName) {

@Override
public CloseableIterator<ColumnTableEntry> columnTableScan(
String columnTable, int[] projection, byte[] serializedFilters,
Set<Integer> bucketIds) throws SQLException {
String qualifiedTable, int[] projection, byte[] serializedFilters,
Set<Integer> bucketIds, boolean useKryoSerializer) throws SQLException {
throw new UnsupportedOperationException("unexpected invocation for "
+ toString());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Set<Object> createColumnBatch(BucketRegion region, long batchID,
*/
CloseableIterator<ColumnTableEntry> columnTableScan(String qualifiedTable,
int[] projection, byte[] serializedFilters,
Set<Integer> bucketIds) throws SQLException;
Set<Integer> bucketIds, boolean useKryoSerializer) throws SQLException;

void registerCatalogSchemaChange();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2960,7 +2960,7 @@ public static void GET_COLUMN_TABLE_SCHEMA(String schema, String table,
};

public static void COLUMN_TABLE_SCAN(String columnTable, String projection,
Blob filters, ResultSet[] result) throws SQLException {
Blob filters, Boolean useKryoSerializer, ResultSet[] result) throws SQLException {
try {
// split the projection into column indexes (1-based)
final TIntArrayList columnsList = new TIntArrayList(4);
Expand All @@ -2976,12 +2976,12 @@ public static void COLUMN_TABLE_SCAN(String columnTable, String projection,
byte[] batchFilters = null;
if (filters != null) {
batchFilters = filters.getBytes(1, (int)filters.length());
filters.free();
// filters.free();
}
Set<Integer> bucketIds = lcc.getBucketIdsForLocalExecution();
final CloseableIterator<ColumnTableEntry> iter =
CallbackFactoryProvider.getStoreCallbacks().columnTableScan(
columnTable, columns, batchFilters, bucketIds);
columnTable, columns, batchFilters, bucketIds, useKryoSerializer);
if (GemFireXDUtils.TraceExecution) {
SanityManager.DEBUG_PRINT(GfxdConstants.TRACE_EXECUTION,
"COLUMN_TABLE_SCAN table=" + columnTable +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2006,11 +2006,12 @@ private void createGfxdSystemProcedures(TransactionController tc,
}
{
// COLUMN_TABLE_SCAN(String,String,String,Blob,ResultSet[])
String[] arg_names = new String[] { "TABLE", "PROJECTION", "FILTERS" };
String[] arg_names = new String[] { "TABLE", "PROJECTION", "FILTERS", "USE_KRYO_SERIALIZER" };
TypeDescriptor[] arg_types = new TypeDescriptor[] {
DataTypeDescriptor.getCatalogType(Types.VARCHAR),
DataTypeDescriptor.getCatalogType(Types.VARCHAR),
DataTypeDescriptor.getCatalogType(Types.BLOB)
DataTypeDescriptor.getCatalogType(Types.BLOB),
DataTypeDescriptor.getCatalogType(Types.BOOLEAN)
};
super.createSystemProcedureOrFunction("COLUMN_TABLE_SCAN", sysUUID,
arg_names, arg_types, 0, 1, RoutineAliasInfo.READS_SQL_DATA, null,
Expand Down