Skip to content

Commit b6734ad

Browse files
committed
Remove serialization
1 parent 6359136 commit b6734ad

11 files changed

+1
-574
lines changed

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ set(SPARROW_IPC_HEADERS
100100
${SPARROW_IPC_INCLUDE_DIR}/sparrow_ipc/encapsulated_message.hpp
101101
${SPARROW_IPC_INCLUDE_DIR}/sparrow_ipc/magic_values.hpp
102102
${SPARROW_IPC_INCLUDE_DIR}/sparrow_ipc/metadata.hpp
103-
${SPARROW_IPC_INCLUDE_DIR}/sparrow_ipc/serialize_null_array.hpp
104-
${SPARROW_IPC_INCLUDE_DIR}/sparrow_ipc/serialize_primitive_array.hpp
105-
${SPARROW_IPC_INCLUDE_DIR}/sparrow_ipc/serialize.hpp
106103
${SPARROW_IPC_INCLUDE_DIR}/sparrow_ipc/utils.hpp
107104
)
108105

@@ -116,8 +113,6 @@ set(SPARROW_IPC_SRC
116113
${SPARROW_IPC_SOURCE_DIR}/deserialize.cpp
117114
${SPARROW_IPC_SOURCE_DIR}/encapsulated_message.cpp
118115
${SPARROW_IPC_SOURCE_DIR}/metadata.cpp
119-
${SPARROW_IPC_SOURCE_DIR}/serialize_null_array.cpp
120-
${SPARROW_IPC_SOURCE_DIR}/serialize.cpp
121116
${SPARROW_IPC_SOURCE_DIR}/utils.cpp
122117
)
123118

include/sparrow_ipc/deserialize.hpp

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,6 @@
1111

1212
namespace sparrow_ipc
1313
{
14-
/**
15-
* @brief Deserializes a schema message from Arrow IPC format data.
16-
*
17-
* This function parses an Arrow IPC schema message from a byte buffer, extracting
18-
* the field name and custom metadata from the first (and expected only) field in the schema.
19-
*
20-
* @param data A span containing the raw byte data to deserialize from
21-
* @param current_offset Reference to the current position in the data buffer, which will be
22-
* updated to point past the processed schema message
23-
* @param name Optional output parameter that will contain the field name if present
24-
* @param metadata Optional output parameter that will contain the custom metadata
25-
* key-value pairs if present
26-
*
27-
* @throws std::runtime_error If the message is not a Schema message type
28-
* @throws std::runtime_error If the schema does not contain exactly one field
29-
*
30-
* @note This function expects the data to start with a 4-byte length prefix followed
31-
* by the FlatBuffer schema message data
32-
*/
33-
SPARROW_IPC_API void deserialize_schema_message(
34-
std::span<const uint8_t> data,
35-
size_t& current_offset,
36-
std::optional<std::string>& name,
37-
std::optional<std::vector<sparrow::metadata_pair>>& metadata
38-
);
39-
[[nodiscard]] SPARROW_IPC_API const org::apache::arrow::flatbuf::RecordBatch*
40-
deserialize_record_batch_message(std::span<const uint8_t> data, size_t& current_offset);
41-
4214
/**
4315
* @brief Deserializes an Arrow IPC stream from binary data into a vector of record batches.
4416
*

include/sparrow_ipc/serialize.hpp

Lines changed: 0 additions & 25 deletions
This file was deleted.

include/sparrow_ipc/serialize_null_array.hpp

Lines changed: 0 additions & 11 deletions
This file was deleted.

include/sparrow_ipc/serialize_primitive_array.hpp

Lines changed: 0 additions & 98 deletions
This file was deleted.

src/serialize.cpp

Lines changed: 0 additions & 180 deletions
This file was deleted.

0 commit comments

Comments
 (0)