com.linkedin.dagli.objectio.EmptyReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of objectio-core Show documentation
Show all versions of objectio-core Show documentation
DAG-oriented machine learning framework for bug-resistant, readable, efficient, maintainable and trivially deployable models in Java and other JVM languages
package com.linkedin.dagli.objectio;
/**
* The empty reader singleton.
*/
enum EmptyReader implements ObjectReader {
INSTANCE;
@Override
public long size64() {
return 0;
}
@Override
public ObjectIterator iterator() {
return ObjectIterator.empty();
}
@Override
public void close() { }
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy