Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import com.epam.deltix.qsrv.hf.tickdb.pub.DXTickDB;
import com.epam.deltix.qsrv.hf.tickdb.pub.query.FixedMessageSource;
import com.epam.deltix.qsrv.hf.tickdb.pub.query.InstrumentMessageSource;
import com.epam.deltix.qsrv.util.json.DateFormatter;
import com.epam.deltix.util.collections.IndexedArrayList;

import java.util.Arrays;
Expand Down Expand Up @@ -86,6 +87,8 @@ public abstract class FilterIMSImpl
private long firstMessageTimestamp = Long.MIN_VALUE;

protected long aggregatedMessages;

private final DateFormatter datetimeFormatter = new DateFormatter();

protected FilterIMSImpl (
InstrumentMessageSource source,
Expand Down Expand Up @@ -553,4 +556,8 @@ private int getParamIndex(int n) {
return n & ~(TimestampLimits.EXCLUSIVE_BIT | TimestampLimits.NANOS_BIT);
}

public DateFormatter datetimeFormatter() {
return datetimeFormatter;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ public abstract class FilterState {

private final FilterIMSImpl filter;

private final DateFormatter datetimeFormatter = new DateFormatter();

private final Introspector introspector = Introspector.createEmptyMessageIntrospector();

public FilterState(FilterIMSImpl filter) {
Expand Down Expand Up @@ -126,7 +124,7 @@ public EnumClassDescriptor getEnumDescriptor(String name) {
}

public DateFormatter datetimeFormatter() {
return datetimeFormatter;
return filter.datetimeFormatter();
}

public void setHavingAccepted(boolean havingAccepted) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/
public abstract class GroupByFilterState extends FilterState implements Serializer<GroupByFilterState> {

protected final MemoryDataOutput mdo = new MemoryDataOutput();
protected final MemoryDataOutput mdo = new MemoryDataOutput(16);
protected final MemoryDataInput mdi = new MemoryDataInput();

public GroupByFilterState(FilterIMSImpl filter) {
Expand Down
Loading