private static String valueTypeToString(final ValueType valueType) { return valueType.name().toLowerCase().replaceAll("_", "-"); }
public ValueType valueType() { return ValueType.get(((short)(buffer.getByte(offset + 15) & 0xFF))); }
private int mapToIndex(RecordType key1, ValueType key2, int key3) { if (key3 >= intentCardinality) { return -1; } return (key1.ordinal() * valueTypeCardinality * intentCardinality) + (key2.ordinal() * intentCardinality) + key3; }
public ExecuteCommandRequestEncoder valueType(final ValueType value) { buffer.putByte(offset + 10, (byte)value.value()); return this; }
public ExecuteCommandResponseEncoder valueType(final ValueType value) { buffer.putByte(offset + 11, (byte)value.value()); return this; }
@Override protected BrokerResponse<T> readResponse() { if (isRejection()) { final BrokerRejection brokerRejection = new BrokerRejection( request.getIntent(), request.getKey(), response.getRejectionType(), response.getRejectionReason()); return new BrokerRejectionResponse<>(brokerRejection); } else if (isValidValueType()) { final T responseDto = toResponseDto(response.getValue()); return new BrokerResponse<>(responseDto, response.getPartitionId(), response.getKey()); } else { throw new UnsupportedBrokerResponseException( request.getValueType().name(), response.getValueType().name()); } }
public ExecuteCommandResponseEncoder valueType(final ValueType value) { buffer.putByte(offset + 11, (byte)value.value()); return this; }
public ValueType valueType() { return ValueType.get(((short)(buffer.getByte(offset + 11) & 0xFF))); }
private int mapToIndex(RecordType key1, ValueType key2, int key3) { if (key3 >= intentCardinality) { return -1; } return (key1.ordinal() * valueTypeCardinality * intentCardinality) + (key2.ordinal() * intentCardinality) + key3; }
String.format( "Expected to map value type %s to intent type, but did not recognize the value type", valueType.name()));
public RecordMetadataEncoder valueType(final ValueType value) { buffer.putByte(offset + 15, (byte)value.value()); return this; }
public ValueType valueType() { return ValueType.get(((short)(buffer.getByte(offset + 10) & 0xFF))); }
String.format( "Expected to map value type %s to intent type, but did not recognize the value type", valueType.name()));
public ExecuteCommandRequestEncoder valueType(final ValueType value) { buffer.putByte(offset + 10, (byte)value.value()); return this; }
public ValueType valueType() { return ValueType.get(((short)(buffer.getByte(offset + 11) & 0xFF))); }
String.format( "Expected to map value type %s to intent type, but did not recognize the value type", valueType.name()));
public RecordMetadataEncoder valueType(final ValueType value) { buffer.putByte(offset + 15, (byte)value.value()); return this; }
public ValueType valueType() { return ValueType.get(((short)(buffer.getByte(offset + 10) & 0xFF))); }
String.format( "Expected to map value type %s to intent type, but did not recognize the value type", valueType.name()));
public ValueType valueType() { return ValueType.get(((short)(buffer.getByte(offset + 15) & 0xFF))); }