Package deltix.qsrv.hf.tickdb.comm
Class TypeSet
- java.lang.Object
-
- deltix.qsrv.hf.tickdb.comm.TypeSet
-
- All Implemented Interfaces:
ClassDescriptor.TypeResolver
public final class TypeSet extends java.lang.Object implements ClassDescriptor.TypeResolver
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TypeSet.TypeSender
-
Constructor Summary
Constructors Constructor Description TypeSet(TypeSet.TypeSender typeSender)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addType(int idx, ClassDescriptor cd)
int
count()
ClassDescriptor
forGuid(java.lang.String guid)
RecordClassDescriptor[]
getConcreteClasses()
RecordClassDescriptor
getConcreteTypeByIndex(int idx)
int
getIndexOfConcreteType(RecordClassDescriptor type)
int
getIndexOfConcreteTypeNoAdd(RecordClassDescriptor type)
UnlikegetIndexOfConcreteType(RecordClassDescriptor)
will not add missing type.int
indexOf(RecordClassDescriptor type)
boolean
isIndexPresent(int idx)
void
readTypes(java.io.DataInputStream in)
-
-
-
Constructor Detail
-
TypeSet
public TypeSet(TypeSet.TypeSender typeSender)
-
-
Method Detail
-
getConcreteTypeByIndex
public RecordClassDescriptor getConcreteTypeByIndex(int idx)
-
isIndexPresent
public boolean isIndexPresent(int idx)
-
getConcreteClasses
public RecordClassDescriptor[] getConcreteClasses()
-
readTypes
public void readTypes(java.io.DataInputStream in) throws java.io.IOException
- Throws:
java.io.IOException
-
addType
public void addType(int idx, ClassDescriptor cd) throws java.io.IOException
- Throws:
java.io.IOException
-
forGuid
public ClassDescriptor forGuid(java.lang.String guid)
- Specified by:
forGuid
in interfaceClassDescriptor.TypeResolver
-
getIndexOfConcreteType
public int getIndexOfConcreteType(RecordClassDescriptor type) throws java.io.IOException
- Throws:
java.io.IOException
-
getIndexOfConcreteTypeNoAdd
public int getIndexOfConcreteTypeNoAdd(RecordClassDescriptor type)
UnlikegetIndexOfConcreteType(RecordClassDescriptor)
will not add missing type.- Returns:
- type index if present or negative value if type was not found
-
indexOf
public int indexOf(RecordClassDescriptor type)
-
count
public int count()
-
-