public class ReferenceCountingSegment extends Object implements Segment
Constructor and Description |
---|
ReferenceCountingSegment(Segment baseSegment) |
Modifier and Type | Method and Description |
---|---|
QueryableIndex |
asQueryableIndex() |
StorageAdapter |
asStorageAdapter() |
void |
close() |
Segment |
getBaseSegment() |
org.joda.time.Interval |
getDataInterval() |
String |
getIdentifier() |
int |
getNumReferences() |
Closeable |
increment() |
boolean |
isClosed() |
public ReferenceCountingSegment(Segment baseSegment)
public Segment getBaseSegment()
public int getNumReferences()
public boolean isClosed()
public String getIdentifier()
getIdentifier
in interface Segment
public org.joda.time.Interval getDataInterval()
getDataInterval
in interface Segment
public QueryableIndex asQueryableIndex()
asQueryableIndex
in interface Segment
public StorageAdapter asStorageAdapter()
asStorageAdapter
in interface Segment
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public Closeable increment()
Copyright © 2011–2015. All rights reserved.