Class GridH2ValueMessageFactory
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.twostep.msg.GridH2ValueMessageFactory
-
- All Implemented Interfaces:
Extension,MessageFactoryProvider
public class GridH2ValueMessageFactory extends Object implements MessageFactoryProvider
H2 Value message factory.
-
-
Constructor Summary
Constructors Constructor Description GridH2ValueMessageFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.h2.value.Value[]fillArray(Iterator<? extends Message> src, org.h2.value.Value[] dst, GridKernalContext ctx)voidregisterAll(MessageFactory factory)static GridH2ValueMessagetoMessage(org.h2.value.Value v)static Collection<Message>toMessages(Collection<org.h2.value.Value[]> src, int cnt)
-
-
-
Method Detail
-
registerAll
public void registerAll(MessageFactory factory)
- Specified by:
registerAllin interfaceMessageFactoryProvider
-
toMessages
public static Collection<Message> toMessages(Collection<org.h2.value.Value[]> src, int cnt) throws IgniteCheckedException
- Parameters:
src- Source values.cnt- Number of columns to actually send.- Returns:
- Destination collection.
- Throws:
IgniteCheckedException- If failed.
-
fillArray
public static org.h2.value.Value[] fillArray(Iterator<? extends Message> src, org.h2.value.Value[] dst, GridKernalContext ctx) throws IgniteCheckedException
- Parameters:
src- Source iterator.dst- Array to fill with values.ctx- Kernal context.- Returns:
- Filled array.
- Throws:
IgniteCheckedException- If failed.
-
toMessage
public static GridH2ValueMessage toMessage(org.h2.value.Value v) throws IgniteCheckedException
- Parameters:
v- Value.- Returns:
- Message.
- Throws:
IgniteCheckedException- If failed.
-
-