Package com.epam.fix.message
Class IndexedStorage
java.lang.Object
com.epam.fix.message.IndexedStorage
- Direct Known Subclasses:
ExtendedIndexedStorage
Created with IntelliJ IDEA.
User: wed
Date: 29.10.12
Time: 15:57
To change this template use File | Settings | File Templates.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final charstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRepeatingGroup(int leadingTag) Adds group without validation at the end of message.addRepeatingGroup(int leadingTag, boolean validation) Adds group at the end of message.voidaddRepeatingGroup(int leadingTag, boolean validation, RepeatingGroup group) Adds group without validation at the end of message.voidaddRepeatingGroup(int leadingTag, RepeatingGroup group) Adds group without validation at the end of message.addRepeatingGroupAtIndex(int index, int leadingTag) Adds group at specific place at messageaddRepeatingGroupAtIndex(int index, int leadingTag, boolean validation) Adds group at specific place at messagevoidaddRepeatingGroupAtIndex(int index, int leadingTag, boolean validation, RepeatingGroup group) Adds group at specific place at messagevoidaddRepeatingGroupAtIndex(int index, int leadingTag, RepeatingGroup group) Adds group at specific place at messagefinal intaddTag(int tagId, byte value) final intaddTag(int tag, byte[] value, int offset, int length) final intaddTag(int tagId, char value) final intaddTag(int tag, double value, int precision) final intaddTag(int tag, long value) final intaddTag(int tag, CharSequence value) final intaddTag(int tag, LocalDateTime value, TimestampPrecision precision) final intaddTag(int tag, LocalTime value, TimestampPrecision precision) final intaddTag(int tag, OffsetDateTime value, TimestampPrecision precision) final intaddTag(int tag, OffsetTime value, TimestampPrecision precision) final intfinal intaddTag(int tag, Period value, TenorPrecision precision) final intaddTag(int tag, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type) final intaddTagAtIndex(int addAtIndex, int tagId, byte value) final intaddTagAtIndex(int addAtIndex, int tagId, byte[] value, int offset, int length) final intaddTagAtIndex(int addAtIndex, int tagId, char value) final intaddTagAtIndex(int index, int tagId, double value, int precision) final intaddTagAtIndex(int index, int tagId, long value) final intaddTagAtIndex(int index, int tagId, long value, boolean shiftRG) final intaddTagAtIndex(int index, int tagId, CharSequence value) final intaddTagAtIndex(int index, int tagId, LocalDateTime value, TimestampPrecision precision) final intaddTagAtIndex(int index, int tagId, LocalTime value, TimestampPrecision precision) final intaddTagAtIndex(int index, int tagId, OffsetDateTime value, TimestampPrecision precision) final intaddTagAtIndex(int index, int tagId, OffsetTime value, TimestampPrecision precision) final intaddTagAtIndex(int index, int tagId, Period value, TenorPrecision precision) final intaddTagAtIndex(int index, int tagId, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type) protected final intaddTagAtIndexForRg(int index, int tagId, long value, int rgId) protected booleancanCopyInPlace(int index, int oldLen, int length) protected booleancanCopyInPlaceNumber(int index, int oldLen, int length) protected booleancanCopyInPlaceWithLengthReducing(int index, int oldLen, int length) voidclear()final voidcopyRepeatingGroup(RepeatingGroup source) Copy repeating group at end of messagecopyRepeatingGroup(RepeatingGroup source, int index) Copy repeating group at specified index of messagevoidcopyRepeatingGroup(RepeatingGroup source, RepeatingGroup dest) Copy repeating group at end of messagevoidcopyRepeatingGroup(RepeatingGroup source, RepeatingGroup dest, int index) Copy repeating group at specified index of messageprotected voiddeepCopy(IndexedStorage source) protected voidprotected booleanensureCapacityAndEnlarge(int ratio) booleanprotected voidfillSubStorage(int fromIndex, int toIndex, IndexedStorage subStorage) protected intfindOrPrepareToAdd(int tag, int occurrence, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) protected intfindOrPrepareToAdd(int tag, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) protected intgenericMessageToByteArrayAndReturnNextPosition(byte[] dst, int offset) protected FieldIndexDatacom.epam.fixengine.configuration.FIXVersionContainerprotected intintgetOrAddRepeatingGroup(int leadingTag) Returns repeating group from storage by leading tag.voidgetOrAddRepeatingGroup(int leadingTag, RepeatingGroup group) Fills passed repeating group instance by data from storage.getOrAddRepeatingGroupAtIndex(int leadingTag, int index) Returns repeating group from storage by leading tag.voidgetOrAddRepeatingGroupAtIndex(int leadingTag, int index, RepeatingGroup group) Returns repeating group from storage by leading tag.final intgetRepeatingGroup(int leadingTag) Returns repeating group from storage by leading tag.voidgetRepeatingGroup(int leadingTag, RepeatingGroup group) Fills passed repeating group instance by data from storage.getRepeatingGroupAtIndex(int index) Returns repeating group, founded by index of leading tagvoidgetRepeatingGroupAtIndex(int index, RepeatingGroup group) Fills passed repeating group instance by data, founded by index of leading tagintgetSize()protected MessageStoragegetStorage(int index) protected intgetStorageType(int index) final voidfinal voidfinal voidgetTagAtIndex(int index, TagValue dest) intgetTagIdAtIndex(int index) intgetTagIndex(int tag) intgetTagIndex(int tag, int occurrence) final intgetTagIndexBetween(int tag, int startIndex, int endIndex) final intgetTagIndexStartingFrom(int tag, int fromIndex) final BigDecimalgetTagValueAsBigDecimalAtIndex(int index) final booleangetTagValueAsBoolAtIndex(int index) final bytegetTagValueAsByteAtIndex(int index, int offset) final byte[]getTagValueAsBytesAtIndex(int index) final intgetTagValueAsBytesAtIndex(int index, byte[] dest, int offset) final doublegetTagValueAsDoubleAtIndex(int index) final longgetTagValueAsLongAtIndex(int index) final voidgetTagValueAsReusableStringAtIndex(ReusableString reusableString, int index) getTagValueAsStringAtIndex(int index) final voidgetTagValueAsStringBuffAtIndex(int index, StringBuffer str) final voidgetTagValueAtIndex(int index, ByteBuffer destination) intgetTagValueLength(int tagId) intgetTagValueLength(int tagId, int occurrence) intgetTagValueLengthAtIndex(int index) protected intgetTagValueOffsetAtIndex(int index) inthashCode()voidReturns all inner arrays, RepeatingGroup and Entry back to pool.protected booleanbooleanisRepeatingGroupExists(int leadingTag) Checks is message contains not nested group with passed leading tag.booleanisTagExists(int tag) booleanisTagExists(int tag, int occurrence) protected intmapPreparedTagInOrigStorage(int tag, int offset, int length) protected intmapTagInOrigStorage(int tag, int offset, int length) final voidmarkUnserializableTag(int tag) protected voidonEnlarge(int ratio, int newSize) protected intpreparedToByteArrayAndReturnNextPosition(byte[] dst, int offset) protected intpreparedToByteArrayAndReturnNextPosition2(byte[] dst, int offset) booleanremoveRepeatingGroup(int leadingTag) Removes repeating group with specified leading tagbooleanremoveRepeatingGroupAtIndex(int index) Removes repeating group with leading tag at specified indexbooleanremoveTag(int tag) Removes a fix field with specified tag from collection.booleanremoveTag(int tag, int occurrence) booleanremoveTagAtIndex(int tagIndex) booleanremoveTagAtIndex(int tagIndex, boolean shiftRG) intreserveTagAtIndex(int addAtIndex, int tagId) intreserveTagAtIndex(int addAtIndex, int tagId, boolean shiftRG) protected intreserveTagAtIndexForRg(int addAtIndex, int tagId, int rgId) protected voidsetOriginalBuffer(byte[] buf, int offset, int length) final inttoByteArrayAndReturnNextPosition(byte[] dst, int offset, int[] excludedFields) protected voidfinal intupdateValue(int tag, boolean value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, byte[] value, int offset, int length, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, byte[] value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, double value, int precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, int occurrence, boolean value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, int occurrence, byte[] value, int offset, int length, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tagId, int occurrence, byte[] value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, int occurrence, double value, int precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, int occurrence, long value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, int occurrence, CharSequence strBuffer, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, int occurrence, LocalDateTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, int occurrence, LocalTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, int occurrence, OffsetDateTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, int occurrence, OffsetTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, int occurrence, Period value, TenorPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, int occurrence, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, long value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, CharSequence strBuffer, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, LocalDateTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, LocalTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, OffsetDateTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, OffsetTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, Period value, TenorPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(int tag, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(TagValue value, int occurrence, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) final intupdateValue(TagValue value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) voidupdateValueAtIndex(int tagIndex, boolean value) voidupdateValueAtIndex(int index, byte[] value) voidupdateValueAtIndex(int tagIndex, byte[] value, int offset, int length) voidupdateValueAtIndex(int index, double value, int precision) voidupdateValueAtIndex(int index, long value) voidupdateValueAtIndex(int tagIndex, TagValue value) voidupdateValueAtIndex(int tagIndex, CharSequence str) voidupdateValueAtIndex(int index, LocalDateTime value, TimestampPrecision precision) voidupdateValueAtIndex(int index, LocalTime value, TimestampPrecision precision) voidupdateValueAtIndex(int index, OffsetDateTime value, TimestampPrecision precision) voidupdateValueAtIndex(int index, OffsetTime value, TimestampPrecision precision) voidupdateValueAtIndex(int index, Period value, TenorPrecision precision) voidupdateValueAtIndex(int index, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type)
-
Field Details
-
FIELD_SEPARATOR
protected static final char FIELD_SEPARATOR- See Also:
-
NOTFOUND
public static final int NOTFOUND- See Also:
-
-
Constructor Details
-
IndexedStorage
public IndexedStorage(int initialSize)
-
-
Method Details
-
addTag
public final int addTag(int tagId, byte value) -
addTagAtIndex
public final int addTagAtIndex(int addAtIndex, int tagId, byte value) -
addTag
public final int addTag(int tagId, char value) -
addTagAtIndex
public final int addTagAtIndex(int addAtIndex, int tagId, char value) -
addTag
public final int addTag(int tag, byte[] value, int offset, int length) -
addTagAtIndex
public final int addTagAtIndex(int addAtIndex, int tagId, byte[] value, int offset, int length) -
addTag
public final int addTag(int tag, long value) -
addTagAtIndex
public final int addTagAtIndex(int index, int tagId, long value) -
addTagAtIndex
public final int addTagAtIndex(int index, int tagId, long value, boolean shiftRG) -
addTagAtIndexForRg
protected final int addTagAtIndexForRg(int index, int tagId, long value, int rgId) -
addTag
public final int addTag(int tag, double value, int precision) -
addTagAtIndex
public final int addTagAtIndex(int index, int tagId, double value, int precision) -
addTag
-
addTagAtIndex
-
addTag
-
addTagAtIndex
public final int addTagAtIndex(int index, int tagId, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type) -
addTag
-
addTagAtIndex
-
addTag
-
addTag
-
addTagAtIndex
-
addTag
-
addTagAtIndex
public final int addTagAtIndex(int index, int tagId, OffsetTime value, TimestampPrecision precision) -
addTag
-
addTagAtIndex
public final int addTagAtIndex(int index, int tagId, LocalDateTime value, TimestampPrecision precision) -
addTag
-
addTagAtIndex
public final int addTagAtIndex(int index, int tagId, OffsetDateTime value, TimestampPrecision precision) -
reserveTagAtIndexForRg
protected int reserveTagAtIndexForRg(int addAtIndex, int tagId, int rgId) -
reserveTagAtIndex
public int reserveTagAtIndex(int addAtIndex, int tagId) -
reserveTagAtIndex
public int reserveTagAtIndex(int addAtIndex, int tagId, boolean shiftRG) -
getTag
- Throws:
FieldNotFoundException
-
getTag
- Throws:
FieldNotFoundException
-
getTagAtIndex
- Throws:
FieldNotFoundException
-
getTagValueAsBytesAtIndex
- Throws:
FieldNotFoundException
-
getTagValueAsBytesAtIndex
public final int getTagValueAsBytesAtIndex(int index, byte[] dest, int offset) throws FieldNotFoundException - Throws:
FieldNotFoundException
-
getTagValueAsByteAtIndex
- Throws:
FieldNotFoundException
-
getTagValueAsBoolAtIndex
- Throws:
FieldNotFoundException
-
getTagValueAsDoubleAtIndex
- Throws:
FieldNotFoundException
-
getTagValueAsBigDecimalAtIndex
- Throws:
FieldNotFoundException
-
getTagValueAsLongAtIndex
- Throws:
FieldNotFoundException
-
getTagValueAsStringBuffAtIndex
public final void getTagValueAsStringBuffAtIndex(int index, StringBuffer str) throws FieldNotFoundException - Throws:
FieldNotFoundException
-
getTagValueAsReusableStringAtIndex
public final void getTagValueAsReusableStringAtIndex(ReusableString reusableString, int index) throws FieldNotFoundException - Throws:
FieldNotFoundException
-
getTagValueAsStringAtIndex
- Throws:
FieldNotFoundException
-
getTagValueAtIndex
-
updateValue
public final int updateValue(int tag, byte[] value, int offset, int length, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValue
public final int updateValue(int tag, int occurrence, byte[] value, int offset, int length, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValueAtIndex
public void updateValueAtIndex(int tagIndex, byte[] value, int offset, int length) -
updateValue
public final int updateValue(int tag, byte[] value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValue
public final int updateValue(int tagId, int occurrence, byte[] value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValueAtIndex
public void updateValueAtIndex(int index, byte[] value) -
updateValue
public final int updateValue(int tag, long value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValue
public final int updateValue(int tag, int occurrence, long value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValueAtIndex
public void updateValueAtIndex(int index, long value) -
updateValue
public final int updateValue(int tag, double value, int precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValue
public final int updateValue(int tag, int occurrence, double value, int precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValueAtIndex
public void updateValueAtIndex(int index, double value, int precision) -
updateValue
public final int updateValue(int tag, CharSequence strBuffer, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValue
public final int updateValue(int tag, int occurrence, CharSequence strBuffer, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValueAtIndex
-
updateValue
public final int updateValue(int tag, boolean value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValue
public final int updateValue(int tag, int occurrence, boolean value, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValueAtIndex
public void updateValueAtIndex(int tagIndex, boolean value) -
updateValue
-
updateValue
public final int updateValue(TagValue value, int occurrence, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValueAtIndex
-
updateValue
public final int updateValue(int tag, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValue
public final int updateValue(int tag, int occurrence, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValueAtIndex
public void updateValueAtIndex(int index, Calendar value, FIXDateFormatterFactory.FIX_DATE_TYPE type) -
updateValue
public final int updateValue(int tag, LocalTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValue
public final int updateValue(int tag, int occurrence, LocalTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValueAtIndex
-
updateValue
public final int updateValue(int tag, Period value, TenorPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValue
public final int updateValue(int tag, int occurrence, Period value, TenorPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValueAtIndex
-
updateValue
public final int updateValue(int tag, OffsetTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValue
public final int updateValue(int tag, int occurrence, OffsetTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValueAtIndex
-
updateValue
public final int updateValue(int tag, LocalDateTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValue
public final int updateValue(int tag, int occurrence, LocalDateTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValueAtIndex
-
updateValue
public final int updateValue(int tag, OffsetDateTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValue
public final int updateValue(int tag, int occurrence, OffsetDateTime value, TimestampPrecision precision, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
updateValueAtIndex
-
isTagExists
public boolean isTagExists(int tag) -
isTagExists
public boolean isTagExists(int tag, int occurrence) -
getTagIndex
public int getTagIndex(int tag) -
getTagIndex
public int getTagIndex(int tag, int occurrence) -
getTagIndexStartingFrom
public final int getTagIndexStartingFrom(int tag, int fromIndex) -
getTagIndexBetween
public final int getTagIndexBetween(int tag, int startIndex, int endIndex) -
getTagIdAtIndex
public int getTagIdAtIndex(int index) -
getTagValueLengthAtIndex
public int getTagValueLengthAtIndex(int index) -
getTagValueOffsetAtIndex
protected int getTagValueOffsetAtIndex(int index) -
getTagValueLength
public int getTagValueLength(int tagId) -
getTagValueLength
public int getTagValueLength(int tagId, int occurrence) -
getNumOfGroup
public int getNumOfGroup() -
getSize
public int getSize() -
getRawLength
public final int getRawLength() -
getFieldIndexData
-
isAllTagsInOneBuffer
protected boolean isAllTagsInOneBuffer() -
fillSubStorage
-
clear
public void clear() -
removeTag
public boolean removeTag(int tag) Removes a fix field with specified tag from collection. The method removes the first occurrence of the specified tag.- Parameters:
tag- the fix tag.- Returns:
trueif the element was removed.
-
removeTag
public boolean removeTag(int tag, int occurrence) -
removeTagAtIndex
public boolean removeTagAtIndex(int tagIndex) -
removeTagAtIndex
public boolean removeTagAtIndex(int tagIndex, boolean shiftRG) -
deepCopy
-
ensureCapacityAndEnlarge
protected void ensureCapacityAndEnlarge() -
ensureCapacityAndEnlarge
protected boolean ensureCapacityAndEnlarge(int ratio) -
onEnlarge
protected void onEnlarge(int ratio, int newSize) -
getIndexCapacity
protected int getIndexCapacity() -
toByteArrayAndReturnNextPosition
public final int toByteArrayAndReturnNextPosition(byte[] dst, int offset, int[] excludedFields) -
genericMessageToByteArrayAndReturnNextPosition
protected int genericMessageToByteArrayAndReturnNextPosition(byte[] dst, int offset) -
preparedToByteArrayAndReturnNextPosition
protected int preparedToByteArrayAndReturnNextPosition(byte[] dst, int offset) -
preparedToByteArrayAndReturnNextPosition2
protected int preparedToByteArrayAndReturnNextPosition2(byte[] dst, int offset) -
setOriginalBuffer
protected void setOriginalBuffer(byte[] buf, int offset, int length) -
transferDataToArena
protected void transferDataToArena() -
mapTagInOrigStorage
protected int mapTagInOrigStorage(int tag, int offset, int length) -
mapPreparedTagInOrigStorage
protected int mapPreparedTagInOrigStorage(int tag, int offset, int length) -
getRepeatingGroup
Fills passed repeating group instance by data from storage. If group doesn't exist, throws exception.- Parameters:
leadingTag- leading tag for repeating groupgroup- repeating group object for fill
-
getRepeatingGroup
Returns repeating group from storage by leading tag. If group doesn't exist, returns null.- Parameters:
leadingTag- leading tag for repeating group- Returns:
- instance of RepeatingGroup from RepeatingGroupPool. There is no need to call release for this object.
-
getOrAddRepeatingGroup
Returns repeating group from storage by leading tag. If group doesn't exist, add group at end of message.- Parameters:
leadingTag- leading tag for repeating group- Returns:
- instance of RepeatingGroup from RepeatingGroupPool. There is no need to call release for this object.
-
getOrAddRepeatingGroup
Fills passed repeating group instance by data from storage. If group doesn't exist, add group at end of of message- Parameters:
leadingTag- leading tag for repeating groupgroup- repeating group object for fill
-
getOrAddRepeatingGroupAtIndex
Returns repeating group from storage by leading tag. If group doesn't exist, add group at passed index in message.- Parameters:
leadingTag- leading tag for repeating group- Returns:
- instance of RepeatingGroup from RepeatingGroupPool. There is no need to call release for this object.
-
getOrAddRepeatingGroupAtIndex
Returns repeating group from storage by leading tag. If group doesn't exist, add group at passed index in message.- Parameters:
leadingTag- leading tag for repeating group
-
getRepeatingGroupAtIndex
Returns repeating group, founded by index of leading tag- Parameters:
index- index of repeating group's leading tag at message- Returns:
- instance of RepeatingGroup from RepeatingGroupPool. There is no need to call release for this object.
-
getRepeatingGroupAtIndex
Fills passed repeating group instance by data, founded by index of leading tag- Parameters:
index- leading tag for repeating groupgroup- repeating group object for fill
-
isRepeatingGroupExists
public boolean isRepeatingGroupExists(int leadingTag) Checks is message contains not nested group with passed leading tag. Note that empty groups, that doesn't appear in the message, also considered existing- Parameters:
leadingTag- leading tag for check- Returns:
- true if repeating group exists.
-
removeRepeatingGroup
public boolean removeRepeatingGroup(int leadingTag) Removes repeating group with specified leading tag- Parameters:
leadingTag- leading tag of group- Returns:
- true if there is group with specified leading tag
-
removeRepeatingGroupAtIndex
public boolean removeRepeatingGroupAtIndex(int index) Removes repeating group with leading tag at specified index- Parameters:
index- of repeating group's leading tag- Returns:
- true if there is group with specified leading tag
-
invalidateRepeatingGroupIndex
public void invalidateRepeatingGroupIndex()Returns all inner arrays, RepeatingGroup and Entry back to pool. It returns only those RepeatingGroup and Entry, that have been got implicitly from addRepeatingGroup/getRepeatingGroup. If you got RepeatingGroup or Entry explicit from RepeatingGroupPool, you should take care of call release. Also this method implicitly calls in FIXFieldList.releaseInstance(). -
addRepeatingGroup
Adds group without validation at the end of message. Trailer is ignored.- Parameters:
leadingTag- leading tag for new groupgroup- repeating group object for further work with group
-
addRepeatingGroup
Adds group without validation at the end of message. Trailer is ignored. Repeating- Parameters:
leadingTag- leading tag for new group- Returns:
- instance of RepeatingGroup from RepeatingGroupPool. There is no need to call release for this object.
-
addRepeatingGroup
Adds group at the end of message. Trailer is ignored.- Parameters:
leadingTag- leading tag for new groupvalidation- turn on/off validation- Returns:
- instance of RepeatingGroup from RepeatingGroupPool. There is no need to call release for this object.
-
addRepeatingGroup
Adds group without validation at the end of message. Trailer is ignored.- Parameters:
leadingTag- leading tag for new groupgroup- repeating group object for further work with group
-
addRepeatingGroupAtIndex
public void addRepeatingGroupAtIndex(int index, int leadingTag, boolean validation, RepeatingGroup group) Adds group at specific place at message- Parameters:
index- index in FIX message. Leading tag will be inserted at this index and all other group tags will follow.leadingTag- leading tag for new groupvalidation- turn on/off validationgroup- repeating group object for further work with group
-
addRepeatingGroupAtIndex
Adds group at specific place at message- Parameters:
index- index in FIX message. Leading tag will be inserted at this index and all other group tags will follow.leadingTag- leading tag for new groupvalidation- turn on/off validation- Returns:
- instance of RepeatingGroup from RepeatingGroupPool. There is no need to call release for this object.
-
addRepeatingGroupAtIndex
Adds group at specific place at message- Parameters:
index- index in FIX message. Leading tag will be inserted at this index and all other group tags will follow.leadingTag- leading tag for new group- Returns:
- instance of RepeatingGroup from RepeatingGroupPool. There is no need to call release for this object.
-
addRepeatingGroupAtIndex
Adds group at specific place at message- Parameters:
index- index in FIX message. Leading tag will be inserted at this index and all other group tags will follow.leadingTag- leading tag for new groupgroup- repeating group object for further work with group
-
copyRepeatingGroup
Copy repeating group at end of message- Parameters:
source- repeating group for copy- Returns:
- copied repeating group
-
copyRepeatingGroup
Copy repeating group at specified index of message- Parameters:
source- repeating group for copyindex- index at which the source entry is to be copied- Returns:
- copied repeating group
-
copyRepeatingGroup
Copy repeating group at end of message- Parameters:
source- repeating group for copydest- entry for hold copied repeating group
-
copyRepeatingGroup
Copy repeating group at specified index of message- Parameters:
source- repeating group for copydest- entry for hold copied repeating groupindex- index at which the source entry is to be copied
-
equals
-
hashCode
public int hashCode() -
findOrPrepareToAdd
- Parameters:
tag-addIfNotExists-- Returns:
- index of tag
-
findOrPrepareToAdd
protected int findOrPrepareToAdd(int tag, int occurrence, IndexedStorage.MISSING_TAG_HANDLING addIfNotExists) -
canCopyInPlaceNumber
protected boolean canCopyInPlaceNumber(int index, int oldLen, int length) -
canCopyInPlace
protected boolean canCopyInPlace(int index, int oldLen, int length) -
canCopyInPlaceWithLengthReducing
protected boolean canCopyInPlaceWithLengthReducing(int index, int oldLen, int length) -
getStorage
-
getStorageType
protected int getStorageType(int index) -
getFIXVersion
public com.epam.fixengine.configuration.FIXVersionContainer getFIXVersion() -
markUnserializableTag
public final void markUnserializableTag(int tag) -
clearUnserializableTags
public final void clearUnserializableTags()
-