org.apache.spark.sql.vectorized.ColumnarArray Java Examples
The following examples show how to use
org.apache.spark.sql.vectorized.ColumnarArray.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ArrowSchemaConverter.java From spark-bigquery-connector with Apache License 2.0 | 5 votes |
@Override final ColumnarArray getArray(int rowId) { ArrowBuf offsets = accessor.getOffsetBuffer(); int index = rowId * ListVector.OFFSET_WIDTH; int start = offsets.getInt(index); int end = offsets.getInt(index + ListVector.OFFSET_WIDTH); return new ColumnarArray(arrayData, start, end - start); }
Example #2
Source File: FlightArrowColumnVector.java From flight-spark-source with Apache License 2.0 | 5 votes |
@Override public ColumnarArray getArray(int rowId) { if (isNullAt(rowId)) { return null; } return accessor.getArray(rowId); }
Example #3
Source File: FlightArrowColumnVector.java From flight-spark-source with Apache License 2.0 | 5 votes |
@Override final ColumnarArray getArray(int rowId) { ArrowBuf offsets = accessor.getOffsetBuffer(); int index = rowId * ListVector.OFFSET_WIDTH; int start = offsets.getInt(index); int end = offsets.getInt(index + ListVector.OFFSET_WIDTH); return new ColumnarArray(arrayData, start, end - start); }
Example #4
Source File: IcebergArrowColumnVector.java From iceberg with Apache License 2.0 | 5 votes |
@Override public ColumnarArray getArray(int rowId) { if (isNullAt(rowId)) { return null; } return accessor.getArray(rowId); }
Example #5
Source File: ArrowVectorAccessors.java From iceberg with Apache License 2.0 | 5 votes |
@Override final ColumnarArray getArray(int rowId) { ArrowBuf offsets = vector.getOffsetBuffer(); int index = rowId * ListVector.OFFSET_WIDTH; int start = offsets.getInt(index); int end = offsets.getInt(index + ListVector.OFFSET_WIDTH); return new ColumnarArray(arrayData, start, end - start); }
Example #6
Source File: ArrowSchemaConverter.java From spark-bigquery-connector with Apache License 2.0 | 4 votes |
@Override public ColumnarArray getArray(int rowId) { if (isNullAt(rowId)) return null; return accessor.getArray(rowId); }
Example #7
Source File: ArrowSchemaConverter.java From spark-bigquery-connector with Apache License 2.0 | 4 votes |
ColumnarArray getArray(int rowId) { throw new UnsupportedOperationException(); }
Example #8
Source File: FlightArrowColumnVector.java From flight-spark-source with Apache License 2.0 | 4 votes |
ColumnarArray getArray(int rowId) { throw new UnsupportedOperationException(); }
Example #9
Source File: ArrowVectorAccessor.java From iceberg with Apache License 2.0 | 4 votes |
ColumnarArray getArray(int rowId) { throw new UnsupportedOperationException("Unsupported type: array"); }
Example #10
Source File: NullValuesColumnVector.java From iceberg with Apache License 2.0 | 4 votes |
@Override public ColumnarArray getArray(int rowId) { throw new UnsupportedOperationException(); }