protected void process(KahaRewrittenDataFileCommand command, Location location) throws IOException { final TreeSet<Integer> completeFileSet = new TreeSet<>(journal.getFileMap().keySet()); // Mark the current journal file as a compacted file so that gc checks can skip // over logs that are smaller compaction type logs. DataFile current = journal.getDataFileById(location.getDataFileId()); current.setTypeCode(command.getRewriteType()); if (completeFileSet.contains(command.getSourceDataFileId()) && command.getSkipIfSourceExists()) { // Move offset so that next location read jumps to next file. location.setOffset(journalMaxFileLength); } }
public java.lang.StringBuilder toString(java.lang.StringBuilder sb, String prefix) { if( hasSourceDataFileId() ) { sb.append(prefix+"sourceDataFileId: "); sb.append(getSourceDataFileId()); sb.append("\n"); } if( hasRewriteType() ) { sb.append(prefix+"rewriteType: "); sb.append(getRewriteType()); sb.append("\n"); } if( hasSkipIfSourceExists() ) { sb.append(prefix+"skipIfSourceExists: "); sb.append(getSkipIfSourceExists()); sb.append("\n"); } return sb; }
protected void process(KahaRewrittenDataFileCommand command, Location location) throws IOException { final TreeSet<Integer> completeFileSet = new TreeSet<>(journal.getFileMap().keySet()); // Mark the current journal file as a compacted file so that gc checks can skip // over logs that are smaller compaction type logs. DataFile current = journal.getDataFileById(location.getDataFileId()); current.setTypeCode(command.getRewriteType()); if (completeFileSet.contains(command.getSourceDataFileId()) && command.getSkipIfSourceExists()) { // Move offset so that next location read jumps to next file. location.setOffset(journalMaxFileLength); } }
protected void process(KahaRewrittenDataFileCommand command, Location location) throws IOException { final TreeSet<Integer> completeFileSet = new TreeSet<>(journal.getFileMap().keySet()); // Mark the current journal file as a compacted file so that gc checks can skip // over logs that are smaller compaction type logs. DataFile current = journal.getDataFileById(location.getDataFileId()); current.setTypeCode(command.getRewriteType()); if (completeFileSet.contains(command.getSourceDataFileId()) && command.getSkipIfSourceExists()) { // Move offset so that next location read jumps to next file. location.setOffset(journalMaxFileLength); } }
protected void process(KahaRewrittenDataFileCommand command, Location location) throws IOException { final TreeSet<Integer> completeFileSet = new TreeSet<>(journal.getFileMap().keySet()); // Mark the current journal file as a compacted file so that gc checks can skip // over logs that are smaller compaction type logs. DataFile current = journal.getDataFileById(location.getDataFileId()); current.setTypeCode(command.getRewriteType()); if (completeFileSet.contains(command.getSourceDataFileId()) && command.getSkipIfSourceExists()) { // Move offset so that next location read jumps to next file. location.setOffset(journalMaxFileLength); } }
public int hashCode() { int rc=-1065231344; if (hasSourceDataFileId()) { rc ^= ( -315365732^getSourceDataFileId() ); } if (hasRewriteType()) { rc ^= ( -1100466490^getRewriteType() ); } if (hasSkipIfSourceExists()) { rc ^= ( -120419949^ (getSkipIfSourceExists()? 3:-3) ); } return rc; }
public int hashCode() { int rc=-1065231344; if (hasSourceDataFileId()) { rc ^= ( -315365732^getSourceDataFileId() ); } if (hasRewriteType()) { rc ^= ( -1100466490^getRewriteType() ); } if (hasSkipIfSourceExists()) { rc ^= ( -120419949^ (getSkipIfSourceExists()? 3:-3) ); } return rc; }
public int hashCode() { int rc=-1065231344; if (hasSourceDataFileId()) { rc ^= ( -315365732^getSourceDataFileId() ); } if (hasRewriteType()) { rc ^= ( -1100466490^getRewriteType() ); } if (hasSkipIfSourceExists()) { rc ^= ( -120419949^ (getSkipIfSourceExists()? 3:-3) ); } return rc; }
public boolean equals(KahaRewrittenDataFileCommand obj) { if (hasSourceDataFileId() ^ obj.hasSourceDataFileId() ) return false; if (hasSourceDataFileId() && ( getSourceDataFileId()!=obj.getSourceDataFileId() )) return false; if (hasRewriteType() ^ obj.hasRewriteType() ) return false; if (hasRewriteType() && ( getRewriteType()!=obj.getRewriteType() )) return false; if (hasSkipIfSourceExists() ^ obj.hasSkipIfSourceExists() ) return false; if (hasSkipIfSourceExists() && ( getSkipIfSourceExists()!=obj.getSkipIfSourceExists() )) return false; return true; }
public boolean equals(KahaRewrittenDataFileCommand obj) { if (hasSourceDataFileId() ^ obj.hasSourceDataFileId() ) return false; if (hasSourceDataFileId() && ( getSourceDataFileId()!=obj.getSourceDataFileId() )) return false; if (hasRewriteType() ^ obj.hasRewriteType() ) return false; if (hasRewriteType() && ( getRewriteType()!=obj.getRewriteType() )) return false; if (hasSkipIfSourceExists() ^ obj.hasSkipIfSourceExists() ) return false; if (hasSkipIfSourceExists() && ( getSkipIfSourceExists()!=obj.getSkipIfSourceExists() )) return false; return true; }
public KahaRewrittenDataFileCommand mergeFrom(KahaRewrittenDataFileCommand other) { if (other.hasSourceDataFileId()) { setSourceDataFileId(other.getSourceDataFileId()); } if (other.hasRewriteType()) { setRewriteType(other.getRewriteType()); } if (other.hasSkipIfSourceExists()) { setSkipIfSourceExists(other.getSkipIfSourceExists()); } return this; }
public KahaRewrittenDataFileCommand mergeFrom(KahaRewrittenDataFileCommand other) { if (other.hasSourceDataFileId()) { setSourceDataFileId(other.getSourceDataFileId()); } if (other.hasRewriteType()) { setRewriteType(other.getRewriteType()); } if (other.hasSkipIfSourceExists()) { setSkipIfSourceExists(other.getSkipIfSourceExists()); } return this; }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasSourceDataFileId()) { output.writeInt32(1, getSourceDataFileId()); } if (hasRewriteType()) { output.writeInt32(2, getRewriteType()); } if (hasSkipIfSourceExists()) { output.writeBool(3, getSkipIfSourceExists()); } }
public boolean equals(KahaRewrittenDataFileCommand obj) { if (hasSourceDataFileId() ^ obj.hasSourceDataFileId() ) return false; if (hasSourceDataFileId() && ( getSourceDataFileId()!=obj.getSourceDataFileId() )) return false; if (hasRewriteType() ^ obj.hasRewriteType() ) return false; if (hasRewriteType() && ( getRewriteType()!=obj.getRewriteType() )) return false; if (hasSkipIfSourceExists() ^ obj.hasSkipIfSourceExists() ) return false; if (hasSkipIfSourceExists() && ( getSkipIfSourceExists()!=obj.getSkipIfSourceExists() )) return false; return true; }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasSourceDataFileId()) { output.writeInt32(1, getSourceDataFileId()); } if (hasRewriteType()) { output.writeInt32(2, getRewriteType()); } if (hasSkipIfSourceExists()) { output.writeBool(3, getSkipIfSourceExists()); } }
public void writeUnframed(org.apache.activemq.protobuf.CodedOutputStream output) throws java.io.IOException { if (hasSourceDataFileId()) { output.writeInt32(1, getSourceDataFileId()); } if (hasRewriteType()) { output.writeInt32(2, getRewriteType()); } if (hasSkipIfSourceExists()) { output.writeBool(3, getSkipIfSourceExists()); } }
public KahaRewrittenDataFileCommand mergeFrom(KahaRewrittenDataFileCommand other) { if (other.hasSourceDataFileId()) { setSourceDataFileId(other.getSourceDataFileId()); } if (other.hasRewriteType()) { setRewriteType(other.getRewriteType()); } if (other.hasSkipIfSourceExists()) { setSkipIfSourceExists(other.getSkipIfSourceExists()); } return this; }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasSourceDataFileId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt32Size(1, getSourceDataFileId()); } if (hasRewriteType()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt32Size(2, getRewriteType()); } if (hasSkipIfSourceExists()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBoolSize(3, getSkipIfSourceExists()); } memoizedSerializedSize = size; return size; }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasSourceDataFileId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt32Size(1, getSourceDataFileId()); } if (hasRewriteType()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt32Size(2, getRewriteType()); } if (hasSkipIfSourceExists()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBoolSize(3, getSkipIfSourceExists()); } memoizedSerializedSize = size; return size; }
public int serializedSizeUnframed() { if (memoizedSerializedSize != -1) return memoizedSerializedSize; int size = 0; if (hasSourceDataFileId()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt32Size(1, getSourceDataFileId()); } if (hasRewriteType()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeInt32Size(2, getRewriteType()); } if (hasSkipIfSourceExists()) { size += org.apache.activemq.protobuf.CodedOutputStream.computeBoolSize(3, getSkipIfSourceExists()); } memoizedSerializedSize = size; return size; }