Package com.lancedb.lance.spark.utils
Class BlobUtils
java.lang.Object
com.lancedb.lance.spark.utils.BlobUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisBlobArrowField(org.apache.arrow.vector.types.pojo.Field field) Check if an Arrow field is a blob field based on its metadata.static booleanisBlobSparkField(org.apache.spark.sql.types.StructField field) Check if a Spark field is a blob field based on its metadata.
-
Field Details
-
LANCE_ENCODING_BLOB_KEY
- See Also:
-
LANCE_ENCODING_BLOB_VALUE
- See Also:
-
-
Constructor Details
-
BlobUtils
public BlobUtils()
-
-
Method Details
-
isBlobSparkField
public static boolean isBlobSparkField(org.apache.spark.sql.types.StructField field) Check if a Spark field is a blob field based on its metadata.- Parameters:
field- the Spark struct field to check- Returns:
- true if the field is a blob field, false otherwise
-
isBlobArrowField
public static boolean isBlobArrowField(org.apache.arrow.vector.types.pojo.Field field) Check if an Arrow field is a blob field based on its metadata.- Parameters:
field- the Arrow field to check- Returns:
- true if the field is a blob field, false otherwise
-