forked from ilimi-in/secor
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Jitendra Singh Sankhwar
committed
Sep 4, 2017
1 parent
5256829
commit df8c726
Showing
149 changed files
with
488 additions
and
183 deletions.
There are no files selected for viewing
Empty file.
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
Empty file.
Empty file.
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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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
Empty file.
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/common/OstrichAdminService.java
100755 → 100644
Empty file.
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
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/common/TopicPartitionGroup.java
100755 → 100644
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/common/ZookeeperConnector.java
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/io/FileReaderWriterFactory.java
100755 → 100644
Empty file.
Empty file.
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 |
---|---|---|
|
@@ -19,28 +19,39 @@ | |
/** | ||
* Generic Object used to read next message from various file reader | ||
* implementations | ||
* | ||
* | ||
* @author Praveen Murugesan ([email protected]) | ||
* | ||
*/ | ||
public class KeyValue { | ||
|
||
private final long mOffset; | ||
private final byte[] mKafkaKey; | ||
private final byte[] mValue; | ||
private final long mTimestamp; | ||
|
||
// constructor | ||
public KeyValue(long offset, byte[] value) { | ||
this.mOffset = offset; | ||
this.mKafkaKey = new byte[0]; | ||
this.mValue = value; | ||
this.mTimestamp = -1; | ||
} | ||
|
||
// constructor | ||
public KeyValue(long offset, byte[] kafkaKey, byte[] value) { | ||
this.mOffset = offset; | ||
this.mKafkaKey = kafkaKey; | ||
this.mValue = value; | ||
this.mTimestamp = -1; | ||
} | ||
|
||
// constructor | ||
public KeyValue(long offset, byte[] kafkaKey, byte[] value, long timestamp) { | ||
this.mOffset = offset; | ||
this.mKafkaKey = kafkaKey; | ||
this.mValue = value; | ||
this.mTimestamp = timestamp; | ||
} | ||
|
||
public long getOffset() { | ||
|
@@ -50,9 +61,20 @@ public long getOffset() { | |
public byte[] getKafkaKey() { | ||
return this.mKafkaKey; | ||
} | ||
|
||
public byte[] getValue() { | ||
return this.mValue; | ||
} | ||
|
||
public long getTimestamp() { | ||
return this.mTimestamp; | ||
} | ||
|
||
public boolean hasKafkaKey() { | ||
return this.mKafkaKey != null && this.mKafkaKey.length != 0; | ||
} | ||
|
||
public boolean hasTimestamp(){ | ||
return this.mTimestamp != -1; | ||
} | ||
} |
Empty file modified
0
src/main/java/com/pinterest/secor/io/impl/DelimitedTextFileReaderWriterFactory.java
100755 → 100644
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/io/impl/FlexibleDelimitedFileReaderWriterFactory.java
100755 → 100644
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/io/impl/JsonORCFileReaderWriterFactory.java
100755 → 100644
Empty file.
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
Empty file modified
0
src/main/java/com/pinterest/secor/io/impl/ProtobufParquetFileReaderWriterFactory.java
100755 → 100644
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/io/impl/SequenceFileReaderWriterFactory.java
100755 → 100644
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/io/impl/ThriftParquetFileReaderWriterFactory.java
100755 → 100644
Empty file.
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/main/LogFilePrinterMain.java
100755 → 100644
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/main/LogFileVerifierMain.java
100755 → 100644
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/main/PartitionFinalizerMain.java
100755 → 100644
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/main/ProgressMonitorMain.java
100755 → 100644
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/main/TestLogMessageProducerMain.java
100755 → 100644
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/main/ZookeeperClientMain.java
100755 → 100644
Empty file.
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
Empty file modified
0
src/main/java/com/pinterest/secor/monitoring/MetricCollector.java
100755 → 100644
Empty file.
Empty file modified
0
src/main/java/com/pinterest/secor/monitoring/OstrichMetricCollector.java
100755 → 100644
Empty file.
Oops, something went wrong.