@Override public Short read(final ObjectDataInput in) throws IOException { return in.readShort(); }
@Override public Short read(final ObjectDataInput in) throws IOException { return in.readShort(); }
@Nonnull static LogicalNodeTable readLogicalNodeTable(@Nonnegative int partitionId, @Nonnull ObjectDataInput in) throws IOException { SequencerDefinition definition = in.readObject(); short size = in.readShort(); Object[] assignmentTable = new Object[definition.getBoundedMaxLogicalNodeCount()]; for (int i = 0; i < size; i++) { short index = in.readShort(); Address address = new Address(); address.readData(in); assignmentTable[index] = address; } return new LogicalNodeTable(partitionId, definition, assignmentTable); } }
@Override public SequencerDefinition read(@Nonnull ObjectDataInput in) throws IOException { String sequencerName = in.readUTF(); long epochOffset = in.readLong(); int maxLogicalNodeCount = in.readInt(); short backupCount = in.readShort(); SnowcastEpoch epoch = SnowcastEpoch.byTimestamp(epochOffset); return new SequencerDefinition(sequencerName, epoch, maxLogicalNodeCount, backupCount); }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); long epochOffset = in.readLong(); int maxLogicalNodeCount = in.readInt(); short backupCount = in.readShort(); SnowcastEpoch epoch = SnowcastEpoch.byTimestamp(epochOffset); definition = new SequencerDefinition(getSequencerName(), epoch, maxLogicalNodeCount, backupCount); }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); long epochOffset = in.readLong(); int maxLogicalNodeCount = in.readInt(); short backupCount = in.readShort(); SnowcastEpoch epoch = SnowcastEpoch.byTimestamp(epochOffset); definition = new SequencerDefinition(getSequencerName(), epoch, maxLogicalNodeCount, backupCount); }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); long epochOffset = in.readLong(); int maxLogicalNodeCount = in.readInt(); short backupCount = in.readShort(); SnowcastEpoch epoch = SnowcastEpoch.byTimestamp(epochOffset); definition = new SequencerDefinition(getSequencerName(), epoch, maxLogicalNodeCount, backupCount); } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); logicalNodeId = in.readInt(); long epochOffset = in.readLong(); int maxLogicalNodeCount = in.readInt(); short backupCount = in.readShort(); SnowcastEpoch epoch = SnowcastEpoch.byTimestamp(epochOffset); definition = new SequencerDefinition(getSequencerName(), epoch, maxLogicalNodeCount, backupCount); }
public static Object readAttributeValue(ObjectDataInput in) throws IOException { byte type = in.readByte(); switch (type) { case PRIMITIVE_TYPE_BOOLEAN: return in.readBoolean(); case PRIMITIVE_TYPE_BYTE: return in.readByte(); case PRIMITIVE_TYPE_SHORT: return in.readShort(); case PRIMITIVE_TYPE_INTEGER: return in.readInt(); case PRIMITIVE_TYPE_LONG: return in.readLong(); case PRIMITIVE_TYPE_FLOAT: return in.readFloat(); case PRIMITIVE_TYPE_DOUBLE: return in.readDouble(); case PRIMITIVE_TYPE_UTF: return in.readUTF(); default: throw new IllegalStateException("Illegal attribute type ID found"); } }
public static Object readAttributeValue(ObjectDataInput in) throws IOException { byte type = in.readByte(); switch (type) { case PRIMITIVE_TYPE_BOOLEAN: return in.readBoolean(); case PRIMITIVE_TYPE_BYTE: return in.readByte(); case PRIMITIVE_TYPE_SHORT: return in.readShort(); case PRIMITIVE_TYPE_INTEGER: return in.readInt(); case PRIMITIVE_TYPE_LONG: return in.readLong(); case PRIMITIVE_TYPE_FLOAT: return in.readFloat(); case PRIMITIVE_TYPE_DOUBLE: return in.readDouble(); case PRIMITIVE_TYPE_UTF: return in.readUTF(); default: throw new IllegalStateException("Illegal attribute type ID found"); } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); logicalNodeId = in.readInt(); address = new Address(); address.readData(in); long epochOffset = in.readLong(); int maxLogicalNodeCount = in.readInt(); short backupCount = in.readShort(); SnowcastEpoch epoch = SnowcastEpoch.byTimestamp(epochOffset); definition = new SequencerDefinition(getSequencerName(), epoch, maxLogicalNodeCount, backupCount); } }
@Override protected void readInternal(ObjectDataInput in) throws IOException { super.readInternal(in); logicalNodeId = in.readInt(); address = new Address(); address.readData(in); long epochOffset = in.readLong(); int maxLogicalNodeCount = in.readInt(); short backupCount = in.readShort(); SnowcastEpoch epoch = SnowcastEpoch.byTimestamp(epochOffset); definition = new SequencerDefinition(getSequencerName(), epoch, maxLogicalNodeCount, backupCount); } }
case XQBASETYPE_SHORT: case XQBASETYPE_UNSIGNED_BYTE: return xqFactory.createItemFromShort(in.readShort(), type); case XQBASETYPE_INT: case XQBASETYPE_UNSIGNED_SHORT: