/** * Sets instances that should be stored. * * @param instances the instances */ @Override public void setInstances(Instances instances) { Capabilities cap = getCapabilities(); if (!cap.test(instances)) { throw new IllegalArgumentException(cap.getFailReason()); } if (m_retrieval == INCREMENTAL) { if (setStructure(instances) == CANCEL) { cancel(); } } else { m_instances = instances; } }
/** * Sets instances that should be stored. * * @param instances the instances */ @Override public void setInstances(Instances instances) { Capabilities cap = getCapabilities(); if (!cap.test(instances)) { throw new IllegalArgumentException(cap.getFailReason()); } if (m_retrieval == INCREMENTAL) { if (setStructure(instances) == CANCEL) { cancel(); } } else { m_instances = instances; } }