com.yahoo.sketches.hll.FieldsFactory Maven / Gradle / Ivy
/*
* Copyright 2015-16, Yahoo! Inc.
* Licensed under the terms of the Apache License 2.0. See LICENSE file at the project root for terms.
*/
package com.yahoo.sketches.hll;
/**
* A Factory for a fields object. This was created abstract which fields to create from the sparse
* representations. They can just depend on this object to make the next Fields that they return
* when the sparse representation is no longer considered good enough.
*
* @author Kevin Lang
*/
interface FieldsFactory {
/**
* Makes a new Fields object using the given preamble
*
* @param preamble The preamble to use to make the Fields object
* @return a new, clean Fields object given the preamble
*/
Fields make(Preamble preamble);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy