All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yamcs.yarch.Partition Maven / Gradle / Ivy

There is a newer version: 5.10.7
Show newest version
package org.yamcs.yarch;

import org.yamcs.utils.TimeEncoding;

/**
 *  stores information about Partition of a table
 *  It is subclassed by storage engines to store additional information 
 */
public class Partition {
    final protected long start, end; // for time based partitioning
    final protected Object value; // for value based partitioning, otherwise null

    public Partition(long start, long end, Object value) {
        this.start = start;
        this.end = end;
        this.value = value;
    }

    public long getStart() {
        return start;
    }

    public long getEnd() {
        return end;
    }

    public Object getValue() {
        return value;
    }

    @Override
    public String toString() {
        return "Partition [start=" + TimeEncoding.toString(start) + ", end=" + TimeEncoding.toString(end) + ", value=" + value + "]";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy