-/* ------------------------------------------------\r
- Copyright 2014 AT&T Intellectual Property\r
- Licensed under the Apache License, Version 2.0 (the "License");\r
- you may not use this file except in compliance with the License.\r
- You may obtain a copy of the License at\r
- \r
- http://www.apache.org/licenses/LICENSE-2.0\r
- \r
- Unless required by applicable law or agreed to in writing, software\r
- distributed under the License is distributed on an "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- See the License for the specific language governing permissions and\r
- limitations under the License.\r
- ------------------------------------------- */\r
-#ifndef PACKET_H\r
-#define PACKET_H\r
-\r
-#include "gsconfig.h"\r
-#include "gstypes.h"\r
-\r
-#ifndef IPV6_STR\r
-#define IPV6_STR\r
-struct ipv6_str{\r
- gs_uint32_t v[4];\r
-};\r
-#endif\r
-\r
-#define PTYPE_CSV 1\r
-#define PTYPE_GDAT 2\r
-#define PTYPE_STRUCT 3\r
-\r
-#define CSVELEMENTS 1000\r
-#define GDATELEMENTS 1000\r
-\r
-struct csv {\r
- gs_uint32_t numberfields;\r
- gs_sp_t fields[CSVELEMENTS];\r
-};\r
-\r
-struct csv2 { // SSE accelerated CSV processor\r
- gs_uint32_t numberfields;\r
- gs_sp_t fields[CSVELEMENTS];\r
- gs_uint32_t field_lens[CSVELEMENTS];\r
- gs_uint8_t parsed[CSVELEMENTS];\r
-};\r
-\r
-struct gdat {\r
- gs_schemahandle_t schema;\r
- gs_uint32_t numfields;\r
- gs_uint32_t datasz;\r
- gs_uint8_t data[MAXTUPLESZ];\r
-};\r
-\r
-struct packed {\r
- void *values;\r
- gs_sp_t *existence_bitmap;\r
-};\r
-\r
-struct packet {\r
- gs_uint32_t systemTime;\r
- gs_uint32_t ptype; /* type of record e.g. PTYPE_CSV */\r
- gs_schemahandle_t schema;\r
- union {\r
- struct csv csv; /* content of CSV record being processed */\r
- struct csv2 csv2; \r
- struct gdat gdat;\r
- struct packed packed;\r
- } record;\r
- \r
-};\r
-\r
-\r
-#endif\r
+/* ------------------------------------------------
+ Copyright 2014 AT&T Intellectual Property
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ ------------------------------------------- */
+#ifndef PACKET_H
+#define PACKET_H
+
+#include "gsconfig.h"
+#include "gstypes.h"
+
+#ifndef IPV6_STR
+#define IPV6_STR
+struct ipv6_str{
+ gs_uint32_t v[4];
+};
+#endif
+
+#define PTYPE_CSV 1
+#define PTYPE_GDAT 2
+#define PTYPE_STRUCT 3
+
+#define CSVELEMENTS 1000
+#define GDATELEMENTS 1000
+
+struct csv {
+ gs_uint32_t numberfields;
+ gs_sp_t fields[CSVELEMENTS];
+ gs_uint32_t field_lens[CSVELEMENTS];
+};
+
+struct gdat {
+ gs_schemahandle_t schema;
+ gs_uint32_t numfields;
+ gs_uint32_t datasz;
+ gs_uint8_t data[MAXTUPLESZ];
+};
+
+struct packed {
+ void *values;
+ gs_sp_t *existence_bitmap;
+};
+
+struct packet {
+ gs_uint32_t systemTime;
+ gs_uint32_t ptype; /* type of record e.g. PTYPE_CSV */
+ gs_schemahandle_t schema;
+ union {
+ struct csv csv; /* content of CSV record being processed */
+ struct gdat gdat;
+ struct packed packed;
+ } record;
+
+};
+
+
+#endif