public Object getFieldValue()

in ozhera-tspandata/src/main/java/org/apache/ozhera/tspandata/TSpanData.java [866:911]


    public Object getFieldValue(TSpanData._Fields var1) {
        switch(var1) {
            case TRACE_ID:
                return this.getTraceId();
            case SPAN_ID:
                return this.getSpanId();
            case SAMPLED:
                return new Boolean(this.isSampled());
            case TRACE_STATE:
                return this.getTraceState();
            case PARENT_SPAN_CONTEXT:
                return this.getParentSpanContext();
            case RESOUCE:
                return this.getResouce();
            case INSTRUMENTATION_LIBRARY_INFO:
                return this.getInstrumentationLibraryInfo();
            case NAME:
                return this.getName();
            case KIND:
                return this.getKind();
            case START_EPOCH_NANOS:
                return new Long(this.getStartEpochNanos());
            case ATTRIBUTES:
                return this.getAttributes();
            case EVENTS:
                return this.getEvents();
            case LINKS:
                return this.getLinks();
            case STATUS:
                return this.getStatus();
            case END_EPOCH_NANOS:
                return new Long(this.getEndEpochNanos());
            case ENDED:
                return new Boolean(this.isEnded());
            case TOTAL_RECORDED_EVENTS:
                return new Integer(this.getTotalRecordedEvents());
            case TOTAL_RECORDED_LINKS:
                return new Integer(this.getTotalRecordedLinks());
            case TOTAL_ATTRIBUTE_COUNT:
                return new Integer(this.getTotalAttributeCount());
            case EXTRA:
                return this.getExtra();
            default:
                throw new IllegalStateException();
        }
    }