public int accumLowLevelAPIField() { return accumLowLevelAPIField(this); }
public int accumLowLevelAPIField() { return accumLowLevelAPIField(this); }
private int readNext() { if (Pipe.hasContentToRead(logFile)) { int idx = Pipe.takeMsgIdx(logFile); if (idx>=0) { int len = DataInputBlobReader.accumLowLevelAPIField(logFileInput); Pipe.confirmLowLevelRead(logFile, Pipe.sizeOf(RawDataSchema.instance, RawDataSchema.MSG_CHUNKEDSTREAM_1)); Pipe.readNextWithoutReleasingReadLock(logFile); return len; } else { System.out.println("end detected"); Pipe.confirmLowLevelRead(logFile, Pipe.EOF_SIZE); Pipe.readNextWithoutReleasingReadLock(logFile); return -1; } } else { return 0; } }
public static boolean accumulateInputStream(Pipe<RawDataSchema> pipe) { int msgIdx = Pipe.takeMsgIdx(pipe); boolean isEnd; if (RawDataSchema.MSG_CHUNKEDSTREAM_1 == msgIdx) { isEnd = DataInputBlobReader.accumLowLevelAPIField(Pipe.inputStream(pipe))<=0; Pipe.confirmLowLevelRead(pipe, Pipe.sizeOf(pipe, RawDataSchema.MSG_CHUNKEDSTREAM_1)); } else { //eof isEnd = true; Pipe.confirmLowLevelRead(pipe, Pipe.EOF_SIZE); } Pipe.readNextWithoutReleasingReadLock(pipe); return isEnd; }
public static boolean accumulateInputStream(Pipe<RawDataSchema> pipe) { int msgIdx = Pipe.takeMsgIdx(pipe); boolean isEnd; if (RawDataSchema.MSG_CHUNKEDSTREAM_1 == msgIdx) { isEnd = DataInputBlobReader.accumLowLevelAPIField(Pipe.inputStream(pipe))<=0; Pipe.confirmLowLevelRead(pipe, Pipe.sizeOf(pipe, RawDataSchema.MSG_CHUNKEDSTREAM_1)); } else { //eof isEnd = true; Pipe.confirmLowLevelRead(pipe, Pipe.EOF_SIZE); } Pipe.readNextWithoutReleasingReadLock(pipe); return isEnd; }
int additionalLength = fieldByteArray.accumLowLevelAPIField();
int payloadLen = Pipe.peekInt(input, 1); //length is after meta data reader.accumLowLevelAPIField();
inputStream.accumLowLevelAPIField(); //name in the stream
int nxtLen = Pipe.peekInt(input, 1); inputStream.accumLowLevelAPIField();