@Override
    public final CharSequence getText(CharSequence text) {
        return text.subSequence(from, getTo());
    }
NOTE: DO NOT USE. Should only be used by {@link com.yahoo.document.serialization.SpanNodeReader}.
@param length the length value to set
document/src/main/java/com/yahoo/document/annotation/Span.java