Schema { @Override public String toString(){ StringBuilder sb = new StringBuilder(); sb.append("SchemaID: "+schemaId); sb.append(Utils.NL); for(int i = 0; i < names.length; i++){ sb.append("Field: "+names[i]+" : "+fields[i].toString()); sb.append(Utils.NL); } return sb.toString(); } private  Schema(int schemaId, Type[] fields, String[] names);  Schema(); boolean isVariableSize(); boolean hasField(String fieldName); boolean typeCheck(String fieldName, Type type); boolean typeCheck(String fieldName, Object o); int getFieldPosition(String fieldName); int schemaId(); Type[] fields(); String[] names(); Type getField(String name); @Override String toString(); Object[] defaultValues(); Object[] randomValues(); SchemaParser getSchemaParser(); void SchemaParser(SchemaParser newparser); int sizeOfTuple();  }
@Test public void simpleWriteAndReadAndPrintTest() { Schema s = SchemaBuilder.getInstance().newField(Type.INT, "userId").newField(Type.LONG, "ts").build(); byte[] sData = OTuple.create(s, new String[]{"userId", "ts"}, new Object[]{666, 333333L}); ITuple i = new ITuple(s); i.setData(sData); String tuple = i.toString(); assertTrue(true); }