chukwa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject svn commit: r1411810 - in /incubator/chukwa/trunk: CHANGES.txt src/main/java/org/apache/hadoop/chukwa/extraction/demux/processor/mapper/AbstractProcessor.java
Date Tue, 20 Nov 2012 19:35:40 GMT
Author: eyang
Date: Tue Nov 20 19:35:39 2012
New Revision: 1411810

URL: http://svn.apache.org/viewvc?rev=1411810&view=rev
Log:
CHUKWA-632. Added getter method for startOffset in AbstractProcessor. (Abhijit Dhar via Eric
Yang)

Modified:
    incubator/chukwa/trunk/CHANGES.txt
    incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/extraction/demux/processor/mapper/AbstractProcessor.java

Modified: incubator/chukwa/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/chukwa/trunk/CHANGES.txt?rev=1411810&r1=1411809&r2=1411810&view=diff
==============================================================================
--- incubator/chukwa/trunk/CHANGES.txt (original)
+++ incubator/chukwa/trunk/CHANGES.txt Tue Nov 20 19:35:39 2012
@@ -24,6 +24,8 @@ Trunk (unreleased changes)
 
   BUGS
 
+    CHUKWA-632. Added getter method for startOffset in AbstractProcessor. (Abhijit Dhar via
Eric Yang)
+
     CHUKWA-637. Fixed default cluster selection in hicc. (Eric Yang)
 
     CHUKWA-654. Added additional check for getting row key. (Saisai Shao via Eric Yang)

Modified: incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/extraction/demux/processor/mapper/AbstractProcessor.java
URL: http://svn.apache.org/viewvc/incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/extraction/demux/processor/mapper/AbstractProcessor.java?rev=1411810&r1=1411809&r2=1411810&view=diff
==============================================================================
--- incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/extraction/demux/processor/mapper/AbstractProcessor.java
(original)
+++ incubator/chukwa/trunk/src/main/java/org/apache/hadoop/chukwa/extraction/demux/processor/mapper/AbstractProcessor.java
Tue Nov 20 19:35:39 2012
@@ -36,8 +36,8 @@ public abstract class AbstractProcessor 
   Calendar calendar = Calendar.getInstance();
   byte[] bytes;
   int[] recordOffsets;
-  int currentPos = 0;
-  int startOffset = 0;
+  protected int currentPos = 0;
+  protected int startOffset = 0;
 
   protected ChukwaArchiveKey archiveKey = null;
   protected ChukwaRecordKey key = new ChukwaRecordKey();
@@ -125,5 +125,21 @@ public abstract class AbstractProcessor 
     startOffset = recordOffsets[currentPos] + 1;
     currentPos++;
     return RecordConstants.recoverRecordSeparators("\n", log);
-  }  
+  }
+
+public int getCurrentPos() {
+	return currentPos;
+}
+
+public void setCurrentPos(int currentPos) {
+	this.currentPos = currentPos;
+}
+
+public int getStartOffset() {
+	return startOffset;
+}
+
+public void setStartOffset(int startOffset) {
+	this.startOffset = startOffset;
+}  
 }



Mime
View raw message