-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
2,593 additions
and
1,790 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...a-stream-collector/src/main/scala/com.snowplowanalytics.snowplow.collectors/package.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* | ||
* Copyright (c) 2015 Snowplow Analytics Ltd. All rights reserved. | ||
* | ||
* This program is licensed to you under the Apache License Version 2.0, and | ||
* you may not use this file except in compliance with the Apache License | ||
* Version 2.0. You may obtain a copy of the Apache License Version 2.0 at | ||
* http://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the Apache License Version 2.0 is distributed on an "AS | ||
* IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
* implied. See the Apache License Version 2.0 for the specific language | ||
* governing permissions and limitations there under. | ||
*/ | ||
package com.snowplowanalytics.snowplow | ||
package collectors | ||
|
||
// Snowplow | ||
import scalastream.sinks._ | ||
|
||
package object scalastream { | ||
|
||
/** | ||
* Whether the sink is for good rows or bad rows | ||
*/ | ||
object InputType extends Enumeration { | ||
type InputType = Value | ||
val Good, Bad = Value | ||
} | ||
|
||
/** | ||
* Case class for holding both good and | ||
* bad sinks for the Stream Collector. | ||
* | ||
* @param good | ||
* @param bad | ||
*/ | ||
case class CollectorSinks(good: AbstractSink, bad: AbstractSink) | ||
|
||
/** | ||
* Case class for holding the results of | ||
* splitAndSerializePayload. | ||
* | ||
* @param good All good results | ||
* @param bad All bad results | ||
*/ | ||
case class EventSerializeResult(good: List[Array[Byte]], bad: List[Array[Byte]]) | ||
|
||
/** | ||
* Class for the result of splitting a too-large array of events in the body of a POST request | ||
* | ||
* @param goodBatches List of batches of events | ||
* @param failedBigEvents List of events that were too large | ||
*/ | ||
case class SplitBatchResult(goodBatches: List[List[String]], failedBigEvents: List[String]) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.