Package com.qfs.dic
Interface ICharSequenceDictionary<C extends CharSequence>
- All Superinterfaces:
ICompressible,IDictionary<C>,IMemoryMonitored,Serializable
- All Known Implementing Classes:
StringDictionary
Interface of a dictionary that stores some type of character sequence.
- Author:
- ActiveViam
-
Field Summary
Fields inherited from interface com.qfs.dic.IDictionary
DEFAULT_INITIAL_CAPACITY, ID_GENERATOR -
Method Summary
Modifier and TypeMethodDescriptiondefault voidcopyInto(int position, IWritableCell cell) Copies the de-dictionarized value at a given position into the provided cell.readString(int position) Reads characters of the sequence stored at that position and returns them in an String.inttransfer(int position, char[] receiver) Transfers the sequence at that position into a character array.Methods inherited from interface com.qfs.memory.ICompressible
compress, compressMethods inherited from interface com.qfs.dic.IDictionary
getDictionaryId, getDoublePosition, getFirstElements, getFloatPosition, getIntPosition, getLongPosition, getOrder, getPosition, getSize, getType, isNullable, read, readDouble, readFloat, readInt, readLong, size, supportConcurrentReadsMethods inherited from interface com.qfs.monitoring.memory.IMemoryMonitored
getMemoryStatistic
-
Method Details
-
readString
Reads characters of the sequence stored at that position and returns them in an String. Calling this method allocates some memory for the array and for the String.- Parameters:
position- the position- Returns:
- characters of the sequence in a String
-
transfer
int transfer(int position, char[] receiver) Transfers the sequence at that position into a character array. The array must be large enough to receive the characters.- Parameters:
receiver- buffer filled with the sequence read at the position- Returns:
- number of characters actually transferred (that is the max of the length of the sequence at that position, and the receiver array length)
-
copyInto
Description copied from interface:IDictionaryCopies the de-dictionarized value at a given position into the provided cell.- Specified by:
copyIntoin interfaceIDictionary<C extends CharSequence>- Parameters:
position- dictionarized value to readcell- cell filled with the corresponding value
-