Java Code Examples for io.protostuff.Input#readUInt64()
The following examples show how to use
io.protostuff.Input#readUInt64() .
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: DefaultFieldCardinality.java From datawave with Apache License 2.0 | 6 votes |
@Override public void mergeFrom(Input input, DefaultFieldCardinality message) throws IOException { int number; while ((number = input.readFieldNumber(this)) != 0) { switch (number) { case 1: message.columnVisibility = input.readString(); break; case 2: message.cardinality = input.readUInt64(); break; case 3: message.lower = input.readString(); break; case 4: message.upper = input.readString(); break; default: input.handleUnknownField(number, this); break; } } }
Example 2
Source File: FieldStat.java From datawave with Apache License 2.0 | 6 votes |
@Override public void mergeFrom(Input input, FieldStat message) throws IOException { int number; while ((number = input.readFieldNumber(this)) != 0) { switch (number) { case 1: message.field = input.readString(); break; case 2: message.unique = input.readUInt64(); break; case 3: message.observed = input.readUInt64(); break; case 4: message.selectivity = input.readDouble(); break; default: input.handleUnknownField(number, this); } } }
Example 3
Source File: DefaultField.java From datawave with Apache License 2.0 | 5 votes |
@Override public void mergeFrom(Input input, DefaultField message) throws IOException { int number; while ((number = input.readFieldNumber(this)) != 0) { switch (number) { case 1: message.markings = new HashMap<String,String>(); input.mergeObject(message.markings, MapSchema.SCHEMA); break; case 2: message.columnVisibility = input.readString(); break; case 3: message.timestamp = input.readUInt64(); break; case 4: message.name = input.readString(); break; case 5: message.value = input.mergeObject(null, TypedValue.getSchema()); break; default: input.handleUnknownField(number, this); break; } } }
Example 4
Source File: DefaultEdge.java From datawave with Apache License 2.0 | 4 votes |
@Override public void mergeFrom(Input input, DefaultEdge message) throws IOException { ArrayList<Long> counts = new ArrayList<Long>(); int number; while ((number = input.readFieldNumber(this)) != 0) { switch (number) { case 1: message.columnVisibility = input.readString(); break; case 2: message.source = input.readString(); break; case 3: message.sink = input.readString(); break; case 4: message.edgeType = input.readString(); break; case 5: message.edgeRelationship = input.readString(); break; case 6: message.edgeAttribute1Source = input.readString(); break; case 7: message.statsType = input.readString(); break; case 8: message.date = input.readString(); break; case 9: message.count = input.readUInt64(); break; case 10: counts.add(input.readUInt64()); break; case 11: message.edgeAttribute3 = input.readString(); break; case 12: message.edgeAttribute2 = input.readString(); break; case 13: message.loadDate = input.readString(); break; case 14: message.activityDate = input.readString(); break; default: input.handleUnknownField(number, this); break; } } if (!counts.isEmpty()) { message.counts = new ArrayList<Long>(counts.size()); for (int i = 0; i < message.counts.size(); ++i) { message.counts.set(i, counts.get(i)); } } }
Example 5
Source File: DefaultEventQueryResponse.java From datawave with Apache License 2.0 | 4 votes |
@Override public void mergeFrom(Input input, DefaultEventQueryResponse message) throws IOException { LinkedList<QueryExceptionType> exceptions = null; int number; Schema<DefaultEvent> schema = null; while ((number = input.readFieldNumber(this)) != 0) { switch (number) { case 1: message.totalEvents = input.readUInt64(); break; case 2: message.returnedEvents = input.readUInt64(); break; case 3: if (message.fields == null) message.fields = new ArrayList<String>(); message.fields.add(input.readString()); break; case 4: if (message.events == null) message.events = new ArrayList<DefaultEvent>(); if (null == schema) { DefaultEvent event = new DefaultEvent(); schema = event.cachedSchema(); } message.events.add(input.mergeObject(null, schema)); break; case 5: message.setQueryId(input.readString()); break; case 6: message.setLogicName(input.readString()); break; case 7: message.setOperationTimeMS(input.readUInt64()); break; case 8: message.addMessage(input.readString()); break; case 9: if (exceptions == null) exceptions = new LinkedList<QueryExceptionType>(); exceptions.add(input.mergeObject(null, QueryExceptionType.getSchema())); break; default: input.handleUnknownField(number, this); break; } } if (exceptions != null) message.setExceptions(exceptions); }