add 'ptransaction_' field to the postings
}
public void setTindex(int tindex) {
this.tindex = tindex;
+ for(ParsedPosting p : tpostings) {
+ p.setPtransaction_(tindex);
+ }
}
public List<ParsedPosting> getTpostings() {
return tpostings;
}
+ public void addPosting(ParsedPosting posting) {
+ posting.setPtransaction_(tindex);
+ tpostings.add(posting);
+ }
public void setTpostings(List<ParsedPosting> tpostings) {
this.tpostings = tpostings;
}
private String pcomment = "";
private List<List<String>> ptags = new ArrayList<>();
private String poriginal = null;
+ private int ptransaction_;
+ public int getPtransaction_() {
+ return ptransaction_;
+ }
+ public void setPtransaction_(int ptransaction_) {
+ this.ptransaction_ = ptransaction_;
+ }
public ParsedPosting() {
}
public String getPdate() {