@Override public HollowListSchema getSchema() { return dataAccess.getSchema(); }
@Override public HollowListSchema getSchema() { return dataAccess.getSchema(); }
@Override public HollowListSchema getSchema() { return currentDataAccess().getSchema(); }
private void appendListStringify(Writer writer, HollowDataAccess dataAccess, HollowListTypeDataAccess typeDataAccess, int ordinal, int indentation) throws IOException { HollowListSchema schema = typeDataAccess.getSchema(); if(showTypes) writer.append("(").append(schema.getName()).append(")"); if(showOrdinals) writer.append(" (ordinal ").append(Integer.toString(ordinal)).append(")"); indentation++; int size = typeDataAccess.size(ordinal); String elementType = schema.getElementType(); for(int i=0;i<size;i++) { writer.append(NEWLINE); int elementOrdinal = typeDataAccess.getElementOrdinal(ordinal, i); appendIndentation(writer, indentation); writer.append("e" + i + ": "); appendStringify(writer, dataAccess, elementType, elementOrdinal, indentation); } }
private void appendListStringify(Writer writer, HollowDataAccess dataAccess, HollowListTypeDataAccess typeDataAccess, int ordinal, int indentation) throws IOException { HollowListSchema schema = typeDataAccess.getSchema(); indentation++; int size = typeDataAccess.size(ordinal); if(size == 0) { writer.append("[]"); } else { writer.append("[\n"); String elementType = schema.getElementType(); for(int i=0;i<size;i++) { int elementOrdinal = typeDataAccess.getElementOrdinal(ordinal, i); if(prettyPrint) appendIndentation(writer, indentation); appendStringify(writer, dataAccess, elementType, elementOrdinal, indentation); if(i < size - 1) writer.append(",\n"); } if(prettyPrint) { writer.append(NEWLINE); appendIndentation(writer, indentation - 1); } writer.append("]"); } }