public final class Table extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
Table.AggregateOperation
Class representing aggregate operations
|
static class |
Table.OrderByArg |
static class |
Table.TableOperation |
static class |
Table.TestBuilder
Create a table on the GPU with data from the CPU.
|
| Constructor and Description |
|---|
Table(ColumnVector... columns)
Table class makes a copy of the array of
ColumnVectors passed to it. |
| Modifier and Type | Method and Description |
|---|---|
static Table.OrderByArg |
asc(int index) |
static Aggregate |
avg(int index) |
void |
close() |
static Table |
concatenate(Table... tables)
Concatenate multiple tables together to form a single table.
|
static Aggregate |
count() |
static Table.OrderByArg |
desc(int index) |
ColumnVector |
getColumn(int index)
Return the
ColumnVector at the specified index. |
int |
getNumberOfColumns() |
long |
getRowCount() |
Table.AggregateOperation |
groupBy(int... indices) |
static Aggregate |
max(int index) |
static Aggregate |
min(int index) |
Table.TableOperation |
onColumns(int... indices) |
Table |
orderBy(boolean areNullsSmallest,
Table.OrderByArg... args)
Orders the table using the sortkeys returning a new allocated table.
|
static Table |
readCSV(Schema schema,
byte[] buffer) |
static Table |
readCSV(Schema schema,
CSVOptions options,
byte[] buffer) |
static Table |
readCSV(Schema schema,
CSVOptions opts,
byte[] buffer,
long offset,
long len) |
static Table |
readCSV(Schema schema,
CSVOptions opts,
File path) |
static Table |
readCSV(Schema schema,
CSVOptions opts,
HostMemoryBuffer buffer,
long len) |
static Table |
readCSV(Schema schema,
File path) |
static Table |
readParquet(byte[] buffer) |
static Table |
readParquet(File path) |
static Table |
readParquet(ParquetOptions opts,
byte[] buffer) |
static Table |
readParquet(ParquetOptions opts,
byte[] buffer,
long len) |
static Table |
readParquet(ParquetOptions opts,
File path) |
static Table |
readParquet(ParquetOptions opts,
HostMemoryBuffer buffer,
long len) |
static Aggregate |
sum(int index) |
String |
toString() |
public Table(ColumnVector... columns)
ColumnVectors passed to it. The class
will decrease the refcount
on itself and all its contents when closed and free resources if refcount is zerocolumns - - Array of ColumnVectorspublic ColumnVector getColumn(int index)
ColumnVector at the specified index. If you want to keep a reference to
the column around past the life time of the table, you will need to increment the reference
count on the column yourself.public final long getRowCount()
public final int getNumberOfColumns()
public void close()
close in interface AutoCloseablepublic static Table readCSV(Schema schema, CSVOptions opts, File path)
public static Table readCSV(Schema schema, CSVOptions options, byte[] buffer)
public static Table readCSV(Schema schema, CSVOptions opts, byte[] buffer, long offset, long len)
public static Table readCSV(Schema schema, CSVOptions opts, HostMemoryBuffer buffer, long len)
public static Table readParquet(ParquetOptions opts, File path)
public static Table readParquet(byte[] buffer)
public static Table readParquet(ParquetOptions opts, byte[] buffer)
public static Table readParquet(ParquetOptions opts, byte[] buffer, long len)
public static Table readParquet(ParquetOptions opts, HostMemoryBuffer buffer, long len)
public static Table concatenate(Table... tables)
public Table orderBy(boolean areNullsSmallest, Table.OrderByArg... args)
ColumnVector returned as part of the output Table
Example usage: orderBy(true, Table.asc(0), Table.desc(3)...);
areNullsSmallest - - represents if nulls are to be considered smaller than non-nulls.args - - Suppliers to initialize sortKeys.public static Table.OrderByArg asc(int index)
public static Table.OrderByArg desc(int index)
public static Aggregate count()
public static Aggregate max(int index)
public static Aggregate min(int index)
public static Aggregate sum(int index)
public static Aggregate avg(int index)
public Table.AggregateOperation groupBy(int... indices)
public Table.TableOperation onColumns(int... indices)
Copyright © 2019. All rights reserved.