Did you check out ProjectableFilterableTable? It’s like FilterableTable but its “scan" method also accepts a list of columns to project.
The columns are expressed as ordinals - offsets into the record type that the getRowType method previously returned. But since you’re using HBase I should ask: does your table have a list of known columns? If it doesn’t, there is no simple approach. Julian > On Nov 7, 2016, at 7:48 AM, Amit Singla <[email protected]> wrote: > > I am working on providing a sql interface for hbase where in I need the > list of columns in the select clause of the query. I refer to > CSVTranslatableTable example and I see to write a planner, implement > TableScan etc to get the handle to list of column but is there a simpler > way to just get the list of columns e.g. we get filters for a filterable > table in the scan method? > > I will appreciate your help on this. > > Thanks, Amit
