public class SimplePolygonParser extends AbstractStreamingParser
POLYGON_SEPARATOR
.
Unparseable parts will be treated as labels.Modifier and Type | Class and Description |
---|---|
static class |
SimplePolygonParser.Parameterizer
Parameterization class.
|
BundleStreamSource.Event
Modifier and Type | Field and Description |
---|---|
static Pattern |
COORD
Pattern to catch coordinates
|
private List<Vector> |
coords
(Reused) storage of coordinates.
|
protected ExternalID |
cureid
Current external id.
|
protected LabelList |
curlbl
Current labels.
|
protected PolygonsObject |
curpoly
Current polygon.
|
protected boolean |
haslabels
Whether or not the data set has labels.
|
private ArrayList<String> |
labels
(Reused) store for labels.
|
private static Logging |
LOG
Class logger
|
protected BundleMeta |
meta
Metadata.
|
(package private) BundleStreamSource.Event |
nextevent
Event to report next.
|
static String |
POLYGON_SEPARATOR
Polygon separator
|
private List<Polygon> |
polys
(Reused) storage of polygons.
|
reader, tokenizer
Constructor and Description |
---|
SimplePolygonParser(CSVReaderFormat format)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
buildMeta()
Update the meta element.
|
Object |
data(int rnum)
Access a particular object and representation.
|
protected Logging |
getLogger()
Get the logger for this class.
|
BundleMeta |
getMeta()
Get the current meta data.
|
BundleStreamSource.Event |
nextEvent()
Get the next event
|
private boolean |
parseLine()
Parse a single line.
|
asMultipleObjectsBundle, assignDBID, cleanup, hasDBIDs, initStream, parse
private static final Logging LOG
public static final Pattern COORD
public static final String POLYGON_SEPARATOR
BundleStreamSource.Event nextevent
protected BundleMeta meta
protected boolean haslabels
protected PolygonsObject curpoly
protected LabelList curlbl
protected ExternalID cureid
public SimplePolygonParser(CSVReaderFormat format)
format
- Input formatpublic BundleStreamSource.Event nextEvent()
BundleStreamSource
protected void buildMeta()
public BundleMeta getMeta()
BundleStreamSource
public Object data(int rnum)
BundleStreamSource
rnum
- Representation numberprivate boolean parseLine()
true
if the line was read successful.protected Logging getLogger()
AbstractStreamingParser
getLogger
in class AbstractStreamingParser
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.