toSplitType method

SplitType toSplitType()

Implementation

SplitType toSplitType() {
  switch (this) {
    case 'None':
      return SplitType.none;
    case 'Line':
      return SplitType.line;
    case 'RecordIO':
      return SplitType.recordIO;
    case 'TFRecord':
      return SplitType.tFRecord;
  }
  throw Exception('$this is not known in enum SplitType');
}