object MetaUtils extends Arm
- Alphabetic
- By Inheritance
- MetaUtils
- Arm
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val TableIdDefaultValue: Int
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
buildDegenerateTableMeta(batch: ColumnarBatch): TableMeta
Build a TableMeta message for a degenerate table (zero columns or rows)
Build a TableMeta message for a degenerate table (zero columns or rows)
- batch
the degenerate columnar batch which must be compressed or packed
- returns
heap-based flatbuffer message
-
def
buildTableMeta(fbb: FlatBufferBuilder, bufferMetaOffset: Option[Int], packedMeta: ByteBuffer, numRows: Long): TableMeta
Build a TableMeta message with a pre-built BufferMeta message
Build a TableMeta message with a pre-built BufferMeta message
- fbb
flatbuffer builder that has an already built BufferMeta message
- bufferMetaOffset
offset where the BufferMeta message was built
- packedMeta
opaque metadata needed to unpack the table
- numRows
the number of rows in the table
- returns
flatbuffer message
-
def
buildTableMeta(tableId: Option[Int], ct: ContiguousTable, codecId: Byte, compressedSize: Long): TableMeta
Build a TableMeta message from a Table that originated in contiguous memory that has since been compressed.
Build a TableMeta message from a Table that originated in contiguous memory that has since been compressed.
- tableId
ID to use for this table
- ct
contiguous table representing the uncompressed data
- codecId
identifier of the codec being used, see CodecType
- compressedSize
compressed data from the uncompressed buffer
- returns
heap-based flatbuffer message
- def buildTableMeta(tableId: Int, bufferSize: Long, packedMeta: ByteBuffer, rowCount: Long): TableMeta
-
def
buildTableMeta(tableId: Int, ct: ContiguousTable): TableMeta
Build a TableMeta message from a Table in contiguous memory
Build a TableMeta message from a Table in contiguous memory
- tableId
the ID to use for this table
- ct
the contiguous table whose metadata will be encoded in the message
- returns
heap-based flatbuffer message
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
def
closeOnExcept[T <: AutoCloseable, V](r: Option[T])(block: (Option[T]) ⇒ V): V
Executes the provided code block, closing the resources only if an exception occurs
Executes the provided code block, closing the resources only if an exception occurs
- Definition Classes
- Arm
-
def
closeOnExcept[T <: AutoCloseable, V](r: ArrayBuffer[T])(block: (ArrayBuffer[T]) ⇒ V): V
Executes the provided code block, closing the resources only if an exception occurs
Executes the provided code block, closing the resources only if an exception occurs
- Definition Classes
- Arm
-
def
closeOnExcept[T <: AutoCloseable, V](r: Array[T])(block: (Array[T]) ⇒ V): V
Executes the provided code block, closing the resources only if an exception occurs
Executes the provided code block, closing the resources only if an exception occurs
- Definition Classes
- Arm
-
def
closeOnExcept[T <: AutoCloseable, V](r: Seq[T])(block: (Seq[T]) ⇒ V): V
Executes the provided code block, closing the resources only if an exception occurs
Executes the provided code block, closing the resources only if an exception occurs
- Definition Classes
- Arm
-
def
closeOnExcept[T <: AutoCloseable, V](r: T)(block: (T) ⇒ V): V
Executes the provided code block, closing the resource only if an exception occurs
Executes the provided code block, closing the resource only if an exception occurs
- Definition Classes
- Arm
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
freeOnExcept[T <: RapidsBuffer, V](r: T)(block: (T) ⇒ V): V
Executes the provided code block, freeing the RapidsBuffer only if an exception occurs
Executes the provided code block, freeing the RapidsBuffer only if an exception occurs
- Definition Classes
- Arm
-
def
getBatchFromMeta(deviceBuffer: DeviceMemoryBuffer, meta: TableMeta, sparkTypes: Array[DataType]): ColumnarBatch
Construct a columnar batch from a contiguous device buffer and a
TableMetamessage describing the schema of the buffer data.Construct a columnar batch from a contiguous device buffer and a
TableMetamessage describing the schema of the buffer data.- deviceBuffer
contiguous buffer
- meta
schema metadata
- sparkTypes
the spark types that the
ColumnarBatchshould have.- returns
columnar batch that must be closed by the caller
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
getTableFromMeta(deviceBuffer: DeviceMemoryBuffer, meta: TableMeta): Table
Construct a table from a contiguous device buffer and a
TableMetamessage describing the schema of the buffer data.Construct a table from a contiguous device buffer and a
TableMetamessage describing the schema of the buffer data.- deviceBuffer
contiguous buffer
- meta
schema metadata
- returns
table that must be closed by the caller
-
def
getTableMetaNoTable(buffer: DeviceMemoryBuffer): TableMeta
Constructs a table metadata buffer from a device buffer without describing any schema for the buffer.
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withResource[T <: AutoCloseable, V](h: CloseableHolder[T])(block: (CloseableHolder[T]) ⇒ V): V
Executes the provided code block and then closes the resource
Executes the provided code block and then closes the resource
- Definition Classes
- Arm
-
def
withResource[T <: AutoCloseable, V](r: ArrayBuffer[T])(block: (ArrayBuffer[T]) ⇒ V): V
Executes the provided code block and then closes the array buffer of resources
Executes the provided code block and then closes the array buffer of resources
- Definition Classes
- Arm
-
def
withResource[T <: AutoCloseable, V](r: Array[T])(block: (Array[T]) ⇒ V): V
Executes the provided code block and then closes the array of resources
Executes the provided code block and then closes the array of resources
- Definition Classes
- Arm
-
def
withResource[T <: AutoCloseable, V](r: Seq[T])(block: (Seq[T]) ⇒ V): V
Executes the provided code block and then closes the sequence of resources
Executes the provided code block and then closes the sequence of resources
- Definition Classes
- Arm
-
def
withResource[T <: AutoCloseable, V](r: Option[T])(block: (Option[T]) ⇒ V): V
Executes the provided code block and then closes the Option[resource]
Executes the provided code block and then closes the Option[resource]
- Definition Classes
- Arm
-
def
withResource[T <: AutoCloseable, V](r: T)(block: (T) ⇒ V): V
Executes the provided code block and then closes the resource
Executes the provided code block and then closes the resource
- Definition Classes
- Arm
-
def
withResourceIfAllowed[T, V](r: T)(block: (T) ⇒ V): V
Executes the provided code block and then closes the value if it is AutoCloseable
Executes the provided code block and then closes the value if it is AutoCloseable
- Definition Classes
- Arm