Package wpn.hdri.ss.data.attribute

Examples of wpn.hdri.ss.data.attribute.AttributeValuesView


    }

    public void persist() {
        try {
            Multimap<AttributeName, AttributeValue<?>> values = attributesManager.takeAllAttributeValues(lastTimestamp.getAndSet(Timestamp.now()), AttributesManager.DEFAULT_ATTR_GROUP);
            AttributeValuesView view = new AttributeValuesView(values);

            Files.write(output, Arrays.asList(view.toStringArray()), Charset.forName("UTF-8"), StandardOpenOption.CREATE, StandardOpenOption.APPEND);
        } catch (IOException e) {
            LOG.error("Unable to store data file.", e);
        }
    }
View Full Code Here


    @Attribute
    public String[] getData() throws Exception {
        RequestContext ctx = getContext();
        Multimap<AttributeName, AttributeValue<?>> attributes = engine.getAllAttributeValues(null, ctx.attributesGroup);

        AttributeValuesView view = new AttributeValuesView(attributes, ctx.useAliases);
        return processResult(view);
    }
View Full Code Here

        RequestContext updated = new RequestContext(ctx.useAliases, ctx.encode, ctx.outputType, timestamp, ctx.attributesGroup);
        setContext(updated);

        Multimap<AttributeName, AttributeValue<?>> attributes = engine.getAllAttributeValues(oldTimestamp, ctx.attributesGroup);

        AttributeValuesView view = new AttributeValuesView(attributes, ctx.useAliases);

        return processResult(view);
    }
View Full Code Here

        RequestContext ctx = getContext();

        Multimap<AttributeName, AttributeValue<?>> values = engine.getValuesRange(from, to, ctx.attributesGroup);

        AttributeValuesView view = new AttributeValuesView(values, isUseAliases());

        return processResult(view);
    }
View Full Code Here

    public String[] getLatestSnapshot() throws Exception {
        RequestContext ctx = getContext();
        Multimap<AttributeName, AttributeValue<?>> values = engine.getLatestValues(ctx.attributesGroup);


        AttributeValuesView view = new AttributeValuesView(values, isUseAliases());

        return processResult(view);
    }
View Full Code Here

    public String[] getSnapshot(long value) throws Exception {
        Timestamp timestamp = new Timestamp(value);
        RequestContext ctx = getContext();
        Multimap<AttributeName, AttributeValue<?>> values = engine.getValues(timestamp, ctx.attributesGroup);

        AttributeValuesView view = new AttributeValuesView(values, isUseAliases());

        return processResult(view);
    }
View Full Code Here

TOP

Related Classes of wpn.hdri.ss.data.attribute.AttributeValuesView

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.