summaryrefslogtreecommitdiffstats
path: root/vespa-hadoop/src/test/pig/feed_create_operations.pig
diff options
context:
space:
mode:
Diffstat (limited to 'vespa-hadoop/src/test/pig/feed_create_operations.pig')
-rw-r--r--vespa-hadoop/src/test/pig/feed_create_operations.pig24
1 files changed, 0 insertions, 24 deletions
diff --git a/vespa-hadoop/src/test/pig/feed_create_operations.pig b/vespa-hadoop/src/test/pig/feed_create_operations.pig
deleted file mode 100644
index 4583c095133..00000000000
--- a/vespa-hadoop/src/test/pig/feed_create_operations.pig
+++ /dev/null
@@ -1,24 +0,0 @@
--- Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
--- REGISTER vespa-hadoop.jar -- Not needed in tests
-
--- Create valid Vespa put operations
-DEFINE VespaPutOperation
- com.yahoo.vespa.hadoop.pig.VespaDocumentOperation(
- 'operation=put',
- 'docid=id:<application>:metrics::<name>-<date>'
- );
-
--- By default, VespaStorage assumes it's feeding valid Vespa operations
-DEFINE VespaStorage
- com.yahoo.vespa.hadoop.pig.VespaStorage();
-
--- Load tabular data
-metrics = LOAD 'src/test/resources/tabular_data.csv' AS (date:chararray, name:chararray, value:int, application:chararray);
-
--- Transform tabular data to a Vespa document operation JSON format
-metrics = FOREACH metrics GENERATE VespaPutOperation(*);
-
--- Store into Vespa
-STORE metrics INTO '$ENDPOINT' USING VespaStorage();
-
-