@Override public void writeMapEnd() throws IOException { BlockedValue top = blockStack[stackTop]; if (top.type != Schema.Type.MAP) { throw new AvroTypeException("Called writeMapEnd outside of a map."); } if (top.itemsLeftToWrite != 0) { throw new AvroTypeException("Failed to read write expected number of array elements."); } endBlockedValue(); assert check(); }
@Override public void writeArrayEnd() throws IOException { BlockedValue top = blockStack[stackTop]; if (top.type != Schema.Type.ARRAY) { throw new AvroTypeException("Called writeArrayEnd outside of an array."); } if (top.itemsLeftToWrite != 0) { throw new AvroTypeException("Failed to write expected number of array elements."); } endBlockedValue(); assert check(); }
@Override public void writeMapEnd() throws IOException { BlockedValue top = blockStack[stackTop]; if (top.type != Schema.Type.MAP) { throw new AvroTypeException("Called writeMapEnd outside of a map."); } if (top.itemsLeftToWrite != 0) { throw new AvroTypeException("Failed to read write expected number of array elements."); } endBlockedValue(); assert check(); }
@Override public void writeArrayEnd() throws IOException { BlockedValue top = blockStack[stackTop]; if (top.type != Schema.Type.ARRAY) { throw new AvroTypeException("Called writeArrayEnd outside of an array."); } if (top.itemsLeftToWrite != 0) { throw new AvroTypeException("Failed to write expected number of array elements."); } endBlockedValue(); assert check(); }
@Override public void writeMapEnd() throws IOException { BlockedValue top = blockStack[stackTop]; if (top.type != Schema.Type.MAP) { throw new AvroTypeException("Called writeMapEnd outside of a map."); } if (top.itemsLeftToWrite != 0) { throw new AvroTypeException("Failed to read write expected number of array elements."); } endBlockedValue(); assert check(); }
@Override public void writeArrayEnd() throws IOException { BlockedValue top = blockStack[stackTop]; if (top.type != Schema.Type.ARRAY) { throw new AvroTypeException("Called writeArrayEnd outside of an array."); } if (top.itemsLeftToWrite != 0) { throw new AvroTypeException("Failed to write expected number of array elements."); } endBlockedValue(); assert check(); }
@Override public void writeArrayEnd() throws IOException { BlockedValue top = blockStack[stackTop]; if (top.type != Schema.Type.ARRAY) { throw new AvroTypeException("Called writeArrayEnd outside of an array."); } if (top.itemsLeftToWrite != 0) { throw new AvroTypeException("Failed to write expected number of array elements."); } endBlockedValue(); assert check(); }
@Override public void writeArrayEnd() throws IOException { BlockedValue top = blockStack[stackTop]; if (top.type != Schema.Type.ARRAY) { throw new AvroTypeException("Called writeArrayEnd outside of an array."); } if (top.itemsLeftToWrite != 0) { throw new AvroTypeException("Failed to write expected number of array elements."); } endBlockedValue(); assert check(); }
@Override public void writeArrayEnd() throws IOException { BlockedValue top = blockStack[stackTop]; if (top.type != Schema.Type.ARRAY) { throw new AvroTypeException("Called writeArrayEnd outside of an array."); } if (top.itemsLeftToWrite != 0) { throw new AvroTypeException("Failed to write expected number of array elements."); } endBlockedValue(); assert check(); }
@Override public void writeMapEnd() throws IOException { BlockedValue top = blockStack[stackTop]; if (top.type != Schema.Type.MAP) { throw new AvroTypeException("Called writeMapEnd outside of a map."); } if (top.itemsLeftToWrite != 0) { throw new AvroTypeException("Failed to read write expected number of array elements."); } endBlockedValue(); assert check(); }
@Override public void writeMapEnd() throws IOException { BlockedValue top = blockStack[stackTop]; if (top.type != Schema.Type.MAP) { throw new AvroTypeException("Called writeMapEnd outside of a map."); } if (top.itemsLeftToWrite != 0) { throw new AvroTypeException("Failed to read write expected number of array elements."); } endBlockedValue(); assert check(); }
@Override public void writeMapEnd() throws IOException { BlockedValue top = blockStack[stackTop]; if (top.type != Schema.Type.MAP) { throw new AvroTypeException("Called writeMapEnd outside of a map."); } if (top.itemsLeftToWrite != 0) { throw new AvroTypeException("Failed to read write expected number of array elements."); } endBlockedValue(); assert check(); }