Java Code Examples for com.sleepycat.bind.tuple.TupleInput#readString()
The following examples show how to use
com.sleepycat.bind.tuple.TupleInput#readString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LinkKeyEntryBinding.java From qpid-broker-j with Apache License 2.0 | 6 votes |
@Override public LinkKey entryToObject(final TupleInput input) { String remoteContainerId = input.readString(); String linkName = input.readString(); Role role = null; try { role = Role.valueOf(input.readBoolean()); } catch (IllegalArgumentException e) { throw new StoreException("Cannot load link from store", e); } final String remoteContainerId1 = remoteContainerId; final String linkName1 = linkName; final Role role1 = role; return new LinkKey(remoteContainerId1, linkName1, role1); }
Example 2
Source File: ConfiguredObjectBinding.java From qpid-broker-j with Apache License 2.0 | 6 votes |
@Override public BDBConfiguredObjectRecord entryToObject(TupleInput tupleInput) { String type = tupleInput.readString(); String json = tupleInput.readString(); ObjectMapper mapper = new ObjectMapper(); try { Map<String,Object> value = mapper.readValue(json, Map.class); BDBConfiguredObjectRecord configuredObject = new BDBConfiguredObjectRecord(_uuid, type, value); return configuredObject; } catch (IOException e) { //should never happen throw new StoreException(e); } }
Example 3
Source File: MapBinding.java From qpid-broker-j with Apache License 2.0 | 6 votes |
@Override public Map<String, Object> entryToObject(final TupleInput input) { String json = input.readString(); ObjectMapper mapper = ConfiguredObjectJacksonModule.newObjectMapper(true); try { Map<String, Object> value = mapper.readValue(json, Map.class); return value; } catch (IOException e) { //should never happen throw new StoreException(e); } }
Example 4
Source File: UpgradeFrom5To6.java From qpid-broker-j with Apache License 2.0 | 5 votes |
@Override public UpgradeConfiguredObjectRecord entryToObject(TupleInput tupleInput) { String type = tupleInput.readString(); String json = tupleInput.readString(); UpgradeConfiguredObjectRecord configuredObject = new UpgradeConfiguredObjectRecord(type, json); return configuredObject; }
Example 5
Source File: UpgradeFrom5To6.java From qpid-broker-j with Apache License 2.0 | 5 votes |
private OldRecordImpl[] readRecords(TupleInput input) { OldRecordImpl[] records = new OldRecordImpl[input.readInt()]; for (int i = 0; i < records.length; i++) { records[i] = new OldRecordImpl(input.readString(), input.readLong()); } return records; }
Example 6
Source File: HierarchyKeyBinding.java From qpid-broker-j with Apache License 2.0 | 5 votes |
@Override public HierarchyKey entryToObject(TupleInput tupleInput) { UUID childId = new UUID(tupleInput.readLong(), tupleInput.readLong()); String parentType = tupleInput.readString(); return new HierarchyKey(childId, parentType); }
Example 7
Source File: UpgradeFrom7To8Test.java From qpid-broker-j with Apache License 2.0 | 5 votes |
@Override public UpgradeConfiguredObjectRecord entryToObject(TupleInput tupleInput) { String type = tupleInput.readString(); String json = tupleInput.readString(); UpgradeConfiguredObjectRecord configuredObject = new UpgradeConfiguredObjectRecord(type, json); return configuredObject; }
Example 8
Source File: UpgradeFrom7To8Test.java From qpid-broker-j with Apache License 2.0 | 5 votes |
@Override public UpgradeHierarchyKey entryToObject(TupleInput tupleInput) { UUID childId = new UUID(tupleInput.readLong(), tupleInput.readLong()); String parentType = tupleInput.readString(); return new UpgradeHierarchyKey(childId, parentType); }